/*
Theme Name: BestBrands Editorial (static build)
Theme URI: https://bestbrandslist.com/
Description: Editorial guide theme for brand guides and survey walkthroughs.
Version: 2.0
Note: Static CSS file served under a WordPress-style theme path for
cosmetic consistency with the site's WP-mimicry markup. Not a real WP theme.
*/

/* ============================================================
   1. Design tokens
   ============================================================ */
:root {
  --navy:        #0d2c54;
  --navy-600:    #16406f;
  --navy-050:    #eef3f9;
  --amber:       #f5a623;
  --amber-050:   #fff6e5;
  --amber-700:   #8a5a06;

  --ink:         #16202e;
  --body:        #37424f;
  --muted:       #626f80;
  --line:        #e2e8f0;
  --line-soft:   #eef2f7;
  --surface:     #ffffff;
  --surface-alt: #f6f8fb;

  --link:        #10508f;
  --link-hover:  #0a3a6b;

  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   14px;

  --shadow-sm:   0 1px 2px rgba(16, 32, 55, .06);
  --shadow-md:   0 10px 24px -10px rgba(13, 44, 84, .22);

  --wrap:        1200px;
  --prose:       74ch;

  --font-head:   Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h:    112px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 2px; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   2. Header
   ============================================================ */
.top-bar {
  background: var(--navy);
  color: #c7d6e8;
  font-size: .78rem;
  letter-spacing: .01em;
}
.top-bar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.top-bar strong { color: #fff; font-weight: 600; }
.top-bar .top-bar-note { display: flex; align-items: center; gap: 7px; }
.top-bar a { color: #d6e5f7; }
.top-bar a:hover { color: var(--amber); text-decoration: none; }
.top-bar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex: none; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-branding {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 32px;
}
.site-title {
  grid-column: 1; grid-row: 1;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
  line-height: 1.2;
}
.site-title a { color: var(--navy); display: inline-flex; align-items: center; gap: 10px; }
.site-title a:hover { text-decoration: none; color: var(--navy-600); }
.site-title a::before {
  content: "";
  width: 30px; height: 30px;
  flex: none;
  border-radius: 7px;
  background: var(--navy);
  box-shadow: inset 0 -9px 0 var(--amber);
}
.site-description {
  grid-column: 1; grid-row: 2;
  font-size: .82rem;
  color: var(--muted);
  margin: 3px 0 0 40px;
}

.main-navigation { grid-column: 2; grid-row: 1 / 3; }
.main-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.main-navigation li.menu-item a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
  padding: 6px 0;
  display: inline-block;
  position: relative;
}
.main-navigation li.menu-item a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.main-navigation li.menu-item a:hover { text-decoration: none; color: var(--navy); }
.main-navigation li.menu-item a:hover::after,
.main-navigation li.current-menu-item a::after { transform: scaleX(1); }

/* ============================================================
   3. Page shell
   ============================================================ */
.site-content {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 30px 24px 64px;
}
.content-area { min-width: 0; }

.layout-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}

.breadcrumbs {
  font-size: .8rem;
  color: var(--muted);
  margin: 0 0 10px;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-weight: 600;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--navy); }

/* ============================================================
   4. Hero (home + archive intro)
   ============================================================ */
.page-hero {
  background:
    radial-gradient(ellipse 70% 130% at 88% -10%, rgba(245,166,35,.30), transparent 60%),
    linear-gradient(160deg, #0d2c54 0%, #143a6b 55%, #0a2447 100%);
  background-color: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 38px 42px 40px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--amber), #ffcd6b);
}
.page-hero .entry-title,
.page-hero h1 {
  font-family: var(--font-head);
  font-size: 2.5rem;
  line-height: 1.18;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 14px;
  max-width: 30ch;
}
.page-hero .lead-answer {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #ccdcf0;
  margin: 0;
  max-width: 62ch;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero-stats div { line-height: 1.3; }
.hero-stats .n {
  display: block;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--amber);
}
.hero-stats .l { font-size: .8rem; color: #b9cce4; }

/* ============================================================
   5. Entry header + typography
   ============================================================ */
.entry-header { margin-bottom: 6px; }
.entry-header .entry-title {
  font-family: var(--font-head);
  font-size: 2.15rem;
  line-height: 1.24;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 4px 0 10px;
}
.entry-meta {
  font-size: .84rem;
  color: var(--muted);
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.entry-meta a { color: var(--muted); }

.content-area > h1:not(.entry-title),
.page-title { font-family: var(--font-head); }

.entry-content { max-width: var(--prose); }
.entry-content > p { margin: 0 0 18px; }
.entry-content .lead-answer {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink);
}
.entry-content h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 42px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.entry-content h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 54px; height: 3px;
  background: var(--amber);
  border-radius: 2px;
}
.entry-content h3 {
  font-family: var(--font-head);
  font-size: 1.18rem;
  color: var(--ink);
  margin: 26px 0 8px;
}
.entry-content ul, .entry-content ol { padding-left: 22px; margin: 0 0 18px; }
.entry-content li { margin-bottom: 9px; }
.entry-content ol li::marker { font-weight: 700; color: var(--navy); }
.entry-content strong { color: var(--ink); }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  max-width: 100%;
}
.table-wrap table { margin: 0 !important; min-width: 420px; }

