/* Istanbul Tourist Information — Design System */
:root {
  --bg: #f7f4ef;
  --surface: #ffffff;
  --surface-2: #f0ebe3;
  --text: #142033;
  --text-muted: #5a6472;
  --primary: #0c2340;
  --primary-light: #1a3a5c;
  --accent: #c75b3a;
  --accent-hover: #a8482d;
  --sea: #2a6f7f;
  --gold: #c9a227;
  --border: #e3ddd3;
  --border-strong: #d4cbc0;
  --success: #2d6a4f;
  --danger: #9b2226;
  --focus: #3d7ea6;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(12, 35, 64, 0.08);
  --shadow-lg: 0 12px 40px rgba(12, 35, 64, 0.12);
  --header-h: 68px;
  --container: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.rtl { direction: rtl; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent); }

main { flex: 1; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.container-fluid {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.container-narrow { max-width: 760px; }

.skip-link {
  position: absolute; inset-inline-start: -9999px; z-index: 9999;
  padding: 0.75rem 1.5rem; background: var(--primary); color: #fff; border-radius: var(--radius);
}
.skip-link:focus { inset-inline-start: 1rem; top: 1rem; }

.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;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.35rem; border-radius: 10px; border: none;
  font-family: inherit; font-size: 0.9375rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary { background: var(--surface-2); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.link-btn { background: none; border: none; color: inherit; font: inherit; cursor: pointer; padding: 0; text-align: inherit; }
.btn:focus-visible, .btn-icon:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}

.btn-icon {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border: none; background: transparent;
  color: var(--text); border-radius: 10px; cursor: pointer;
  transition: background 0.2s var(--ease);
}
.btn-icon:hover { background: var(--surface-2); }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(247, 244, 239, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}

.logo {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--text); font-weight: 600; flex-shrink: 0;
}
.logo:hover { color: var(--text); }
.logo-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}
.logo-mark img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.logo-text {
  font-family: var(--font-display); font-size: 1.05rem;
  line-height: 1.2; max-width: 160px;
}

.main-nav { display: none; }
@media (min-width: 1024px) {
  .main-nav { display: block; flex: 1; }
  .mobile-menu-toggle { display: none !important; }
}
.nav-list {
  display: flex; align-items: center; justify-content: center;
  gap: 0.1rem; list-style: none; flex-wrap: wrap;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.5rem 0.75rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
}
.nav-link:hover, .nav-item:hover > .nav-link, .nav-item.is-open > .nav-link {
  color: var(--primary); background: var(--surface-2);
}
.nav-caret { opacity: 0.55; transition: transform 0.2s var(--ease); }
.nav-item:hover .nav-caret, .nav-item.is-open .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: 100%; inset-inline-start: 0;
  padding-top: 0.5rem; z-index: 250; min-width: 260px;
}
.nav-dropdown[hidden] { display: none !important; }
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item.is-open > .nav-dropdown {
  display: block !important;
}
.nav-dropdown-inner {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 0.5rem; max-height: min(70vh, 420px); overflow-y: auto;
}
.nav-dropdown-parent {
  display: block; padding: 0.55rem 0.85rem; margin-bottom: 0.25rem;
  font-size: 0.8rem; font-weight: 700; color: var(--accent);
  border-bottom: 1px solid var(--border);
}
.nav-dropdown-list { list-style: none; display: grid; gap: 0.1rem; }
.nav-dropdown-list a {
  display: block; padding: 0.5rem 0.85rem; border-radius: 8px;
  font-size: 0.875rem; color: var(--text);
}
.nav-dropdown-list a:hover { background: var(--surface-2); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 0.15rem; flex-shrink: 0; }

