/*
Theme Name: Rynek Wrocław
Theme URI: https://wroclawrynek.pl
Author: Rynek Wrocław
Author URI: https://wroclawrynek.pl
Description: Praktyczny przewodnik po Rynku we Wrocławiu — szybki, elegancki motyw WordPress z redakcyjną typografią.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rynek-wroclaw
Tags: blog, news, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ─────────────────────────────────────────
   1. Variables & Reset
   2. Typography
   3. Layout
   4. Header & Navigation
   5. Hero
   6. Cards & Grids
   7. Article List
   8. Sidebar & Widgets
   9. Single Post
   10. Archive / Category
   11. Info Box
   12. FAQ
   13. Time Tabs
   14. Footer
   15. Utilities
   16. Responsive
───────────────────────────────────────── */

/* ── 1. VARIABLES & RESET ── */
:root {
  --ink: #1a1208;
  --ink-muted: #5c4f3a;
  --ink-faint: #9c8c70;
  --parchment: #f7f3ec;
  --parchment-dk: #ede6d8;
  --amber: #c8860a;
  --amber-dark: #8a5c04;
  --amber-light: #f5e4b8;
  --brick: #8b3a2a;
  --brick-light: #f2e8e5;
  --surface: #ffffff;
  --border: rgba(140,115,75,.18);
  --border-strong: rgba(140,115,75,.38);

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;

  --container: 1180px;
  --content: 760px;
  --radius: 3px;
  --transition: .18s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

body {
  font-family: var(--ff-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--amber-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--amber);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--ff-body);
}

/* ── 2. TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  line-height: 1.18;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 {
  font-size: clamp(34px, 4.2vw, 58px);
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
}

h3 {
  font-size: clamp(23px, 2.2vw, 30px);
}

h4 {
  font-size: 21px;
}

p {
  margin-bottom: 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

/* ── 3. LAYOUT ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.site-main {
  padding: 52px 0 76px;
}

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

.layout-content {
  min-width: 0;
}

/* ── 4. HEADER & NAVIGATION ── */
.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 18px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-branding {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  max-width: 760px;
}

.site-title {
  font-family: var(--ff-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--amber-light);
  line-height: 1;
  letter-spacing: .01em;
}

.site-description {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(245,228,184,.58);
  margin-top: 7px;
  line-height: 1.45;
  font-weight: 600;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-search-btn {
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition);
}

.header-search-btn:hover {
  border-color: var(--amber-light);
}

.header-search-btn svg {
  width: 16px;
  height: 16px;
  stroke: rgba(245,228,184,.72);
  fill: none;
  stroke-width: 2;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(245,228,184,.78);
  transition: all var(--transition);
}

/* Primary navigation */
.main-nav {
  border-top: 1px solid rgba(255,255,255,.06);
}

.nav-list {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
  padding: 0;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-list li a {
  display: block;
  font-size: 13.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(245,228,184,.68);
  padding: 15px 20px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  font-weight: 700;
}

.nav-list li a:hover,
.nav-list li.current-menu-item a,
.nav-list li.current-menu-ancestor a {
  color: var(--amber-light);
  border-bottom-color: var(--amber);
}

/* Search overlay */
.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,18,8,.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.search-overlay.open {
  display: flex;
}

.search-overlay form {
  width: min(650px, 90vw);
  display: flex;
  gap: 0;
}

.search-overlay input[type="search"] {
  flex: 1;
  border: none;
  border-bottom: 2px solid var(--amber);
  background: transparent;
  font-family: var(--ff-display);
  font-size: 32px;
  color: var(--amber-light);
  padding: 14px 4px;
  outline: none;
}

.search-overlay input::placeholder {
  color: rgba(245,228,184,.3);
}

.search-overlay button[type="submit"] {
  background: var(--amber);
  color: var(--ink);
  border: none;
  padding: 0 24px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}

.search-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(245,228,184,.5);
  font-size: 34px;
  line-height: 1;
}

