/* DexHaul blog chrome — shared by /blog and every /blog/<slug> page.
   All rules are scoped under body.blog-page so nothing can leak into the
   homepage or any other document that might load this file by mistake.
   Palette/type mirror index.html's :root exactly. */

:root {
  --red:        #e3350d;
  --red-dark:   #b7280a;
  --yellow:     #ffcb05;
  --yellow-ink: #8a6d00;
  --blue:       #3b4cca;
  --blue-dark:  #2c3aa0;
  --navy:       #10194f;
  --navy-2:     #1a2566;
  --ink:        #171b2d;
  --slate:      #5c6378;
  --bg:         #f5f7fc;
  --paper:      #ffffff;
  --line:       #e4e8f4;
  --blog-bg:    #fff8e1;   /* light Pikachu-yellow page tint (Board rule 8) */
  --ring:       0 0 0 3px rgba(59, 76, 202, .25);
  --shadow-1:   0 2px 10px -6px rgba(16, 25, 79, .25);
  --shadow-2:   0 18px 40px -22px rgba(16, 25, 79, .45);
  --r-card:     16px;
  --r-input:    12px;
  --head: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

body.blog-page { margin: 0; background: var(--blog-bg); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; }
.blog-page * { box-sizing: border-box; }
.blog-page a { color: var(--blue); }
.blog-page img { max-width: 100%; }
.blog-page h1, .blog-page h2, .blog-page h3 { font-family: var(--head);
  font-weight: 600; line-height: 1.15; }
.blog-page .wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.blog-page :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px;
  border-radius: 4px; }
.blog-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- BURGER + FULL MENU DRAWER (mirrors the homepage menu) ---------- */
.blog-page .burger { display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none; border: 1px solid rgba(16,25,79,.25);
  border-radius: 10px; background: var(--paper); color: var(--ink); cursor: pointer; }
.blog-page .burger:hover { background: var(--bg); }
.blog-page .drawer-overlay { position: fixed; inset: 0; background: rgba(16,25,79,.45);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 90; }
.blog-page .blog-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 320px;
  max-width: 86vw; background: var(--paper); z-index: 95; transform: translateX(-102%);
  transition: transform .28s cubic-bezier(.2,.7,.2,1); box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; }
.blog-page.draweropen .drawer-overlay { opacity: 1; pointer-events: auto; }
.blog-page.draweropen .blog-drawer { transform: none; }
.blog-page .drawer-head { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line); }
.blog-page .drawer-head .word { font-family: var(--head); font-weight: 700; font-size: 20px; }
.blog-page .drawer-head .word em { font-style: normal; color: var(--red); }
.blog-page .drawer-x { border: 0; background: none; font-size: 26px; line-height: 1;
  color: var(--slate); cursor: pointer; padding: 4px 8px; }
.blog-page .drawer-nav { overflow-y: auto; flex: 1; padding: 8px 0 24px; }
.blog-page .drawer-nav .dlink { display: block; padding: 13px 18px; font-weight: 800;
  font-size: 15px; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line); }
.blog-page .drawer-nav .dlink:hover { color: var(--red-dark); background: var(--bg); }
.blog-page .dgroup { border-bottom: 1px solid var(--line); }
.blog-page .dgroup > button { display: flex; align-items: center; width: 100%; gap: 8px;
  text-align: left; padding: 13px 18px; border: 0; background: none; cursor: pointer;
  font-family: var(--body); font-weight: 800; font-size: 15px; color: var(--ink); }
.blog-page .dgroup > button .caret { margin-left: auto; color: var(--slate);
  font-size: 10px; transition: transform .2s ease; }
.blog-page .dgroup.open > button .caret { transform: rotate(180deg); }
.blog-page .dgroup .dkids { display: none; padding: 0 0 10px; }
.blog-page .dgroup.open .dkids { display: block; }
.blog-page .dkids a { display: block; padding: 9px 18px 9px 40px; font-size: 14.5px;
  font-weight: 600; color: var(--slate); text-decoration: none; }
.blog-page .dkids a:hover { color: var(--red-dark); background: var(--bg); }
.blog-page .dkids a.dall { color: var(--blue-dark); font-weight: 800; }