.lang-switcher { position: relative; }
.lang-dropdown {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  list-style: none; min-width: 170px; padding: 0.4rem; z-index: 300;
  max-height: 320px; overflow-y: auto;
}
.lang-dropdown a {
  display: block; padding: 0.55rem 0.85rem; border-radius: 8px;
  color: var(--text); font-size: 0.9rem;
}
.lang-dropdown a:hover, .lang-dropdown a[aria-current="true"] {
  background: var(--surface-2); color: var(--primary);
}

.saved-count {
  position: absolute; top: 6px; inset-inline-end: 6px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--accent); color: #fff; font-size: 0.65rem; font-weight: 700;
  border-radius: 999px; display: grid; place-items: center;
}

.mobile-nav {
  position: fixed; inset: 0; top: var(--header-h); z-index: 190;
  background: rgba(12, 35, 64, 0.4);
}
.mobile-nav-inner {
  background: var(--surface); height: 100%; max-width: 320px;
  padding: 1rem; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.rtl .mobile-nav-inner { margin-inline-start: auto; }
.mobile-nav ul { list-style: none; }
.mobile-nav-list > li { border-bottom: 1px solid var(--border); }
.mobile-nav a {
  display: block; padding: 0.9rem 0.5rem;
  font-size: 1rem; font-weight: 500; color: var(--text);
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
}
.mobile-nav-row > a { flex: 1; }
.mobile-submenu-toggle {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: none; background: var(--surface-2); border-radius: 8px;
  color: var(--text); cursor: pointer; flex-shrink: 0;
}
.mobile-submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-submenu { padding: 0 0 0.5rem 0.75rem; }
.mobile-submenu[hidden] { display: none !important; }
.mobile-submenu a {
  font-size: 0.9rem; font-weight: 400; color: var(--text-muted); padding: 0.55rem 0.5rem;
}

@media (max-width: 1023px) {
  .logo-text { display: none; }
}

/* ─── Hero ─── */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  background: linear-gradient(160deg, #0c2340 0%, #1a3a5c 45%, #2a4f6e 100%);
  color: #fff;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.15;
  background-image:
    radial-gradient(circle at 20% 80%, var(--accent) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--sea) 0%, transparent 40%);
}
.hero-grid {
  position: relative; display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.hero-eyebrow {
  display: inline-block; margin-bottom: 0.75rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.1; margin-bottom: 1rem;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82); margin-bottom: 1.75rem; max-width: 520px;
}

.hero-search {
  display: flex; gap: 0.5rem; margin-bottom: 1.5rem;
  background: var(--surface); padding: 0.35rem; border-radius: 14px;
  box-shadow: var(--shadow-lg); max-width: 520px;
}
.hero-search input {
  flex: 1; border: none; background: transparent;
  padding: 0.75rem 1rem; font-size: 1rem; color: var(--text);
  min-width: 0;
}
.hero-search input::placeholder { color: var(--text-muted); }
.hero-search .btn { border-radius: 10px; }

.interest-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.chips-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-inline-end: 0.25rem; }
.chip {
  padding: 0.35rem 0.9rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.2s var(--ease);
}
.chip:hover { background: rgba(255,255,255,0.22); color: #fff; }

.hero-visual { display: none; position: relative; height: 320px; }
@media (min-width: 900px) { .hero-visual { display: block; } }
.hero-card {
  position: absolute; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
}
.hero-card-1 { width: 55%; height: 65%; top: 5%; inset-inline-start: 0; }
.hero-card-2 { width: 50%; height: 55%; bottom: 0; inset-inline-end: 0; background: rgba(199,91,58,0.25); }
.hero-card-3 { width: 35%; height: 40%; top: 30%; inset-inline-end: 25%; background: rgba(42,111,127,0.3); }

/* ─── Sections ─── */
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--surface); }
.section-cta { padding-bottom: 0; }

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.section-eyebrow {
  display: block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.35rem;
}
.section-header h2 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary); line-height: 1.2;
}
.section-link { font-size: 0.9rem; font-weight: 600; color: var(--sea); white-space: nowrap; }
.section-link:hover { color: var(--accent); }