/* Breadcrumb */
.breadcrumb-bar {
  background: var(--parchment-dk);
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
  font-size: 14px;
  color: var(--ink-faint);
  letter-spacing: .03em;
}

.breadcrumb-bar a {
  color: var(--ink-faint);
}

.breadcrumb-bar a:hover {
  color: var(--amber-dark);
}

.breadcrumb-bar span {
  display: inline;
}

.breadcrumb-sep {
  margin: 0 8px;
  color: var(--border-strong);
}

.breadcrumb-current {
  color: var(--ink-muted);
}

/* ── 5. HERO ── */
.site-hero {
  position: relative;
  background: var(--ink);
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .48;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,18,8,.18) 0%,
    rgba(26,18,8,.58) 58%,
    rgba(26,18,8,.92) 100%
  );
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(200,134,10,.04) 0, rgba(200,134,10,.04) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(0deg, rgba(245,228,184,.026) 0, rgba(245,228,184,.026) 1px, transparent 1px, transparent 80px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 54px 0 72px;
  max-width: 760px;
}

.hero-eyebrow {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 38px;
  height: 2px;
  background: var(--amber);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 700;
  color: #f5f0e8;
  line-height: 1.06;
  margin-bottom: 22px;
  letter-spacing: -.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--amber-light);
}

.hero-desc {
  font-size: 21px;
  color: rgba(245,240,232,.78);
  line-height: 1.65;
  margin-bottom: 34px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 15px 30px;
  border: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
  line-height: 1.2;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}

.btn-primary:hover {
  background: #d8940f;
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: rgba(245,240,232,.85);
  border: 1px solid rgba(245,240,232,.34);
}

.btn-outline:hover {
  border-color: rgba(245,240,232,.75);
  color: #f5f0e8;
}

/* ── 6. CARDS & GRIDS ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.section-label-text {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber-dark);
  font-weight: 800;
  white-space: nowrap;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 52px;
}

.topic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 26px 22px 22px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
  text-decoration: none;
  display: block;
}

.topic-card:hover {
  border-color: var(--amber);
  box-shadow: 4px 4px 0 var(--amber-light);
  transform: translateY(-2px);
}

.topic-card-icon {
  font-size: 32px;
  margin-bottom: 15px;
  display: block;
  line-height: 1;
}

.topic-card-title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 7px;
}

.topic-card-meta {
  font-size: 15px;
  color: var(--ink-faint);
  letter-spacing: .02em;
}

.topic-card-arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  opacity: 0;
  transition: opacity var(--transition);
}

.topic-card:hover .topic-card-arrow {
  opacity: 1;
}

.topic-card-arrow svg {
  width: 18px;
  height: 18px;
  stroke: var(--amber-dark);
  fill: none;
  stroke-width: 2;
}

/* Post cards */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--transition), transform var(--transition);
  display: block;
  text-decoration: none;
}

.post-card:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}

.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--parchment-dk);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.04);
}

.post-card-body {
  padding: 22px 20px 20px;
}

.post-card-cat {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber-dark);
  font-weight: 800;
  margin-bottom: 8px;
}

.post-card-title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.28;
  margin-bottom: 10px;
}

.post-card:hover .post-card-title {
  color: var(--amber-dark);
}

.post-card-excerpt {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.62;
  margin-bottom: 12px;
}

.post-card-meta {
  font-size: 14px;
  color: var(--ink-faint);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* Featured article */
.featured-article {
  background: var(--ink);
  color: var(--parchment);
  padding: 42px;
  margin-bottom: 34px;
  position: relative;
  overflow: hidden;
}

.featured-article::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 54px solid rgba(200,134,10,.07);
  pointer-events: none;
}

.featured-tag {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--ink);
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 20px;
  font-weight: 800;
}

.featured-title {
  font-family: var(--ff-display);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  color: var(--amber-light);
  line-height: 1.18;
  margin-bottom: 14px;
}