/* ---------- COMPACT HEADER (articles + blog index) ---------- */
.blog-page .blog-head { position: sticky; top: 0; z-index: 70;
  background: var(--yellow); border-bottom: 1px solid rgba(16,25,79,.15);
  box-shadow: var(--shadow-1); }
.blog-page .blog-head .head-row { display: flex; align-items: center; gap: 22px;
  padding: 12px 0; }
.blog-page .logo { display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); }
.blog-page .logo svg { width: 38px; height: 38px; }
.blog-page .logo .word { font-family: var(--head); font-weight: 700;
  font-size: 24px; letter-spacing: .01em; }
.blog-page .logo .word em { font-style: normal; color: var(--red); }
.blog-page .logo .tag { display: block; font-size: 10px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(16,25,79,.65); }
.blog-page .blog-nav { display: flex; align-items: center; gap: 18px; }
.blog-page .blog-nav a { color: var(--navy); text-decoration: none;
  font-weight: 800; font-size: 15px; }
.blog-page .blog-nav a:hover { color: var(--red-dark); text-decoration: underline; }
.blog-page .blog-search { margin-left: auto; display: flex; flex: 0 1 340px; }
.blog-page .blog-search form { display: flex; width: 100%; background: var(--paper);
  border: 2px solid rgba(16,25,79,.25); border-radius: 999px; overflow: hidden; }
.blog-page .blog-search input { flex: 1; min-width: 0; border: 0; outline: none;
  padding: 9px 16px; font-family: var(--body); font-size: 14.5px; color: var(--ink);
  background: transparent; }
.blog-page .blog-search button { border: 0; background: var(--red); color: #fff;
  font-family: var(--body); font-weight: 800; font-size: 14px; padding: 0 18px;
  cursor: pointer; }
.blog-page .blog-search button:hover { background: var(--red-dark); }
@media (max-width: 700px) {
  .blog-page .blog-head .head-row { flex-wrap: wrap; gap: 10px 18px; }
  .blog-page .blog-search { flex: 1 1 100%; margin-left: 0; }
}

/* ---------- ARTICLE LAYOUT + PROSE ---------- */
.blog-page .article-wrap { max-width: 820px; padding-top: 34px; padding-bottom: 40px; }
.blog-page article { background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-1);
  padding: clamp(22px, 4vw, 46px); }
.blog-page .crumb { font-size: 13px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--slate); margin: 0 0 14px; }
.blog-page .crumb a { color: var(--blue-dark); text-decoration: none; }
.blog-page .crumb a:hover { text-decoration: underline; }
.blog-page article h1 { font-size: clamp(28px, 4.4vw, 40px); margin: 0 0 10px; }
.blog-page .dateline { color: var(--slate); font-size: 14px; margin: 0 0 22px; }
.blog-page article h2 { font-size: clamp(21px, 3vw, 27px); margin: 34px 0 12px; }
.blog-page article h3 { font-size: 18px; margin: 24px 0 8px; }
.blog-page article p { margin: 0 0 14px; }
.blog-page article ul, .blog-page article ol { margin: 0 0 16px; padding-left: 26px; }
.blog-page article li { margin: 0 0 8px; }
.blog-page article img { border-radius: 12px; }
.blog-page .hero-img { width: 100%; height: auto; margin: 4px 0 20px; }
.blog-page article a { color: var(--blue-dark); }
.blog-page article a:hover { color: var(--red-dark); }

/* ---------- IN-ARTICLE TABLES ---------- */
.blog-page article .table-scroll { overflow-x: auto; margin: 0 0 18px; }
.blog-page article table { width: 100%; border-collapse: collapse; font-size: 14.5px;
  min-width: 560px; }
.blog-page article th, .blog-page article td { border: 1px solid var(--line);
  padding: 9px 11px; text-align: left; vertical-align: top; }