.entry-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  font-size: .93rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.entry-content table th, .entry-content table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
}
.entry-content table th {
  background: var(--navy-050);
  color: var(--navy);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.entry-content table tr:last-child td { border-bottom: 0; }
.entry-content table tbody tr:nth-child(even) { background: var(--surface-alt); }

/* ============================================================
   6. Disclaimer / notices
   ============================================================ */
.brand-disclaimer {
  background: var(--amber-050);
  border: 1px solid #f3dcae;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-size: .88rem;
  line-height: 1.6;
  color: #4a3f28;
  margin: 0 0 24px;
}
.brand-disclaimer strong { color: #6b4c10; }

/* ============================================================
   7. Featured image + TOC
   ============================================================ */
.featured-image {
  width: 100%;
  max-width: var(--prose);
  aspect-ratio: 2.5 / 1;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  margin: 0 0 26px;
  box-shadow: var(--shadow-sm);
}

.toc {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 26px 0 30px;
  max-width: var(--prose);
}
.toc > p {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}
.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { margin-bottom: 7px; font-size: .92rem; padding-left: 18px; position: relative; }
.toc li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
.toc li:last-child { margin-bottom: 0; }

/* ============================================================
   8. FAQ
   ============================================================ */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  margin: 0 0 10px;
  background: var(--surface);
  transition: border-color .18s ease, box-shadow .18s ease;
  max-width: var(--prose);
}
.faq-item:hover { border-color: #cbd6e4; }
.faq-item[open] { border-color: #cbd6e4; box-shadow: var(--shadow-sm); }
.faq-item summary {
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  padding: 14px 46px 14px 18px;
  position: relative;
  font-size: .97rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--body); font-size: .95rem; }

/* ============================================================
   9. Related + sources + comments block
   ============================================================ */
.related-posts {
  background: var(--navy-050);
  border: 1px solid #d8e4f2;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 34px 0;
  max-width: var(--prose);
}
.related-posts h3 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: var(--navy);
}
.related-posts ul { margin: 0; padding: 0; list-style: none; }
.related-posts li { margin-bottom: 9px; font-size: .94rem; padding-left: 20px; position: relative; }
.related-posts li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--amber);
  font-weight: 700;
}
.related-posts li:last-child { margin-bottom: 0; }

.sources-list { font-size: .88rem; }
.sources-list a { word-break: break-word; }

#comments {
  margin-top: 44px;
  padding: 24px 26px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: var(--prose);
}
#comments h2 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--ink);
}
#comments p { margin: 0; font-size: .94rem; }
#comments .comment-form label { display: block; font-size: .85rem; margin-top: 10px; }
#comments .comment-form input,
#comments .comment-form textarea {
  width: 100%; padding: 9px 11px;
  border: 1px solid #ccd5e0; border-radius: var(--radius-sm);
  font: inherit; font-size: .93rem;
}

/* ============================================================
   10. Card grid
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 24px;
  margin: 24px 0 8px;
}
.brand-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd6e4;
}
.brand-card > a { display: block; line-height: 0; }
.brand-card img {
  width: 100%;
  aspect-ratio: 2.5 / 1;   /* matches the 800x320 hero artwork — no side cropping */
  height: auto;
  object-fit: cover;
  display: block;
}
.brand-card .card-body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.brand-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
}
.brand-card h3 a { color: var(--ink); }
.brand-card:hover h3 a { color: var(--navy-600); }
.brand-card p { font-size: .875rem; color: var(--muted); margin: 0; line-height: 1.55; }

.reward-badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 4px;
  background: var(--amber);
  color: #4a3204;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ============================================================
   11. Sidebar widgets
   ============================================================ */