.featured-excerpt {
  font-size: 18px;
  color: rgba(245,228,184,.72);
  line-height: 1.68;
  margin-bottom: 24px;
  max-width: 780px;
}

.featured-link {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: gap var(--transition);
  font-weight: 800;
}

.featured-link:hover {
  color: var(--amber-light);
  gap: 12px;
}

.featured-link svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ── 7. ARTICLE LIST ── */
.article-list {
  margin-bottom: 44px;
}

.article-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: padding-left var(--transition);
}

.article-item:hover {
  padding-left: 6px;
}

.article-item:last-child {
  border-bottom: none;
}

.article-num {
  font-family: var(--ff-display);
  font-size: 30px;
  font-weight: 700;
  color: #dfd6c7;
  min-width: 42px;
  line-height: 1.1;
  border-right: 2px solid var(--border-strong);
  padding-right: 18px;
  flex-shrink: 0;
}

.article-body {
  flex: 1;
  min-width: 0;
}

.article-cat {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber-dark);
  font-weight: 800;
  margin-bottom: 6px;
}

.article-title {
  font-family: var(--ff-display);
  font-size: 25px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.28;
  margin-bottom: 6px;
}

.article-item:hover .article-title {
  color: var(--amber-dark);
}

.article-meta-small {
  font-size: 15px;
  color: var(--ink-faint);
}

/* ── 8. SIDEBAR & WIDGETS ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.widget-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 26px 22px;
}

.widget-title {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 13px;
  border-bottom: 2px solid var(--amber);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.25;
}

.widget-title svg {
  width: 17px;
  height: 17px;
  stroke: var(--amber);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.widget-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--transition);
  line-height: 1.45;
}

.widget-link:last-child {
  border-bottom: none;
}

.widget-link:hover {
  color: var(--amber-dark);
}

.widget-link svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  opacity: .5;
  flex-shrink: 0;
}

/* Info box widget */
.info-box {
  background: var(--amber-light);
  border-left: 4px solid var(--amber);
  padding: 20px 22px;
}

.info-box-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 14px;
}

.info-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  font-size: 16px;
  padding: 8px 0;
  color: var(--ink-muted);
  border-bottom: 1px solid rgba(200,134,10,.16);
  line-height: 1.45;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row strong {
  color: var(--ink);
  font-weight: 800;
}

/* ── 9. SINGLE POST ── */
.post-header {
  margin-bottom: 36px;
}

.post-category-link {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber-dark);
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 13px;
}

.post-title {
  font-family: var(--ff-display);
  font-size: clamp(38px, 4.4vw, 64px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.08;
  margin-bottom: 18px;
  letter-spacing: -.02em;
}

.post-subtitle {
  font-size: 22px;
  color: var(--ink-muted);
  line-height: 1.58;
  margin-bottom: 22px;
  font-style: italic;
}

.post-meta-bar {
  display: flex;
  gap: 22px;
  font-size: 15px;
  color: var(--ink-faint);
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 2px solid var(--ink);
  flex-wrap: wrap;
}

.post-thumbnail {
  margin: 30px 0;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Entry content */
.entry-content {
  font-size: 20px;
  line-height: 1.82;
  color: var(--ink-muted);
}

.entry-content h2 {
  font-family: var(--ff-display);
  font-size: clamp(31px, 3vw, 44px);
  font-weight: 700;
  color: var(--ink);
  margin: 48px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  line-height: 1.2;
}

.entry-content h3 {
  font-family: var(--ff-display);
  font-size: clamp(25px, 2.4vw, 32px);
  font-weight: 700;
  color: var(--ink);
  margin: 36px 0 14px;
  line-height: 1.25;
}

.entry-content p {
  margin-bottom: 1.35em;
}

.entry-content ul,
.entry-content ol {
  list-style: none;
  margin: 0 0 1.4em 0;
  padding: 0;
}

.entry-content ul li,
.entry-content ol li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px dotted var(--border);
}

.entry-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 800;
}

