/* Site Factory — original theme magazine. Source CSS is intentionally readable. */
:root {
  --bg: #F5F0EC;
  --surface: #FFFDFC;
  --surface-2: #EEE5E4;
  --ink: #2E2437;
  --muted: #685C6B;
  --border: #D9C7D6;
  --accent: #6D3B78;
  --accent-2: #C6E1DB;
  --button-ink: #FFFFFF;
  --radius: 4px;
  --container: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-inner { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-logo { display: block; width: 250px; height: 52px; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.main-nav a { text-decoration: none; font-size: .85rem; font-weight: 750; white-space: nowrap; }
.main-nav a:hover { color: var(--accent); }
.hero { padding-block: 24px 14px; }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-size: .73rem; letter-spacing: .12em; font-weight: 900; }
h1, h2, h3 { line-height: 1.13; }
h1 { font-size: clamp(1.8rem, 4vw, 3.4rem); letter-spacing: -.035em; margin: 0 0 10px; max-width: 1050px; }
.hero-lead { max-width: 980px; color: var(--muted); margin: 0; font-size: clamp(.92rem, 1.5vw, 1.05rem); line-height: 1.5; }
.legal-note { padding: 7px 11px; border-left: 3px solid var(--accent); background: var(--surface-2); color: var(--ink); font-size: .75rem; line-height: 1.4; margin: 12px 0 6px; }
.legal-note a { font-weight: 850; text-underline-offset: 3px; }
.listing-section { padding: 11px 0 28px; }
.section-head { display: flex; gap: 18px; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 0; }
.section-head span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.listing { display: grid; gap: 10px; margin: 0; padding: 0; width: 100%; min-width: 0; }
.listing-card { width: 100%; min-width: 0; display: grid; grid-template-columns: 45px 124px minmax(0, 1fr) 160px; align-items: center; gap: 12px; min-height: 92px; padding: 10px 13px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.listing-card--top { border-color: var(--accent); }
.listing-number { font-weight: 900; font-size: 1.06rem; text-align: center; color: var(--accent); }
.brand-logo { height: 70px; width: 124px; padding: 6px 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: calc(var(--radius) / 2); }
.brand-logo img { max-height: 61px; width: 100%; height: 100%; object-fit: contain; }
.listing-main { min-width: 0; }
.listing-main h3 { font-size: .97rem; margin: 0 0 3px; }
.offer-label { display: block; font-size: .61rem; font-weight: 900; letter-spacing: .095em; color: var(--accent); }
.bonus-value { font-size: .84rem; margin: 1px 0; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.minimum { font-size: .72rem; color: var(--muted); }
.minimum strong { color: var(--ink); }
.listing-cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border-radius: calc(var(--radius) / 1.8); background: var(--accent); color: var(--button-ink); font-weight: 850; font-size: .79rem; text-decoration: none; text-align: center; }
.listing-cta:hover { filter: brightness(1.09); }
.note-after-list { color: var(--muted); margin: 12px 0 0; font-size: .8rem; line-height: 1.5; }
.article-shell { padding-block: 30px 65px; }
.article-intro { font-size: .78rem; font-weight: 850; color: var(--accent); margin-bottom: 14px; letter-spacing: .09em; }
.editorial-section { scroll-margin-top: 18px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 16px; }
.editorial-section h2 { font-size: clamp(1.45rem, 2.65vw, 2.2rem); margin: 0 0 14px; }
.editorial-section h3 { margin: 24px 0 10px; font-size: clamp(1.12rem, 1.8vw, 1.36rem); }
.editorial-section p { color: var(--ink); opacity: .94; font-size: 1rem; margin: 0 0 16px; line-height: 1.72; }
.editorial-section ul, .editorial-section ol { margin: 9px 0 20px; padding-left: 26px; line-height: 1.75; }
.editorial-section li { padding-left: 3px; margin-bottom: 5px; }
.table-scroll { overflow-x: auto; margin: 18px 0 22px; border: 1px solid var(--border); border-radius: max(4px, var(--radius)); }
table { width: 100%; border-collapse: collapse; min-width: 570px; font-size: .88rem; }
th, td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); padding: 12px 14px; overflow-wrap: anywhere; }
th { background: var(--surface-2); color: var(--ink); }
tr:last-child td { border-bottom: 0; }
.source-link { overflow-wrap: anywhere; font-size: .78rem !important; }
.resource-section { margin-top: 28px; padding: 24px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); }
.resource-section h2 { font-size: 1.27rem; margin: 0 0 8px; }
.resource-section p { font-size: .86rem; color: var(--muted); margin: 0 0 14px; }
.resource-section summary { cursor: pointer; font-weight: 850; padding: 8px 0; }
.icon-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; margin: 8px 0 22px; }
.icon-list img { display: block; width: 100%; height: 54px; padding: 8px; object-fit: contain; background: #E9F1F0; border-radius: 10px; }
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 38px; background: var(--surface); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.site-footer p { max-width: 710px; font-size: .85rem; margin: 0 0 10px; color: var(--muted); }
.age-label { display: inline-flex; border: 2px solid var(--accent); width: 43px; height: 43px; border-radius: 50%; justify-content: center; align-items: center; font-weight: 900; }
@media (max-width: 800px) {
  .header-inner { min-height: 62px; }
  .site-logo { width: 190px; height: 46px; }
  .main-nav { gap: 10px; }
  .main-nav a { font-size: .76rem; }
  .listing-card { grid-template-columns: 36px 100px minmax(0, 1fr); gap: 10px; }
  .brand-logo { width: 100px; }
  .listing-cta { grid-column: 2 / 4; margin-top: 0; min-height: 38px; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 24px); }
  .header-inner { min-height: 58px; }
  .site-logo { width: 184px; height: 44px; }
  .main-nav a:not(.nav-listing) { display: none; }
  .hero { padding-top: 13px; padding-bottom: 3px; }
  h1 { font-size: clamp(1.5rem, 7.4vw, 2.0rem); letter-spacing: -.03em; margin-bottom: 5px; }
  .eyebrow { font-size: .59rem; margin-bottom: 4px; }
  .hero-lead { font-size: .82rem; line-height: 1.33; }
  .legal-note { font-size: .69rem; margin: 8px 0 3px; padding: 5px 8px; line-height: 1.32; }
  .listing-section { padding-top: 7px; }
  .section-head { gap: 5px; margin-bottom: 7px; align-items: center; }
  .section-head h2 { font-size: 1rem; }
  .section-head span { font-size: .65rem; text-align: right; }
  .listing { gap: 7px; }
  .listing-card { grid-template-columns: 28px 78px minmax(0, 1fr); gap: 7px; min-height: 111px; padding: 8px; }
  .listing-number { font-size: .79rem; }
  .brand-logo { width: 78px; height: 62px; padding: 4px; }
  .brand-logo img { max-height: 51px; }
  .listing-main h3 { font-size: .84rem; margin-bottom: 1px; }
  .offer-label { font-size: .52rem; }
  .bonus-value { font-size: .72rem; line-height: 1.26; }
  .minimum { font-size: .66rem; }
  .listing-cta { grid-column: 2 / 4; height: 32px; min-height: 32px; font-size: .75rem; }
  .editorial-section { padding: 18px 14px; }
  .editorial-section p { font-size: .94rem; }
  .article-shell { padding-top: 16px; }
  .resource-section { padding: 17px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Przeglad: classic magazine rhythm, typography and outlined rows */
.site-header { background: #2D2333; }
.site-header a { color: #FFFFFF; }
h1,h2,.editorial-section h3 { font-family: Georgia, 'Times New Roman', serif; }
.eyebrow { text-transform: uppercase; }
.listing-card { border-radius: 4px; border-bottom: 3px solid var(--border); }
.listing-card--top { border-left: 5px solid var(--accent); }
.brand-logo { border-radius: 0; background: #F2EDEE; }
.listing-number { font-family: Georgia, serif; font-style: italic; font-size: 1.5rem; }
.listing-cta { border-radius: 3px; }
.editorial-section { border-radius: 4px; }

/* Automatic logo-panel contrast based on supplied logo artwork. */
.listing-card .brand-logo--dark { background: #1C3043; border-color: #41526A; }
.listing-card .brand-logo--light { background: #EAF2EE; border-color: #C8D7D0; }

.site-header { background: #FFFDFC; }
.site-header a { color: var(--ink); }


/* Batch 05: internal linking and source-reference accessibility */
.topic-nav { margin: 24px 0 20px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.topic-nav h2 { margin: 0 0 12px; font-size: 1.27rem; }
.topic-nav-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 9px; }
.topic-nav-links a { color: var(--ink); background: var(--surface-2); padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; text-decoration: none; font-size: .87rem; font-weight: 750; overflow-wrap: anywhere; }
.topic-nav-links a:hover, .topic-nav-links a[aria-current='page'] { border-color: var(--accent); }
.faq-custom details { margin: 12px 0; padding: 11px 14px; border: 1px solid var(--border); border-radius: 12px; }
.faq-custom summary { cursor: pointer; font-weight: 800; }
.faq-custom details p { margin: 10px 0 0; }
.site-links { display: flex; flex-direction: column; gap: 7px; max-width: 430px; }
.site-links a { color: var(--muted); font-size: .81rem; line-height: 1.4; text-decoration: underline; text-underline-offset: 3px; }
.site-links a:hover { color: var(--accent); }
@media (max-width: 620px) { .topic-nav { padding: 13px; } .topic-nav-links { grid-template-columns: 1fr; } }


/* Batch 05 corrections: legal notice after the listing, and full cross-link navigation. */
.legal-note-wrap {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
  padding: 0 0 24px;
}
.legal-note-wrap .legal-note {
  margin: 0;
  padding: 12px 15px;
  font-size: .84rem;
  line-height: 1.5;
  border-left-width: 3px;
}
.site-footer .site-links {
  flex: 1 0 100%;
  width: 100%;
  max-width: none;
  display: block;
  padding-top: 22px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}
.site-footer .footer-nav-title {
  margin: 0 0 15px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
}
.site-footer .footer-nav-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .footer-nav-list li { min-width: 0; }
.site-footer .footer-nav-list a {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .89rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: border-color .15s ease, background-color .15s ease;
}
.site-footer .footer-nav-list a:hover,
.site-footer .footer-nav-list a:focus-visible {
  border-color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer .footer-nav-list a[aria-current="page"] {
  border-color: var(--accent);
  font-weight: 850;
}
@media (max-width: 800px) {
  .site-footer .footer-nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .site-footer .footer-nav-list { grid-template-columns: minmax(0, 1fr); }
  .site-footer .footer-nav-list a { min-height: 44px; }
  .legal-note-wrap .legal-note { font-size: .82rem; }
}


/* Site domain in visible editorial branding. Text uses UTF-8, not HTML entities. */
.hero .h1-domain {
  display: inline;
  font-size: .39em;
  line-height: 1.15;
  font-weight: 700;
  color: var(--muted, #556576);
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  vertical-align: .08em;
}
.hero .eyebrow .eyebrow-domain {
  text-transform: none;
  letter-spacing: .02em;
  font-weight: 700;
}
.site-footer .footer-domain {
  font-weight: 700;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .hero .h1-domain { font-size: .34em; }
}