.blog-page article th { background: var(--bg); font-family: var(--body); }
.blog-page article tr:nth-child(even) td { background: #fafbff; }

/* ---------- PRODUCT FIGURES (real merchant photos, clickable) ---------- */
.blog-page .prod-figure { margin: 22px 0; text-align: center; }
.blog-page .prod-figure a { display: block; }
.blog-page .prod-figure img { max-height: 400px; width: auto; max-width: 100%;
  object-fit: contain; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 10px; }
.blog-page .prod-figure figcaption { margin-top: 8px; font-size: 13.5px;
  color: var(--slate); }
.blog-page .prod-figure figcaption a { display: inline; color: var(--blue-dark);
  font-weight: 700; text-decoration: none; }
.blog-page .prod-figure figcaption a:hover { color: var(--red-dark);
  text-decoration: underline; }
.blog-page .hero-fig { margin: 4px 0 22px; }
.blog-page .hero-fig img { max-height: 440px; }

/* ---------- IN-ARTICLE PRODUCT EMBED ---------- */
.blog-page .prod-embed { display: flex; gap: 18px; align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 16px; margin: 22px 0; }
.blog-page .prod-embed img { width: 132px; height: 132px; object-fit: cover;
  border-radius: 12px; flex: none; background: var(--paper); }
.blog-page .prod-embed .pe-body { min-width: 0; }
.blog-page .prod-embed .pe-title { font-family: var(--head); font-weight: 600;
  font-size: 17px; margin: 0 0 4px; }
.blog-page .prod-embed .pe-price { font-weight: 800; color: var(--ink);
  font-size: 15px; margin: 0 0 10px; }
.blog-page .prod-embed .pe-actions { display: flex; align-items: center;
  gap: 14px; flex-wrap: wrap; }
.blog-page .prod-embed .buy-btn { display: inline-block; background: var(--red);
  color: #fff; font-weight: 800; font-size: 14px; text-decoration: none;
  border-radius: 999px; padding: 9px 20px; }
.blog-page .prod-embed .buy-btn:hover { background: var(--red-dark); color: #fff; }
.blog-page .prod-embed .pe-link { font-size: 13.5px; font-weight: 700; }
@media (max-width: 560px) {
  .blog-page .prod-embed { flex-direction: column; align-items: flex-start; }
  .blog-page .prod-embed img { width: 100%; height: 180px; }
}

/* ---------- "CATCH 'EM ALL" PRODUCT CAROUSEL ---------- */
.blog-page .catch-em-all { margin: 40px 0 0; }
.blog-page .catch-em-all h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 6px; }
.blog-page .catch-em-all > p { color: var(--slate); margin: 0 0 16px; }
.blog-page .catch-carousel { position: relative; }
.blog-page .car-track { display: flex; gap: 14px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 14px; -webkit-overflow-scrolling: touch; }
.blog-page .prod-card { flex: 0 0 240px; width: 240px; scroll-snap-align: start;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 12px;
  display: flex; flex-direction: column; position: relative; }
.blog-page .prod-card img { width: 100%; height: 170px; object-fit: cover;
  border-radius: 10px; background: var(--bg); }
.blog-page .prod-card .pc-title { font-weight: 800; font-size: 14.5px;
  line-height: 1.35; margin: 10px 0 4px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em; }
.blog-page .prod-card .pc-price { font-weight: 800; font-size: 15px; margin: 0 0 2px; }
.blog-page .prod-card .pc-seller { color: var(--slate); font-size: 12.5px;
  margin: 0 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blog-page .prod-card .buy-btn { display: block; text-align: center;
  background: var(--red); color: #fff; font-weight: 800; font-size: 14px;
  text-decoration: none; border-radius: 999px; padding: 9px 12px; margin-top: auto; }
.blog-page .prod-card .buy-btn:hover { background: var(--red-dark); color: #fff; }
.blog-page .sponsored { position: absolute; top: 18px; left: 18px;
  background: var(--navy); color: #fff; font-size: 9.5px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; border-radius: 999px;
  padding: 3px 9px; }
.blog-page .car-prev, .blog-page .car-next { position: absolute; top: 45%;
  transform: translateY(-50%); z-index: 2; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  box-shadow: var(--shadow-1); color: var(--ink); font-size: 22px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; }
.blog-page .car-prev { left: 4px; }
.blog-page .car-next { right: 4px; }
.blog-page .car-prev:hover, .blog-page .car-next:hover { background: var(--bg); }
.blog-page .car-prev[hidden], .blog-page .car-next[hidden] { display: none; }

/* ---------- RELATED ARTICLES ---------- */
.blog-page .related-articles { margin: 40px 0 0; }
.blog-page .related-articles h2 { font-size: clamp(22px, 3vw, 28px); margin: 0 0 16px; }
.blog-page .related-grid { display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.blog-page .rel-card { display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-1); overflow: hidden;
  text-decoration: none; color: var(--ink); }
.blog-page .rel-card:hover { box-shadow: var(--shadow-2); }
.blog-page .rel-card img { width: 100%; height: 130px; object-fit: cover;
  border-radius: 0; }
.blog-page .rel-card .rel-ph { height: 130px; display: flex; align-items: center;
  justify-content: center; background: var(--bg); }
.blog-page .rel-card .rel-ph svg { width: 54px; height: 54px; opacity: .9; }
.blog-page .rel-card .rel-body { padding: 12px 14px 16px; }
.blog-page .rel-card h3 { font-size: 15.5px; margin: 0 0 6px; line-height: 1.3; }
.blog-page .rel-card:hover h3 { color: var(--red-dark); }
.blog-page .rel-card .rel-date { color: var(--slate); font-size: 12.5px;
  margin: 0 0 6px; }
.blog-page .rel-card .rel-desc { color: var(--slate); font-size: 13.5px; margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blog-page .related-articles noscript a { display: inline-block; margin: 0 14px 8px 0;
  font-weight: 700; }
@media (max-width: 760px) {
  .blog-page .related-grid { grid-template-columns: 1fr; }
}

/* ---------- BLOG INDEX (/blog) ---------- */
.blog-page .index-wrap { padding-top: 38px; padding-bottom: 40px; }
.blog-page .index-wrap > h1 { font-size: clamp(30px, 4.6vw, 44px); margin: 0 0 8px; }
.blog-page .index-intro { color: var(--slate); max-width: 68ch; margin: 0 0 30px;
  font-size: 17px; }
.blog-page .post-grid { display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.blog-page .post-card { display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-1); overflow: hidden;
  text-decoration: none; color: var(--ink); }
.blog-page .post-card:hover { box-shadow: var(--shadow-2); }
.blog-page .post-card img { width: 100%; height: 170px; object-fit: cover; }
.blog-page .post-card .post-ph { height: 170px; display: flex; align-items: center;
  justify-content: center; background: var(--bg); }
.blog-page .post-card .post-ph svg { width: 64px; height: 64px; opacity: .9; }
.blog-page .post-card .post-body { padding: 14px 16px 18px; }
.blog-page .post-card h2 { font-size: 18.5px; margin: 0 0 6px; line-height: 1.28; }
.blog-page .post-card:hover h2 { color: var(--red-dark); }
.blog-page .post-card .post-date { color: var(--slate); font-size: 13px;
  margin: 0 0 8px; }
.blog-page .post-card .post-desc { color: var(--slate); font-size: 14px; margin: 0; }

/* ---------- FOOTER (mirrors index.html's footer look) ---------- */
.blog-page .blog-foot { background: var(--yellow); color: var(--navy);
  margin-top: 58px; border-top: 1px solid rgba(16,25,79,.15); }
.blog-page .blog-foot .foot-grid { display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding: 46px 0 30px; }
.blog-page .blog-foot .foot-brand p { font-size: 13.5px; margin: 12px 0 0;
  max-width: 40ch; color: rgba(16,25,79,.8); }
.blog-page .blog-foot h3 { font-size: 12px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--navy); margin: 4px 0 14px;
  font-family: var(--body); }
.blog-page .blog-foot ul { list-style: none; margin: 0; padding: 0; }
.blog-page .blog-foot li { margin: 0 0 9px; }
.blog-page .blog-foot a { color: rgba(16,25,79,.85); text-decoration: none;
  font-size: 14px; font-weight: 600; }
.blog-page .blog-foot a:hover { color: var(--red-dark); text-decoration: underline; }
.blog-page .blog-foot .foot-legal { border-top: 1px solid rgba(16,25,79,.2);
  padding: 18px 0 34px; display: flex; justify-content: space-between;
  gap: 10px 26px; flex-wrap: wrap; font-size: 12px; color: rgba(16,25,79,.65); }
.blog-page .blog-foot .foot-legal a { font-size: 12px; color: var(--navy); }
.blog-page .blog-foot .foot-legal .right { text-align: right; max-width: 62ch; }
@media (max-width: 900px) {
  .blog-page .blog-foot .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .blog-page .blog-foot .foot-grid { grid-template-columns: 1fr; }
  .blog-page .blog-foot .foot-legal .right { text-align: left; }
}

/* ---------- SCROLL REVEAL + SHIMMER SWEEP ----------
   Motion only for users who have not asked for reduced motion; everyone else
   gets fully visible content with no transforms and no sweep. */
@media (prefers-reduced-motion: no-preference) {
  .blog-page .reveal-shimmer { opacity: .001; transform: translateY(14px);
    transition: opacity .55s cubic-bezier(.2,.7,.2,1),
                transform .55s cubic-bezier(.2,.7,.2,1);
    position: relative; overflow: hidden; }
  .blog-page .reveal-shimmer.in { opacity: 1; transform: none; }
  .blog-page .reveal-shimmer.in::after { content: ""; position: absolute;
    inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 35%,
                rgba(255,255,255,.55) 50%, transparent 65%);
    transform: translateX(-100%);
    animation: blog-shimmer .9s ease .1s 1 forwards; }
  @keyframes blog-shimmer {
    to { transform: translateX(100%); }
  }
}

/* ---------- TOPIC STRIP (blog index + topic pages) ---------- */
.blog-page .topic-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.blog-page .topic-chip { display: inline-flex; align-items: center; gap: 7px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; font-weight: 800; color: var(--navy);
  text-decoration: none; box-shadow: var(--shadow-1); }
.blog-page .topic-chip:hover { color: var(--red-dark); border-color: rgba(227,53,13,.35); }
.blog-page .topic-chip.current { background: var(--navy); color: #fff;
  border-color: var(--navy); }
.blog-page .topic-chip .tc-n { background: var(--bg); color: var(--slate);
  border-radius: 999px; font-size: 11.5px; font-weight: 800; padding: 1px 7px; }
.blog-page .topic-chip.current .tc-n { background: rgba(255,255,255,.18); color: #fff; }
.blog-page .drawer-nav .dhead { padding: 14px 18px 6px; font-size: 11px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--slate); }

/* ---------- ARTICLE SIDE RAIL (desktop store-category nav; Board 2026-07-29) ---------- */
.blog-page .side-rail { display: none; }
@media (min-width: 1100px) {
  .blog-page.article-page .article-wrap { display: grid; max-width: 1180px;
    grid-template-columns: minmax(0, 820px) 300px; gap: 0 34px;
    align-items: start; }
  .blog-page.article-page .article-wrap > * { grid-column: 1; min-width: 0; }
  .blog-page.article-page .side-rail { display: block; grid-column: 2;
    grid-row: 1 / span 9; position: sticky; top: 86px; }
  .blog-page.article-page .burger { display: none; }
}
.blog-page .rail-box { background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 18px 16px; }
.blog-page .rail-head { font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--slate); margin: 0 0 10px;
  font-family: var(--body); }
.blog-page .rail-cats details { border-top: 1px solid var(--line); }
.blog-page .rail-cats details:first-of-type { border-top: 0; }
.blog-page .rail-cats summary { list-style: none; cursor: pointer; display: flex;
  align-items: center; padding: 11px 2px; font-weight: 800; font-size: 14.5px;
  color: var(--ink); }
.blog-page .rail-cats summary::-webkit-details-marker { display: none; }
.blog-page .rail-cats summary .caret { margin-left: auto; color: var(--slate);
  font-size: 10px; transition: transform .2s ease; }
.blog-page .rail-cats details[open] summary .caret { transform: rotate(180deg); }
.blog-page .rail-cats summary:hover { color: var(--red-dark); }
.blog-page .rail-cats .rk { padding: 0 0 10px; }
.blog-page .rail-cats .rk a { display: block; padding: 6px 2px 6px 14px;
  font-size: 13.5px; font-weight: 600; color: var(--slate); text-decoration: none;
  border-radius: 8px; }
.blog-page .rail-cats .rk a:hover { color: var(--red-dark); background: var(--bg); }
.blog-page .rail-cats .rk a.rall { color: var(--blue-dark); font-weight: 800; }