.entry-content ol {
  counter-reset: ol-counter;
}

.entry-content ol li {
  counter-increment: ol-counter;
}

.entry-content ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  color: var(--amber-dark);
  font-weight: 800;
  font-size: 16px;
}

.entry-content strong {
  color: var(--ink);
  font-weight: 800;
}

.entry-content a {
  color: var(--amber-dark);
  border-bottom: 1px solid rgba(200,134,10,.35);
}

.entry-content a:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* Pullquote */
.pull-quote,
.entry-content blockquote {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 26px;
  color: var(--ink);
  border-left: 4px solid var(--amber);
  padding: 20px 26px;
  margin: 36px 0;
  background: var(--brick-light);
  line-height: 1.5;
}

/* ── 10. ARCHIVE / CATEGORY ── */
.archive-header {
  padding: 42px 0 36px;
  border-bottom: 2px solid var(--border-strong);
  margin-bottom: 40px;
}

.archive-eyebrow {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber-dark);
  font-weight: 800;
  margin-bottom: 10px;
}

.archive-title {
  font-family: var(--ff-display);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 38px;
  line-height: 1.1;
}

/* главный блок описания категории */
.archive-desc {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  column-gap: 46px;
  align-items: start;
  font-size: 19px;
  color: var(--ink-muted);
  line-height: 1.65;
  max-width: 1100px;
}

/* картинка рубрики слева */
.archive-desc img {
  width: 180px;
  max-width: 180px;
  height: auto;
  grid-column: 1;
  grid-row: 1 / span 10;
  margin: 0;
}

/* если WordPress оборачивает картинку в figure */
.archive-desc figure,
.archive-desc .wp-block-image {
  grid-column: 1;
  grid-row: 1 / span 10;
  margin: 0;
}

/* текст справа */
.archive-desc p {
  grid-column: 2;
  margin-bottom: 1.1em;
}

/* мобильная версия */
@media (max-width: 680px) {
  .archive-title {
    margin-bottom: 26px;
  }

  .archive-desc {
    display: block;
    font-size: 18px;
  }

  .archive-desc img {
    display: block;
    width: 140px;
    max-width: 140px;
    margin: 0 auto 26px auto;
  }

  .archive-desc figure,
  .archive-desc .wp-block-image {
    display: block;
    margin: 0 0 26px 0;
  }
}
/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  font-size: 16px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: all var(--transition);
}

.pagination a:hover {
  border-color: var(--amber);
  color: var(--amber-dark);
}

.pagination .current {
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
  font-weight: 800;
}

/* ── 11. INFO BOX STANDALONE ── */
.info-box-standalone {
  background: var(--amber-light);
  border-left: 4px solid var(--amber);
  padding: 24px 26px;
  margin: 36px 0;
  font-size: 18px;
  line-height: 1.7;
}

/* ── 12. FAQ ── */
.faq-section {
  margin: 44px 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  font-family: var(--ff-display);
  font-size: 23px;
  font-weight: 700;
  padding: 18px 42px 18px 0;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  line-height: 1.35;
}

