/*
Theme Name: econ-en-06
Theme URI: https://example.com/econ-en-06
Author: site-06-en-economic-initiatives
Description: Taboola advertorial theme for site-06 (EN/EN-GEO). xcloudpulsed.com-derived brand, GDPR cookie banner, SEO/OG/JSON-LD built in.
Version: 1.0.0
License: GNU General Public License v2 or later
Text xcloudpulsed.com: econ-en-06
*/

/* ---------- Base ---------- */
:root {
  --ink: #1c2430;
  --ink-soft: #45515f;
  --ink-faint: #6b7684;
  --paper: #ffffff;
  --paper-warm: #f7f5f1;
  --line: #e3e0d9;
  --brand: #143a5e;
  --brand-deep: #0d2a46;
  --accent: #b3442a;
  --accent-soft: #f6e9e4;
  --radius: 10px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); }
a:hover { color: var(--accent); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--brand);
  border-bottom: 4px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
  line-height: 1.15;
  padding: 8px 0;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: #cfdce8;
}

.site-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.site-nav a {
  color: #e9eef4;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 6px;
}

.site-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.site-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); color: #fff; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  border-radius: 6px;
  font-size: 1.15rem;
  line-height: 1;
  padding: 7px 11px;
  cursor: pointer;
}

/* ---------- Layout ---------- */
main { padding: 28px 0 48px; }

.page-narrow { max-width: 780px; margin: 0 auto; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumbs li::after { content: "›"; margin-left: 6px; color: var(--line); }
.breadcrumbs li:last-child::after { content: ""; margin: 0; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- Article ---------- */
.article {
  max-width: 780px;
  margin: 0 auto;
}

.article-label {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #e7cabb;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.article h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4.6vw, 2.55rem);
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--brand-deep);
}

.article-meta {
  color: var(--ink-faint);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.article-meta a { color: var(--ink-soft); }

.article-standfirst {
  font-size: 1.13rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin: 18px 0 26px;
}

.article h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: var(--brand-deep);
  margin: 38px 0 12px;
  line-height: 1.3;
}

.article h3 {
  font-size: 1.1rem;
  color: var(--brand);
  margin: 26px 0 8px;
}

.article p { margin: 0 0 16px; }

.article ul, .article ol { margin: 0 0 18px; padding-left: 24px; }
.article li { margin-bottom: 8px; }

.article blockquote {
  margin: 22px 0;
  padding: 14px 20px;
  background: var(--paper-warm);
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  font-style: italic;
}

.article blockquote footer {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 8px;
}

.article .disclosure-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
  background: var(--paper-warm);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 26px 0 0;
}

/* Figures */
figure { margin: 28px 0; }

figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

figcaption {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 8px;
  line-height: 1.45;
}

figcaption .credit { color: #9aa3ad; }

/* Timeline table */
.timeline-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 26px;
  font-size: 0.95rem;
}

.timeline-table th,
.timeline-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.timeline-table th {
  background: var(--paper-warm);
  color: var(--brand-deep);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.timeline-table td:first-child { white-space: nowrap; font-weight: 600; color: var(--brand); }

/* ---------- Static pages ---------- */
.page-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--brand-deep);
  margin: 6px 0 10px;
}

.page-lead { color: var(--ink-soft); font-size: 1.05rem; }

.legal h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  color: var(--brand-deep);
  margin: 30px 0 10px;
}

.legal h3 { font-size: 1.05rem; color: var(--brand); margin: 20px 0 8px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }

.update-date { color: var(--ink-faint); font-size: 0.9rem; }

.info-card {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 22px 0;
}

.info-card h2 { margin-top: 0; font-size: 1.1rem; color: var(--brand-deep); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; margin: 24px 0; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  color: var(--ink);
  border: 1px solid #c9cdd3;
  border-radius: 8px;
  background: #fff;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.field .error-msg {
  display: none;
  color: var(--accent);
  font-size: 0.85rem;
  margin-top: 5px;
}

.field.invalid input,
.field.invalid textarea { border-color: var(--accent); }
.field.invalid .error-msg { display: block; }

textarea { min-height: 140px; resize: vertical; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  border-radius: 8px;
  padding: 11px 22px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-primary:hover { background: var(--brand-deep); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}

.btn-ghost:hover { background: #eef2f6; }

.form-success {
  display: none;
  background: #eaf5ec;
  border: 1px solid #b9dcc2;
  color: #1f5f31;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 20px 0;
}

.form-success.visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-deep);
  color: #c7d3de;
  margin-top: 40px;
}

.footer-inner {
  padding: 34px 20px 26px;
  display: grid;
  gap: 24px;
  grid-template-columns: 1.4fr 1fr 1fr;
}

.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 0.9rem; margin: 8px 0 0; max-width: 42ch; }
.footer-entity { color: #93a7ba; font-size: 0.82rem !important; }

.footer-col h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #93a7ba;
  margin: 0 0 10px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: #dfe7ee; text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 14px 20px 18px;
  font-size: 0.82rem;
  color: #93a7ba;
  text-align: center;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(15, 30, 45, 0.16);
  padding: 18px 20px;
}

.cookie-banner.visible { display: block; }

.cookie-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-inner p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); max-width: 60ch; }

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-actions .btn { padding: 9px 18px; font-size: 0.92rem; }
.cookie-link { font-size: 0.9rem; }

/* ---------- WP alignments / misc ---------- */
.wp-caption { max-width: 100%; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding-bottom: 12px;
    gap: 2px;
  }

  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 12px; }

  .header-inner { padding-top: 6px; padding-bottom: 6px; }

  .footer-inner { grid-template-columns: 1fr; gap: 18px; }

  .timeline-table { font-size: 0.88rem; display: block; overflow-x: auto; }

  body { font-size: 16px; }
}

@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1 1 auto; text-align: center; }
}
