/* ============================================================
   DAILY GADGETS ZONE: visual identity. Site-specific.

   WHO THIS IS FOR
   Shoppers scrolling deals on marketplaces and social shops,
   gift buyers and anyone replacing a charger, who are curious,
   a bit skeptical, and want a straight answer about what a
   gadget really is and who made it.

   WHAT THE DESIGN HAS TO SAY
   Sharp, technical and trustworthy, like the regulatory label on
   the bottom of a device: every claim has a number or a source.

   SIGNATURES
   Lookup cards styled as rating plates (a monospace top strip,
   hairline border, like the sticker under a gadget), a chip brand
   mark, numbered six-step checks with tool links, worded recall
   stamps, and a watt-hour calculator for flying with a power bank.

   COLOR
   Cool paper, near-black ink, signal blue links and buttons,
   safety orange labels and warnings, verified green, a red recall
   stamp, pale plate gray. Every pair is checked by the build
   script.

   TYPE
   Oxanium for headings: engineered and squared-off. Rethink Sans
   for reading: clean and friendly. Share Tech Mono for label plates.
   ============================================================ */

:root {
  --paper:  #f4f5f2;
  --plate:  #e9ecef;
  --warn-t: #fdeee2;
  --ok-t:   #e3f1e8;
  --blue-t: #e4eefa;
  --ink:    #121417;
  --soft:   #4a5058;
  --blue:   #0050b3;
  --orange: #a84300;
  --green:  #1b6e3a;
  --red:    #9c1c1c;
  --line:   #cfd4da;
  --f-text: #d6dbe0;
  --cyan:   #7fd3ff;

  --accent:     var(--blue);
  --accent-ink: #ffffff;
  --focus:      var(--blue);
  --measure:    66ch;

  --display: 'Oxanium', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body:    'Rethink Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:    'Share Tech Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

[hidden] { display: none !important; }
body { font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper);
  background-image: linear-gradient(rgba(18,20,23,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(18,20,23,.035) 1px, transparent 1px);
  background-size: 24px 24px; }
.wrap { width: min(70rem, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 46rem; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-bottom: 0.55rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.3rem; }
p + p { margin-top: 0.8rem; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 600; }
a:hover { color: var(--ink); text-decoration-thickness: 2.5px; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.kicker { font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); margin-bottom: 0.5rem; }
.lede { font-size: 1.2rem; color: var(--soft); max-width: 58ch; }
.fine { font-size: 0.9rem; color: var(--soft); margin-top: 0.8rem; }
.source { font-size: 0.8125rem; color: var(--soft); margin-top: auto; padding-top: 0.5rem; overflow-wrap: anywhere; }
.source-inline { font-size: 0.85rem; color: var(--soft); overflow-wrap: anywhere; }
.lab { font-family: var(--mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--soft); margin: 0.7rem 0 0.1rem; }
.lab--orange { color: var(--orange); margin-top: 0; }
.more { margin-top: 1rem; font-weight: 600; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.site-header { background: var(--ink); color: #ffffff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.55rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: #ffffff; text-decoration: none; }
.brand:hover { color: var(--cyan); }
.chip { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.06em; color: var(--ink); background: var(--cyan); border-radius: 4px; padding: 0.2rem 0.4rem; box-shadow: 0 0 0 2px var(--ink), 0 0 0 3px var(--cyan); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.1rem 0.3rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.55rem; color: #ffffff; text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--cyan); text-decoration: underline; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--cyan); }
.site-header :focus-visible { outline-color: var(--cyan); }

main { padding-block: 2.5rem 4rem; }
.hero { padding-bottom: 0.75rem; }
.hero h1 { max-width: 19ch; margin-bottom: 0.9rem; }
.section { margin-top: 3rem; }

.standard { list-style: none; counter-reset: q; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(min(12.5rem, 100%), 1fr)); }
.standard li { counter-increment: q; background: #ffffff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 4px; padding: 0.9rem 1rem; }
.standard li::before { content: "Q" counter(q); display: block; font-family: var(--mono); color: var(--orange); margin-bottom: 0.2rem; }

.cards { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); }
.card { max-width: none; background: #ffffff; border: 1px solid var(--line); border-radius: 4px; padding: 1rem 1.2rem 0.9rem; display: flex; flex-direction: column; }

.plates { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(20rem, 100%), 1fr)); }
.plate { max-width: none; background: var(--plate); border: 1px solid var(--ink); border-radius: 6px; padding: 0 1.1rem 0.9rem; display: flex; flex-direction: column; }
.plate-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--ink); margin: 0 -1.1rem 0.7rem; padding: 0.35rem 1.1rem; background: #ffffff; border-radius: 6px 6px 0 0; }
.how { font-size: 0.95rem; margin-top: 0.5rem; }
.go { margin-top: auto; padding-top: 0.5rem; }
.go a { display: inline-flex; align-items: center; min-height: 44px; }

.recalls { list-style: none; margin: 1.1rem 0 1.2rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr)); }
.recall { max-width: none; background: #ffffff; border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 4px; padding: 0.9rem 1.15rem; display: flex; flex-direction: column; }
.recall-top { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; margin-bottom: 0.4rem; }
.stamp { font-family: var(--mono); font-size: 0.85rem; text-transform: uppercase; color: var(--red); border: 2px solid var(--red); border-radius: 3px; padding: 0 0.45rem; background: #ffffff; }
.stamp--warn { color: var(--orange); border-color: var(--orange); background: var(--warn-t); }
.when { font-family: var(--mono); font-size: 0.85rem; color: var(--soft); }

.panel { background: #ffffff; border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.1rem, 3vw, 1.8rem); max-width: 56rem; }
.panel ul { padding-left: 1.2rem; }
.panel li { margin-bottom: 0.5rem; }
.panel--warn { background: var(--warn-t); border-color: #f0c9a8; }
.label-panel { border: 1px solid var(--ink); padding-top: 0; }
.label-panel .plate-top { margin: 0 calc(-1 * clamp(1.1rem, 3vw, 1.8rem)) 0.9rem; padding-inline: clamp(1.1rem, 3vw, 1.8rem); background: var(--plate); }

.steps { counter-reset: s; list-style: none; padding: 0 !important; margin: 1rem 0 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 1.2rem 3rem; margin: 0 !important; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -0.1rem; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border: 2px solid var(--blue); border-radius: 4px; font-family: var(--mono); font-size: 1.1rem; color: var(--blue); background: var(--blue-t); }
.mini { list-style: disc; padding-left: 1.2rem !important; margin: 0.3rem 0 0; }
.mini li { margin-bottom: 0.5rem; }
.tool-links { list-style: none; padding: 0 !important; margin: 0.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; }
.tool-links li { margin: 0 !important; }
.tool-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem; border: 1px solid var(--blue); border-radius: 999px; background: var(--blue-t); text-decoration: none; }
.tool-links a:hover { background: #ffffff; }

.type-picker { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: end; margin: 1rem 0; padding: 1rem 1.2rem; background: #ffffff; border: 1px solid var(--line); border-radius: 6px; max-width: 56rem; }
.type-picker label { font-weight: 700; width: 100%; }
.type-picker select { min-height: 48px; padding: 0 0.7rem; border: 2px solid var(--soft); border-radius: 6px; background: #ffffff; font: inherit; color: var(--ink); width: 100%; max-width: 26rem; }
.shown { width: 100%; margin: 0; font-size: 0.95rem; color: var(--soft); }
.type-block { background: #ffffff; border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 4px; padding: 1rem 1.2rem; margin-top: 1rem; max-width: 56rem; }

.timeline { list-style: none; padding: 0 !important; margin: 1rem 0 0; border-left: 3px solid var(--orange); }
.timeline li { position: relative; padding: 0 0 1.1rem 1.3rem; margin: 0 !important; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 0.35rem; width: 15px; height: 15px; border-radius: 3px; background: var(--warn-t); border: 3px solid var(--orange); }

.wh-form { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr)); align-items: end; margin-top: 1rem; }
.field { display: grid; gap: 0.3rem; }
.field label { font-weight: 700; }
.field input { min-height: 48px; padding: 0 0.8rem; border: 2px solid var(--soft); border-radius: 6px; background: #ffffff; font-family: var(--mono); font-size: 1.1rem; color: var(--ink); width: 100%; }
.wh-form .btn { justify-self: start; }
.wh-out:not(:empty) { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.wh-value { font-family: var(--mono); font-size: 2rem; color: var(--ink); }
.wh-error { font-weight: 700; color: var(--red); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 1.3rem; background: var(--blue); color: #ffffff; border: 2px solid var(--blue); border-radius: 6px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #ffffff; }
.btn--quiet { background: #ffffff; color: var(--ink); border-color: var(--ink); }
.btn--quiet:hover { background: var(--plate); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.5rem; }
.prose h2 { margin-top: 2.2rem; }
.prose ul { padding-left: 1.25rem; margin-top: 0.5rem; }
.prose li { margin-bottom: 0.45rem; }

.site-footer { background: var(--ink); color: #ffffff; margin-top: 3rem; padding-block: 2.5rem 3rem; }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.site-footer h2 { font-family: var(--mono); font-size: 0.875rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.5rem; }
.site-footer p { color: var(--f-text); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { color: #ffffff; display: inline-block; padding-block: 0.3rem; }
.site-footer a:hover { color: var(--cyan); }
.site-footer .fine { color: var(--f-text); margin-top: 2rem; }
.site-footer :focus-visible { outline-color: var(--cyan); }

@media (forced-colors: active) {
  .stamp { border: 2px solid CanvasText; }
  .site-nav a[aria-current="page"] { text-decoration: underline; }
}