.faq-question:hover {
  color: var(--amber-dark);
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: var(--amber);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.75;
  padding: 0 0 22px;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ── 13. TIME TABS ── */
.time-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.time-tabs::-webkit-scrollbar {
  display: none;
}

.time-tab {
  font-size: 15px;
  letter-spacing: .06em;
  padding: 13px 22px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: var(--ink-faint);
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: all var(--transition);
  font-weight: 700;
}

.time-tab.active {
  border-bottom-color: var(--amber);
  color: var(--ink);
  font-weight: 800;
}

.time-tab:hover:not(.active) {
  color: var(--ink-muted);
}

.time-content {
  display: none;
}

.time-content.active {
  display: block;
}

.route-step {
  display: flex;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px dashed var(--border);
}

.route-step:last-of-type {
  border-bottom: none;
}

.step-num {
  width: 32px;
  height: 32px;
  background: var(--amber);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}

.step-text {
  font-size: 18px;
  color: var(--ink-muted);
  line-height: 1.65;
}

.step-text strong {
  color: var(--ink);
  font-weight: 800;
}

.route-meta {
  display: flex;
  gap: 22px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.route-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  color: var(--ink-muted);
}

.route-chip svg {
  width: 16px;
  height: 16px;
  stroke: var(--amber-dark);
  fill: none;
  stroke-width: 2;
}

/* ── 14. FOOTER ── */
.site-footer {
  background: var(--ink);
  color: rgba(245,228,184,.56);
  padding: 52px 0 30px;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 34px;
  margin-bottom: 36px;
}

.footer-col-title {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
  font-weight: 800;
}

.footer-link {
  display: block;
  font-size: 16px;
  color: rgba(245,228,184,.55);
  padding: 5px 0;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-link:hover {
  color: var(--amber-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(245,228,184,.34);
}

.footer-logo-text {
  font-family: var(--ff-display);
  font-size: 22px;
  color: rgba(245,228,184,.48);
}

/* ── 15. UTILITIES ── */
.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;
}

.text-amber {
  color: var(--amber-dark);
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 34px 0;
}

/* ── 16. RESPONSIVE ── */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .layout-two-col {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
  }

  .site-title {
    font-size: 27px;
  }

  .site-description {
    font-size: 11px;
    letter-spacing: .12em;
  }

  .nav-list li a {
    font-size: 12.5px;
    padding: 14px 16px;
  }

  .hero-title {
    font-size: clamp(40px, 5vw, 62px);
  }
}

@media (max-width: 820px) {
  html {
    font-size: 17px;
  }

  body {
    font-size: 17px;
    line-height: 1.72;
  }

  .layout-two-col {
    grid-template-columns: 1fr;
  }

  .site-main {
    padding: 42px 0 62px;
  }

  .card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .hamburger {
    display: flex;
  }

  .header-inner {
    padding: 15px 0 12px;
  }

  .site-branding {
    max-width: calc(100% - 90px);
  }

  .site-title {
    font-size: 25px;
  }

  .site-description {
    font-size: 10.5px;
    letter-spacing: .1em;
    line-height: 1.35;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,.08);
    z-index: 99;
  }

  .main-nav.open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
  }

  .nav-list li a {
    padding: 15px 24px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    font-size: 14px;
  }

  .site-hero {
    min-height: 480px;
  }

  .hero-content {
    padding: 44px 0 58px;
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(38px, 9vw, 56px);
  }

  .hero-desc {
    font-size: 19px;
    max-width: 100%;
  }

  .featured-article {
    padding: 32px 26px;
  }

  .article-title {
    font-size: 23px;
  }

  .entry-content {
    font-size: 18px;
    line-height: 1.78;
  }

  .entry-content h2 {
    font-size: 32px;
  }

  .entry-content h3 {
    font-size: 26px;
  }

  .sidebar {
    display: block;
  }

  .sidebar .widget-box {
    margin-bottom: 22px;
  }

  .info-row {
    grid-template-columns: 110px 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 18px;
  }

  body {
    font-size: 17px;
  }

  .site-main {
    padding: 34px 0 54px;
  }

  .site-title {
    font-size: 23px;
  }

  .site-description {
    font-size: 9.5px;
    letter-spacing: .08em;
  }

  .header-search-btn {
    width: 34px;
    height: 34px;
  }

  .site-hero {
    min-height: 430px;
  }

  .hero-bg-image {
    opacity: .42;
  }

  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(26,18,8,.3) 0%,
      rgba(26,18,8,.72) 55%,
      rgba(26,18,8,.95) 100%
    );
  }

  .hero-content {
    padding: 38px 0 48px;
  }

  .hero-eyebrow {
    font-size: 10.5px;
    letter-spacing: .16em;
    margin-bottom: 14px;
  }

  .hero-eyebrow::before {
    width: 26px;
  }

  .hero-title {
    font-size: clamp(34px, 11vw, 46px);
    line-height: 1.08;
  }

  .hero-desc {
    font-size: 18px;
    line-height: 1.62;
    margin-bottom: 26px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    text-align: center;
    font-size: 13px;
    padding: 15px 22px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topic-card {
    padding: 24px 20px 20px;
  }

  .topic-card-title {
    font-size: 22px;
  }

  .featured-article {
    padding: 28px 22px;
  }

  .featured-title {
    font-size: 30px;
  }

  .featured-excerpt {
    font-size: 17px;
  }

  .article-item {
    gap: 14px;
    padding: 20px 0;
  }

  .article-num {
    font-size: 26px;
    min-width: 36px;
    padding-right: 14px;
  }

  .article-title {
    font-size: 22px;
  }

  .post-title {
    font-size: 36px;
  }

  .post-subtitle {
    font-size: 19px;
  }

  .post-meta-bar {
    font-size: 14px;
    gap: 14px;
  }

  .entry-content {
    font-size: 18px;
  }

  .entry-content h2 {
    font-size: 30px;
    margin-top: 42px;
  }

  .entry-content h3 {
    font-size: 24px;
  }

  .pull-quote,
  .entry-content blockquote {
    font-size: 22px;
    padding: 18px 20px;
  }

  .widget-title {
    font-size: 23px;
  }

  .widget-link {
    font-size: 17px;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 3px;
    font-size: 16px;
  }

  .faq-question {
    font-size: 21px;
  }

  .faq-answer {
    font-size: 17px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* Category description: image left, text wraps around */
.archive-desc img,
.archive-desc .wp-block-image img,
.archive-desc p img {
  float: left;
  display: inline-block;
  width: 170px;
  max-width: 170px;
  height: auto;
  margin: 4px 34px 18px 0;
}

.archive-desc .wp-block-image,
.archive-desc figure {
  display: inline;
  margin: 0;
}

.archive-desc::after {
  content: "";
  display: block;
  clear: both;
}

@media (max-width: 680px) {
  .archive-desc img,
  .archive-desc .wp-block-image img,
  .archive-desc p img {
    float: none;
    display: block;
    width: 140px;
    max-width: 140px;
    margin: 0 auto 24px auto;
  }

  .archive-desc .wp-block-image,
  .archive-desc figure {
    display: block;
  }
}
/* FINAL category intro layout */
.category .archive-header {
  display: block !important;
  max-width: none !important;
  width: 100% !important;
}

.category .archive-desc {
  display: block !important;
  max-width: none !important;
  width: 100% !important;
}

.category .cat-intro-box {
  display: flex !important;
  align-items: flex-start !important;
  gap: 38px !important;
  width: 100% !important;
  max-width: 1050px !important;
  margin-top: 34px !important;
}

.category .cat-intro-icon {
  width: 200px !important;
  max-width: 200px !important;
  min-width: 200px !important;
  height: auto !important;
  margin: 0 !important;
  flex: 0 0 200px !important;
}

.category .cat-intro-text {
  flex: 1 1 auto !important;
  max-width: 820px !important;
  font-size: 20px !important;
  line-height: 1.7 !important;
}

.category .cat-intro-text p {
  margin: 0 0 22px 0 !important;
}

@media (max-width: 680px) {
  .category .cat-intro-box {
    display: block !important;
  }

  .category .cat-intro-icon {
    display: block !important;
    width: 120px !important;
    max-width: 120px !important;
    min-width: 120px !important;
    margin: 0 auto 22px auto !important;
  }

  .category .cat-intro-text {
    font-size: 18px !important;
  }
}
/* PNG icons in topic cards */
.topic-card-icon {
  display: block;
  margin-bottom: 15px;
  line-height: 1;
}

.topic-card-icon img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}