/* ─── Category grid ─── */
.category-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.category-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.35rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  transition: all 0.25s var(--ease);
}
.category-card:hover {
  border-color: var(--sea); box-shadow: var(--shadow);
  transform: translateY(-2px); color: var(--text);
}
.category-card-num {
  font-size: 0.75rem; font-weight: 700; color: var(--accent);
  letter-spacing: 0.05em;
}
.category-card h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.category-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; flex: 1; }
.category-card-link { font-size: 0.82rem; font-weight: 600; color: var(--sea); margin-top: 0.25rem; }

/* ─── Featured layout ─── */
.featured-layout {
  display: grid; gap: 1.5rem;
}
@media (min-width: 768px) {
  .featured-layout { grid-template-columns: 1.4fr 1fr; }
}

.feature-hero {
  background: var(--surface); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border);
}
.feature-hero a { color: inherit; display: block; }
.feature-hero a:hover { color: inherit; }
.feature-hero-image { aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.feature-hero-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.feature-hero:hover .feature-hero-image img { transform: scale(1.03); }
.feature-hero-body { padding: 1.5rem; }
.feature-hero-body h3 {
  font-family: var(--font-display); font-size: 1.5rem;
  margin: 0.5rem 0; line-height: 1.25;
}
.feature-hero-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.75rem; }

.feature-list { display: flex; flex-direction: column; gap: 0.75rem; }
.feature-list-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.25rem;
  transition: border-color 0.2s var(--ease);
}
.feature-list-item:hover { border-color: var(--sea); }
.feature-list-item a { color: inherit; display: block; }
.feature-list-item h3 { font-size: 0.95rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.25rem; }

/* ─── Article grid ─── */
.article-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.article-card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.article-card a { color: inherit; display: flex; flex-direction: column; height: 100%; }
.article-card-image { aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.article-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.article-card:hover .article-card-image img { transform: scale(1.04); }
.article-card-body { padding: 1.15rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.article-card-body h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.article-card-body p { font-size: 0.875rem; color: var(--text-muted); }

.image-placeholder {
  width: 100%; height: 100%; min-height: 160px;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--border) 100%);
}

.category-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
}
.meta { font-size: 0.8rem; color: var(--text-muted); }