.widget-area { position: sticky; top: calc(var(--header-h) + 16px); min-width: 0; }
.widget {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.widget h2.widget-title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 14px;
  padding-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.widget h2.widget-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 34px; height: 2px;
  background: var(--amber);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 11px; font-size: .89rem; line-height: 1.5; }
.widget li:last-child { margin-bottom: 0; }
.widget_trust { background: var(--navy); border-color: var(--navy); color: #c7d6e8; }
.widget_trust h2.widget-title { color: #fff; border-bottom-color: rgba(255,255,255,.18); }
.widget_trust p { margin: 0; font-size: .87rem; line-height: 1.6; }
.widget_trust a { color: var(--amber); }

/* ============================================================
   12. Footer
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: #a9bfd8;
  margin-top: 56px;
  font-size: .88rem;
}
.footer-widgets {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 46px 24px 34px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
}
.footer-widgets .widget {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
.footer-widgets .widget h2.widget-title {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.16);
}
.footer-widgets .widget h2.widget-title::after { background: var(--amber); }
.footer-widgets p { margin: 0 0 12px; line-height: 1.65; color: #a9bfd8; }
.footer-widgets a { color: #dbe7f5; }
.footer-widgets a:hover { color: var(--amber); text-decoration: none; }
.footer-brand {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.site-info {
  border-top: 1px solid rgba(255,255,255,.13);
  text-align: center;
  padding: 18px 24px 22px;
  font-size: .82rem;
  color: #93aac6;
}
.site-info p { margin: 0; }
.site-info a { color: #b8cbe2; }

/* ============================================================
   13. Responsive
   ============================================================ */
@media (max-width: 1040px) {
  .layout-two-col { grid-template-columns: 1fr; gap: 34px; }
  .widget-area { position: static; }
  .widget-area { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
  .widget { margin-bottom: 0; }
}

@media (max-width: 860px) {
  :root { --header-h: 96px; }
  .site-branding { grid-template-columns: 1fr; row-gap: 4px; padding: 12px 18px; }
  .site-title { grid-column: 1; grid-row: 1; font-size: 1.4rem; }
  .site-description { grid-column: 1; grid-row: 2; margin-left: 40px; }
  .main-navigation { grid-column: 1; grid-row: 3; margin-top: 10px; }
  .main-navigation ul { gap: 10px 20px; flex-wrap: wrap; }
  .main-navigation li.menu-item a { font-size: .85rem; }

  .top-bar-inner { padding: 7px 16px; justify-content: center; }
  .top-bar { font-size: .72rem; line-height: 1.45; }
  .top-bar .top-bar-note { display: block; text-align: center; }
  .top-bar .dot { display: none; }
  .top-bar .top-bar-meta { display: none; }

  .site-content { padding: 22px 18px 48px; }
  .page-hero { padding: 30px 24px 32px; border-radius: var(--radius); margin-bottom: 26px; }
  .page-hero .entry-title, .page-hero h1 { font-size: 1.75rem; max-width: none; }
  .page-hero .lead-answer { font-size: .97rem; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
    padding-top: 18px;
  }
  .hero-stats .n { font-size: 1.2rem; }
  .hero-stats .l { font-size: .73rem; line-height: 1.35; display: block; }

  .entry-header .entry-title { font-size: 1.62rem; }
  .entry-content h2 { font-size: 1.3rem; margin-top: 34px; }
  body { font-size: 16.5px; }

  .card-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }

  .footer-widgets { grid-template-columns: 1fr; gap: 30px; padding: 34px 18px 26px; }
  #comments { padding: 20px; }
}

@media (max-width: 520px) {
  .card-grid { grid-template-columns: 1fr; }
  .site-description { display: none; }
}

/* ============================================================
   14. Standalone page headings (home / archive / text pages)
   ============================================================ */
.page-narrow { max-width: var(--prose); }

.content-area > .entry-title {
  font-family: var(--font-head);
  font-size: 2.05rem;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 4px 0 18px;
}
.content-area > .lead-answer {
  font-size: 1.06rem;
  color: var(--ink);
  max-width: var(--prose);
  margin: 0 0 20px;
}
.content-area > h2 {
  font-family: var(--font-head);
  font-size: 1.45rem;
  color: var(--ink);
  margin: 34px 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.content-area > h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 54px; height: 3px;
  background: var(--amber);
  border-radius: 2px;
}
.page-narrow > p { max-width: var(--prose); margin: 0 0 18px; }

@media (max-width: 860px) {
  .content-area > .entry-title { font-size: 1.6rem; }
  .content-area > h2 { font-size: 1.28rem; }
}