/* ─── Newsletter ─── */
.newsletter-box {
  display: grid; gap: 1.5rem; align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg); color: #fff;
}
@media (min-width: 768px) {
  .newsletter-box { grid-template-columns: 1fr 1fr; }
}
.newsletter-content h2 {
  font-family: var(--font-display); font-size: 1.75rem; margin-bottom: 0.5rem;
}
.newsletter-content p { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
.newsletter-fields { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.newsletter-fields input {
  flex: 1; min-width: 200px; padding: 0.75rem 1rem;
  border: none; border-radius: 10px; font-size: 0.95rem;
}
.form-message { margin-top: 0.5rem; font-size: 0.875rem; min-height: 1.25rem; }
.form-message.is-success { color: #86efac; }
.form-message.is-error { color: #fca5a5; }
.form-message.is-info { color: #fde68a; }
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ─── Footer ─── */
.site-footer {
  background: var(--primary); color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem; margin-top: 3rem;
}
.footer-top {
  display: grid; gap: 2.5rem; margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1fr 2fr; }
}
.footer-brand p { font-size: 0.9rem; line-height: 1.6; margin-top: 0.75rem; max-width: 300px; color: rgba(255,255,255,0.65); }
.logo-footer { color: #fff; }
.logo-footer:hover { color: #fff; }
.logo-footer .logo-mark { background: rgba(255,255,255,0.15); }

.footer-links {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.footer-col h3 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #fff; margin-bottom: 0.85rem;
}
.footer-col ul { list-style: none; }
.footer-col a, .footer-col .link-btn {
  display: block; padding: 0.3rem 0; font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
.footer-col a:hover, .footer-col .link-btn:hover { color: #fff; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 1rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem;
}
.footer-langs { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.footer-langs a { color: rgba(255,255,255,0.55); font-size: 0.82rem; }
.footer-langs a:hover { color: #fff; }

/* ─── Article page ─── */
.reading-progress {
  position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 300;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0); transform-origin: left;
}
.rtl .reading-progress { transform-origin: right; }

.breadcrumb { margin-block: 1.25rem; font-size: 0.85rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; color: var(--text-muted); }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-inline-start: 0.35rem; opacity: 0.5; }
.rtl .breadcrumb li:not(:last-child)::after { content: '‹'; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li[aria-current="page"] {
  color: var(--text);
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-page { padding-bottom: 4rem; }
.article-top {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(42, 111, 127, 0.08), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(199, 91, 58, 0.07), transparent 50%),
    linear-gradient(180deg, #efe9df 0%, var(--bg) 100%);
  padding: 1.25rem 0 0.5rem;
  margin-top: 0;
}
.article-top .breadcrumb { margin-top: 0; margin-bottom: 1.25rem; }

.article-header { margin-bottom: 1.5rem; max-width: 820px; }
.article-header h1 {
  font-family: var(--font-display); font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.12; margin: 0.85rem 0 0.9rem; color: var(--primary);
  letter-spacing: -0.01em;
}
.article-excerpt {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 1.35rem;
  line-height: 1.55;
  max-width: 42em;
}

.article-meta-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.65rem 1.15rem; margin-bottom: 1.1rem;
}
.article-author {
  display: flex; align-items: center; gap: 0.55rem;
}
.article-author-avatar,
.article-author-fallback {
  width: 36px; height: 36px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.article-author-fallback {
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: 0.85rem;
}
.article-author strong { font-size: 0.92rem; color: var(--text); font-weight: 600; }

.article-meta-date {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: var(--text-muted);
}
.article-meta-date.is-updated { opacity: 0.85; }

.share-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.65rem 0.85rem;
}
.share-bar-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
}
.share-buttons { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.share-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: none; color: #fff; font-size: 0.95rem;
  transition: transform 0.15s var(--ease), filter 0.15s var(--ease), opacity 0.15s var(--ease);
  cursor: pointer; text-decoration: none;
}
.share-btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); }
.share-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.share-whatsapp { background: #25d366; }
.share-x { background: #111111; }
.share-facebook { background: #1877f2; }
.share-linkedin { background: #0a66c2; }
.share-email { background: var(--sea); }
.share-copy { background: var(--primary); }
.share-copy.is-copied { background: var(--success); }

.article-hero { margin: 0 0 2rem; }
.article-hero-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  background: var(--surface-2); aspect-ratio: 21 / 9; max-height: 480px;
}
.article-hero-frame img {
  width: 100%; height: 100%; object-fit: cover;
}

.article-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 2.5rem; }
}
.article-toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.article-toc[hidden] { display: none !important; }
@media (min-width: 1024px) {
  .article-toc { position: sticky; top: calc(var(--header-h) + 1rem); }
}
.article-toc h2 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem;
}
.article-toc nav { font-size: 0.85rem; display: grid; gap: 0.1rem; }
.article-toc a {
  display: block; padding: 0.4rem 0; color: var(--text-muted);
  border-inline-start: 2px solid transparent; padding-inline-start: 0.75rem;
  line-height: 1.35;
}
.article-toc a.is-h3 { padding-inline-start: 1.35rem; font-size: 0.8rem; }
.article-toc a.active, .article-toc a:hover { color: var(--primary); border-color: var(--accent); }

.article-main { min-width: 0; }

.prose { font-size: 1.0625rem; line-height: 1.8; max-width: 720px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.35rem, 2.5vw, 1.65rem); margin: 2.25rem 0 0.85rem; color: var(--primary); line-height: 1.25; }
.prose h3 { font-size: 1.15rem; margin: 1.75rem 0 0.6rem; color: var(--primary-light); }
.prose p { margin-bottom: 1.2rem; }
.prose a { text-decoration: underline; text-underline-offset: 0.15em; }
.prose ul, .prose ol { margin-bottom: 1.2rem; padding-inline-start: 1.5rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  border-inline-start: 4px solid var(--accent); padding: 0.35rem 0 0.35rem 1.25rem;
  margin: 1.75rem 0; font-family: var(--font-display); font-size: 1.15rem;
  font-style: italic; color: var(--primary); background: transparent;
}
.prose img { border-radius: var(--radius); margin: 1.75rem 0; box-shadow: var(--shadow); }
.prose figure { margin: 1.75rem 0; }
.prose figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; text-align: center; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.65rem 0.9rem; text-align: start; }
.prose th { background: var(--surface-2); font-weight: 600; }
.prose code {
  font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.35em;
  border-radius: 4px;
}

.article-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  max-width: 720px;
}
.article-tags-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
}
.article-tags ul { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; }
.article-tag {
  display: inline-block; padding: 0.35rem 0.75rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; font-size: 0.82rem; color: var(--text-muted);
}

.article-faq {
  margin-top: 2.75rem; max-width: 720px;
  padding: 1.5rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.article-faq h2 {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--primary); margin-bottom: 1rem;
}
.faq-list { display: grid; gap: 0.5rem; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 0.95rem 1.1rem;
  font-weight: 600; color: var(--primary); position: relative;
  padding-inline-end: 2.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; inset-inline-end: 1.1rem; top: 50%;
  transform: translateY(-50%); font-size: 1.2rem; color: var(--accent);
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 1.1rem 1.1rem; color: var(--text-muted); font-size: 0.95rem; }
.faq-answer p:last-child { margin-bottom: 0; }

.article-category-cta {
  margin-top: 2.5rem; max-width: 720px;
  padding: 1.5rem 1.6rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; border-radius: var(--radius-lg);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.article-category-cta p { margin: 0; font-size: 1.05rem; max-width: 28rem; }
.article-category-cta .btn-primary {
  background: #fff; color: var(--primary);
}
.article-category-cta .btn-primary:hover { background: var(--surface-2); color: var(--primary); }

.related-posts { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); }
.related-posts .section-heading { margin-bottom: 1.5rem; }
.related-posts .eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.35rem;
}
.related-posts h2 {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.75rem);
  color: var(--primary); margin: 0;
}
.article-grid-compact { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ─── Category / Search / Static ─── */
.category-page, .search-page, .static-page, .saved-page { padding: 2rem 0 3rem; }
.category-header, .search-page h1, .static-page h1, .saved-page h1 {
  font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--primary); margin-bottom: 0.75rem;
}
.category-description { font-size: 1.05rem; color: var(--text-muted); max-width: 680px; margin-bottom: 1.5rem; }
.subcategories { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.category-pill {
  padding: 0.5rem 1rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.875rem; color: var(--text); transition: all 0.2s var(--ease);
}
.category-pill:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.search-form-large {
  display: flex; gap: 0.5rem; margin: 1.5rem 0 2rem; max-width: 600px;
}
.search-form-large input {
  flex: 1; padding: 0.85rem 1.15rem; border: 2px solid var(--border);
  border-radius: var(--radius); font-size: 1rem; background: var(--surface);
}
.search-count { color: var(--text-muted); margin-bottom: 1rem; font-size: 0.9rem; }
.search-result { padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.search-result h2 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.search-result p { color: var(--text-muted); font-size: 0.9rem; }

.form-grid {
  display: grid; gap: 1rem; grid-template-columns: 1fr;
  margin: 1.5rem 0;
}
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-grid label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; font-weight: 500; }
.form-grid .full-width { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea {
  padding: 0.7rem 0.9rem; border: 1px solid var(--border);
  border-radius: 10px; font: inherit; background: var(--surface);
}
.checkbox-label { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; margin: 1rem 0; }

/* ─── Contact page ─── */
.contact-page { padding-bottom: 4rem; }
.contact-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(42, 111, 127, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(199, 91, 58, 0.1), transparent 50%),
    linear-gradient(180deg, #ebe4d8 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  overflow: hidden;
}
.contact-hero::after {
  content: '';
  position: absolute; inset-inline-end: -8%; bottom: -40%;
  width: min(420px, 55vw); height: min(420px, 55vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(12, 35, 64, 0.06), transparent 70%);
  pointer-events: none;
}
.contact-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sea); margin-bottom: 0.75rem;
}
.contact-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--primary); line-height: 1.15; margin-bottom: 0.85rem;
  max-width: 16ch;
}
.contact-lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted); max-width: 38rem; line-height: 1.6;
}
.contact-layout {
  display: grid; gap: 1.75rem;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
    gap: 2.25rem;
  }
}
.contact-note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: var(--shadow);
  animation: contact-rise 0.55s var(--ease) both;
}
.contact-note-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px; margin-bottom: 1rem;
  border-radius: 10px; background: rgba(199, 91, 58, 0.12); color: var(--accent);
}
.contact-note h2 {
  font-family: var(--font-display); font-size: 1.25rem;
  color: var(--primary); margin-bottom: 0.85rem; line-height: 1.3;
}
.contact-note p {
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.65;
  margin-bottom: 0.85rem;
}
.contact-note p:last-child { margin-bottom: 0; }
.contact-form-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  animation: contact-rise 0.55s var(--ease) 0.08s both;
}
.contact-form-title {
  font-family: var(--font-display); font-size: 1.35rem;
  color: var(--primary); margin-bottom: 1.25rem;
}
.contact-form .form-grid { margin: 0 0 0.25rem; }
.contact-form .form-grid input,
.contact-form .form-grid textarea {
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.contact-form .form-grid input:hover,
.contact-form .form-grid textarea:hover { border-color: var(--border-strong); }
.contact-form .form-grid input:focus,
.contact-form .form-grid textarea:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(42, 111, 127, 0.15);
  outline: none;
}
.contact-consent {
  margin: 1.15rem 0 1.35rem;
  padding: 0.85rem 1rem;
  background: var(--surface-2);
  border-radius: 10px;
  line-height: 1.5;
}
.contact-consent input {
  margin-top: 0.2rem; width: 1.05rem; height: 1.05rem;
  accent-color: var(--primary); flex-shrink: 0;
}
.contact-consent a {
  color: var(--primary); text-decoration: underline; text-underline-offset: 0.15em;
}
.contact-consent a:hover { color: var(--accent); }
.contact-submit { min-width: 180px; }
.contact-form-message { margin-top: 0.85rem; min-height: 1.25rem; font-size: 0.9rem; }
.contact-form-message.is-success { color: var(--success); }
.contact-form-message.is-error { color: var(--danger); }
@keyframes contact-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Legal pages ─── */
.legal-page { padding-bottom: 4rem; }
.legal-hero {
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(1.5rem, 3vw, 2.25rem);
  background:
    linear-gradient(180deg, #ebe4d8 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.legal-hero .breadcrumb { margin-top: 0; }
.legal-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sea); margin-bottom: 0.65rem;
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  color: var(--primary); line-height: 1.15; margin-bottom: 0.75rem;
}
.legal-lead {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 40rem; line-height: 1.6; margin-bottom: 0.65rem;
}
.legal-updated {
  font-size: 0.875rem; color: var(--text-muted);
}
.legal-layout {
  display: grid; gap: 1.75rem; align-items: start;
}
@media (min-width: 900px) {
  .legal-layout {
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.6fr);
    gap: 2.5rem;
  }
}
.legal-aside {
  position: sticky; top: calc(var(--header-h) + 1rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}
.legal-aside-title {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.85rem;
}
.legal-nav ul { list-style: none; display: grid; gap: 0.25rem; }
.legal-nav a {
  display: block; padding: 0.55rem 0.7rem; border-radius: 8px;
  color: var(--text); font-size: 0.92rem; font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.legal-nav a:hover { background: var(--surface-2); color: var(--primary); }
.legal-nav a.is-current {
  background: rgba(12, 35, 64, 0.08); color: var(--primary); font-weight: 650;
}
.legal-contact-link {
  display: inline-block; margin-top: 1rem; font-size: 0.9rem;
  font-weight: 600; color: var(--accent); text-decoration: underline;
  text-underline-offset: 0.15em;
}
.legal-contact-link:hover { color: var(--accent-hover); }
.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  max-width: none;
}
.legal-content h2 { scroll-margin-top: calc(var(--header-h) + 1rem); }

.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-top: 2.5rem;
}

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.error-page { text-align: center; padding: 5rem 1rem; }
.error-page h1 { font-family: var(--font-display); font-size: 5rem; color: var(--primary); opacity: 0.2; line-height: 1; }
.error-page h2 { font-family: var(--font-display); font-size: 1.75rem; margin: 1rem 0; color: var(--primary); }

/* ─── Cookie banner ─── */.cookie-banner[hidden],
.cookie-modal[hidden],
.search-modal[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 400;
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.1); padding: 1.25rem 0;
  display: block;
}
.cookie-inner {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
}
.cookie-content h2 { font-size: 1rem; margin-bottom: 0.25rem; }
.cookie-content p { font-size: 0.875rem; color: var(--text-muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.cookie-modal {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center; padding: 1rem;
}
.cookie-modal-backdrop {
  position: absolute; inset: 0; background: rgba(12,35,64,0.5);
}
.cookie-modal-inner {
  position: relative; z-index: 1;
  background: var(--surface); padding: 2rem; border-radius: var(--radius-lg);
  max-width: 400px; width: 100%; box-shadow: var(--shadow-lg);
}
.cookie-modal-close {
  position: absolute; top: 0.75rem; inset-inline-end: 0.75rem;
  width: 36px; height: 36px; border: none; background: var(--surface-2);
  border-radius: 8px; font-size: 1.25rem; line-height: 1;
  cursor: pointer; color: var(--text-muted);
}
.cookie-modal-close:hover { background: var(--border); color: var(--text); }
.cookie-modal-actions {
  display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1rem;
}
.cookie-modal-inner h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.cookie-option { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; font-size: 0.9rem; }

/* ─── Search modal ─── */
.search-modal {
  position: fixed; inset: 0; z-index: 350;
  display: grid; place-items: start center; padding-top: 12vh;
}
.search-modal-backdrop { position: absolute; inset: 0; background: rgba(12,35,64,0.55); }
.search-modal-content {
  position: relative; background: var(--surface); padding: 1.75rem;
  border-radius: var(--radius-lg); width: min(92%, 560px);
  box-shadow: var(--shadow-lg);
}
.search-modal .search-form { display: flex; gap: 0.5rem; }
.search-modal input {
  flex: 1; padding: 0.85rem 1rem; border: 2px solid var(--border);
  border-radius: 10px; font-size: 1rem;
}
.search-close {
  position: absolute; top: 0.75rem; inset-inline-end: 0.75rem;
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--text-muted); line-height: 1;
  width: 36px; height: 36px; border-radius: 8px;
}
.search-close:hover { background: var(--surface-2); }

@media (max-width: 767px) {
  .hero-search { flex-direction: column; background: transparent; padding: 0; box-shadow: none; }
  .hero-search input { background: var(--surface); border-radius: 12px; }
  .hero-search .btn { width: 100%; }
  .article-toc { display: none; }
  .newsletter-fields { flex-direction: column; }
  .newsletter-fields .btn { width: 100%; }
}
