/* UberEats Promo Codes: white pages, green accents, a classic coupon and blog site layout. */

/* ---------- fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: "Archivo"; src: url("fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-var-italic.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --green: #0B7A4B;
  --green-dark: #075E3A;
  --green-50: #EEF8F2;
  --green-100: #D5EEDF;
  --ink: #17232C;
  --text: #33414B;
  --muted: #5E6A74;
  --line: #E1E6EA;
  --line-strong: #C9D1D7;
  --soft: #F6F8F9;
  --alert: #B42318;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --head-stretch: 92%;
  --radius: 8px;
  --container: 1200px;
  --gutter: 32px;
  --header-h: 66px;
  --filter-h: 56px;
}
@media (max-width: 1023px) { :root { --header-h: 58px; --gutter: 24px; } }
@media (max-width: 639px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--filter-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.65; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid rgba(11, 122, 75, .45); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
h1, h2, h3 { color: var(--ink); font-stretch: var(--head-stretch); }
strong, b { color: var(--ink); font-weight: 650; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 6px; }
.skip-link:focus { left: 12px; color: #fff; }
.vh, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-weight: 650; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; opacity: 0; }

/* ---------- top notice ---------- */
.disclosure-bar { background: var(--green-50); border-bottom: 1px solid var(--green-100); font-size: 13.5px; color: var(--text); text-align: center; }
.disclosure-bar p { margin: 0; padding: 7px 0; }
.disclosure-bar a { font-weight: 600; }
@media (max-width: 639px) { .disclosure-bar { font-size: 12.5px; } .disclosure-bar .long { display: none; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(23, 35, 44, .02), 0 4px 14px rgba(23, 35, 44, .04); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); font-size: 21px; font-weight: 800; font-stretch: 88%; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; flex: none; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.navlink { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border: 0; border-radius: 6px; background: none; color: var(--ink); font-size: 15.5px; font-weight: 550; text-decoration: none; cursor: pointer; }
.navlink:hover, .navlink[aria-expanded="true"] { background: var(--green-50); color: var(--green); }
.navlink .chev { width: 15px; height: 15px; transition: transform .15s ease-out; }
.navlink[aria-expanded="true"] .chev { transform: rotate(180deg); }
.menu-panel { position: absolute; top: calc(100% + 10px); left: 0; z-index: 70; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(23, 35, 44, .12); }
.menu-panel[hidden] { display: none; }
.menu-wide { width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.menu-narrow { width: 300px; }
.menu-group-title { margin: 6px 10px 4px; font-size: 13px; font-weight: 650; color: var(--green); }
.mi { display: flex; flex-direction: column; padding: 9px 10px; border-radius: 6px; text-decoration: none; }
.mi:hover { background: var(--green-50); }
.mi b { font-size: 15.5px; font-weight: 600; }
.mi span { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.menu-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 8px; padding: 10px 12px; background: var(--soft); border-radius: 6px; font-size: 14px; color: var(--muted); }
.menu-foot a { font-weight: 650; }
.country-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.country-btn:hover, .country-btn[aria-expanded="true"] { border-color: var(--green); color: var(--green); }
.country-btn svg { width: 16px; height: 16px; }
.country-btn .chev { width: 14px; height: 14px; }
.country-menu { left: auto; right: 0; width: 240px; padding: 6px; }
.country-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 10px; border-radius: 6px; color: var(--ink); font-size: 15px; text-decoration: none; }
.country-menu a:hover { background: var(--green-50); }
.country-menu a.is-active { color: var(--green); font-weight: 650; background: var(--green-50); }
.country-menu .iso { font-size: 13px; color: var(--muted); }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1023px) { .main-nav { display: none; } .menu-toggle { display: inline-flex; } .brand { font-size: 19px; } .brand-mark { width: 28px; height: 28px; } }
@media (max-width: 400px) { .brand { font-size: 17px; gap: 8px; } .brand-mark { width: 25px; height: 25px; } .country-btn .cb-label { display: none; } .header-inner { gap: 6px; } }

/* ---------- drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(23, 35, 44, .45); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: 100%; display: flex; flex-direction: column; background: #fff; transform: translateX(100%); visibility: hidden; transition: transform .25s ease-out, visibility 0s linear .25s; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .25s ease-out; }
@media (min-width: 640px) { .drawer { width: 380px; border-left: 1px solid var(--line); } }
.drawer-head { flex: none; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); border-bottom: 1px solid var(--line); }
.drawer-head strong { font-size: 19px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 4px var(--gutter) 28px; }
.drawer details { border-bottom: 1px solid var(--line); }
.drawer summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 52px; color: var(--ink); font-weight: 650; cursor: pointer; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform .15s ease-out; }
.drawer details[open] summary::after { transform: rotate(-135deg); }
.drawer details div { padding-bottom: 10px; }
.drawer details a { display: flex; align-items: center; min-height: 42px; padding-left: 12px; border-radius: 6px; color: var(--text); text-decoration: none; }
.drawer details a:hover { background: var(--green-50); color: var(--green); }
.drawer-cta { display: flex; margin-top: 20px; }
.drawer-trust { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 18px; font-size: 14.5px; }
.drawer-trust a { display: inline-flex; align-items: center; min-height: 34px; color: var(--muted); }
body.drawer-open { overflow: hidden; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 2px solid var(--green); border-radius: 6px; background: var(--green); color: #fff; font-size: 15.5px; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .12s ease-out; }
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn:disabled { opacity: .7; cursor: wait; }
.btn-quiet { background: #fff; color: var(--green); }
.btn-quiet:hover { background: var(--green); border-color: var(--green); color: #fff; }
.btn-block { width: 100%; }

/* ---------- homepage hero ---------- */
.hero { border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px 48px; align-items: center; padding-top: 40px; padding-bottom: 26px; }
.checked { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 4px 12px; background: var(--green-50); border-radius: 999px; font-size: 14px; color: var(--green-dark); }
.checked time { font-weight: 650; }
.hero h1 { margin: 0 0 14px; font-size: clamp(32px, 4.2vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -.015em; }
.hero-intro { max-width: 66ch; margin: 0; font-size: 18px; }
.hero-side { padding: 20px 22px; background: var(--soft); border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); font-size: 15px; }
.hero-count { margin: 0 0 10px; }
.hero-count strong { display: block; color: var(--green); font-size: 34px; line-height: 1.1; font-weight: 800; font-stretch: 90%; }
.hero-note { margin: 0; color: var(--muted); }
@media (max-width: 899px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 26px; }
  .hero-count strong { display: inline; font-size: inherit; line-height: inherit; }
  .hero-side { padding: 14px 16px; }
  .hero-intro { font-size: 17px; }
}
.sheet-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 26px; }
.sheet-tabs a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 14px; background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .12s ease-out, background .12s ease-out; }
.sheet-tabs a:hover { border-color: var(--green); background: var(--green-50); color: var(--green-dark); }
.sheet-tabs .n { min-width: 24px; padding: 1px 6px; background: var(--green); color: #fff; border-radius: 999px; font-size: 13px; font-weight: 700; text-align: center; }
@media (max-width: 639px) { .sheet-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); } .sheet-tabs::-webkit-scrollbar { display: none; } .sheet-tabs a { flex: none; } }

/* ---------- country filter ---------- */
.filter-bar { position: sticky; top: var(--header-h); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.filter-inner { min-height: var(--filter-h); display: flex; align-items: center; gap: 14px; padding-top: 8px; padding-bottom: 8px; }
.filter-label { font-size: 15px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.chips { display: flex; min-width: 0; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line-strong); border-radius: 6px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 36px; padding: 0 14px; border: 0; border-left: 1px solid var(--line-strong); background: #fff; color: var(--text); font-size: 14.5px; font-weight: 550; cursor: pointer; }
.chip:first-child { border-left: 0; }
.chip:hover { background: var(--green-50); color: var(--green-dark); }
.chip.is-active { background: var(--green); color: #fff; font-weight: 650; }
.filter-status { margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) { .filter-label, .filter-status { display: none; } }

/* ---------- two-column layout: sidebar on the left ---------- */
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 44px; padding-top: 34px; padding-bottom: 72px; }
@media (max-width: 1099px) { .layout { grid-template-columns: 1fr; gap: 20px; padding-top: 22px; padding-bottom: 48px; } }
.toc { position: relative; min-width: 0; }
.toc-box { position: sticky; top: calc(var(--header-h) + var(--filter-h) + 18px); max-height: calc(100vh - var(--header-h) - var(--filter-h) - 36px); overflow: auto; padding: 16px 16px 12px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.toc-box summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 2px solid var(--green); color: var(--ink); font-size: 16px; font-weight: 700; cursor: pointer; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-135deg); }
.toc-box:not([open]) summary { padding-bottom: 0; border-bottom: 0; }
.toc-box:not([open]) summary::after { transform: rotate(45deg); }
.toc ol { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14.5px; line-height: 1.4; counter-reset: toc; }
.toc li { margin: 0; }
.toc a { display: block; padding: 7px 8px 7px 12px; border-left: 3px solid transparent; border-radius: 0 4px 4px 0; color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--green); background: #fff; }
.toc a.is-current { border-left-color: var(--green); background: #fff; color: var(--green-dark); font-weight: 650; }
@media (max-width: 1099px) { .toc-box { position: static; max-height: none; } }

/* ---------- headings and text in the main column ---------- */
.content { min-width: 0; }
.content-section { margin: 0 0 44px; }
.content h2, .prose h2, .related h2, .guide-group h2 { position: relative; margin: 0 0 18px; padding-bottom: 12px; font-size: 30px; line-height: 1.18; font-weight: 780; letter-spacing: -.01em; }
.content h2::after, .prose h2::after, .related h2::after, .guide-group h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; background: var(--green); border-radius: 2px; }
.content h3, .prose h3 { margin: 28px 0 8px; padding-left: 12px; border-left: 4px solid var(--green-100); font-size: 21px; line-height: 1.3; font-weight: 720; }
.content p { margin: 0 0 14px; max-width: 75ch; }
.content p.lead { color: var(--muted); }
.content ul, .content ol { max-width: 75ch; margin: 0 0 16px; padding-left: 22px; }
.content li { margin: 6px 0; }
.content ul > li::marker, .prose ul > li::marker { color: var(--green); }
.content ol > li::marker, .prose ol > li::marker { color: var(--green); font-weight: 700; }
.table-wrap + p { margin-top: 12px; font-size: 15px; color: var(--muted); }
.section-cta { margin: 18px 0 0; }
@media (max-width: 639px) { .content h2, .prose h2, .related h2, .guide-group h2 { font-size: 25px; } .content-section { margin-bottom: 36px; } }

/* ---------- tables: green header row ---------- */
.table-wrap { overflow-x: auto; margin: 8px 0 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.data-table th { padding: 13px 14px; background: var(--green); color: #fff; font-size: 15px; font-weight: 650; text-align: left; white-space: nowrap; }
.data-table td { padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:nth-child(even) td { background: #F8FBF9; }
.data-table tbody tr:hover td { background: var(--green-50); }
.data-table td:first-child { color: var(--ink); font-weight: 600; }
.coupon-table td[data-label="Code"] { width: 1%; white-space: nowrap; }
.coupon-table td[data-label="Offer"] { min-width: 180px; color: var(--ink); font-weight: 600; }
.coupon-table td[data-label="Ends"] { min-width: 100px; }
.coupon-table td[data-label="Country"] { min-width: 90px; }
.elig { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--muted); }

/* coupon code: dashed green box with a copy button */
.code { display: inline-flex; align-items: stretch; overflow: hidden; border: 2px dashed var(--green); border-radius: 6px; background: var(--green-50); white-space: nowrap; }
.code code { display: flex; align-items: center; padding: 7px 10px; color: var(--ink); font-family: var(--mono); font-size: 14.5px; font-weight: 500; letter-spacing: .03em; }
.copy { min-height: 36px; padding: 0 12px; border: 0; background: var(--green); color: #fff; font-size: 13.5px; font-weight: 650; cursor: pointer; }
.copy:hover { background: var(--green-dark); }
.copy.is-copied { background: var(--green-dark); }
.code-alt { margin-top: 6px; }
.code-alt code { font-size: 13px; padding: 5px 8px; }
.code-alt .copy { min-height: 30px; font-size: 12.5px; }
.code-note { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.no-code { display: block; max-width: 260px; font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: normal; }
tr.is-hidden { display: none; }
.filter-empty { margin: 6px 0 10px; padding: 10px 14px; background: var(--soft); border: 1px dashed var(--line-strong); border-radius: 6px; font-size: 15px; color: var(--muted); }

@media (max-width: 860px) {
  .table-wrap { overflow: visible; border: 0; }
  .data-table thead { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr { margin-bottom: 14px; overflow: hidden; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); }
  .data-table tr.is-hidden { display: none; }
  .data-table tbody tr:nth-child(even) td, .data-table tbody tr:hover td { background: #fff; }
  .data-table td { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); white-space: normal !important; }
  .data-table td:first-child { border-top: 0; }
  .data-table td::before { content: attr(data-label); padding-top: 2px; color: var(--green-dark); font-size: 13.5px; font-weight: 650; }
  .coupon-table td[data-label] { width: 100%; min-width: 0; }
  .cell-box, .data-table td > * { min-width: 0; }
  .code { white-space: normal; max-width: 100%; }
  .code code { word-break: break-all; }
  .no-code { max-width: none; }
}

/* ---------- FAQ ---------- */
.faq-item { margin: 0 0 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .12s ease-out; }
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] { border-color: var(--green); box-shadow: 0 4px 14px rgba(11, 122, 75, .08); }
.faq-item summary { position: relative; list-style: none; min-height: 56px; padding: 15px 60px 15px 18px; color: var(--ink); font-weight: 650; cursor: pointer; border-radius: var(--radius); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { background: var(--green-50); border-radius: var(--radius) var(--radius) 0 0; color: var(--green-dark); }
.faq-item summary::before { content: ""; position: absolute; right: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; background: var(--green); border-radius: 50%; }
.faq-item summary::after { content: ""; position: absolute; right: 23px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(#fff, #fff) center / 14px 2px no-repeat, linear-gradient(#fff, #fff) center / 2px 14px no-repeat; transition: transform .15s ease-out; }
.faq-item[open] summary::after { background: linear-gradient(#fff, #fff) center / 14px 2px no-repeat; }
.faq-a { padding: 14px 18px 6px; }
.faq-a p { margin: 0 0 12px; }

/* ---------- page heads ---------- */
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); }
.page-head .container { padding-top: 26px; padding-bottom: 26px; }
.page-head h1 { max-width: 24em; margin: 0 0 12px; font-size: clamp(30px, 3.8vw, 42px); line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; font-size: 14.5px; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--green); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.updated { display: flex; flex-wrap: wrap; gap: 6px 0; margin: 0; font-size: 15px; color: var(--muted); }
.updated span + span { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line-strong); }
.updated a { font-weight: 650; text-decoration: none; }

/* ---------- long text ---------- */
.prose { max-width: 760px; font-size: 17.5px; line-height: 1.7; }
.prose h2 { margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin: 7px 0; }
.prose em { color: var(--muted); }
.signoff { margin-top: 26px; color: var(--ink); font-size: 20px; font-style: italic; }
.placeholder { padding: 1px 6px; background: #FEF0C7; color: #93370D; font-weight: 600; border-radius: 4px; }
@media (max-width: 639px) { .prose { font-size: 17px; } }

.help-card { max-width: 760px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 40px; padding: 20px 22px; background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius); }
.help-card[hidden] { display: none; }
.help-card p { margin: 0; max-width: 460px; font-size: 16px; }

/* trust pages: list of site pages in the left sidebar */
.trust-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 44px; padding-top: 34px; padding-bottom: 72px; }
.trust-main, .trust-nav { min-width: 0; }
.trust-nav > div, .trust-nav { align-self: start; }
.trust-nav { position: sticky; top: calc(var(--header-h) + 18px); padding: 16px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.trust-nav-title { margin: 0 0 8px; padding-bottom: 10px; border-bottom: 2px solid var(--green); color: var(--ink); font-size: 16px; font-weight: 700; }
.trust-nav ul { list-style: none; margin: 0; padding: 0; }
.trust-nav a { display: block; padding: 7px 10px; border-left: 3px solid transparent; border-radius: 0 4px 4px 0; color: var(--text); font-size: 15px; text-decoration: none; }
.trust-nav a:hover { color: var(--green); background: #fff; }
.trust-nav a[aria-current="page"] { border-left-color: var(--green); background: #fff; color: var(--green-dark); font-weight: 650; }
@media (max-width: 959px) {
  .trust-layout { grid-template-columns: 1fr; gap: 20px; padding-top: 18px; padding-bottom: 48px; }
  .trust-nav { position: static; padding: 0; background: none; border: 0; }
  .trust-nav-title { display: none; }
  .trust-nav ul { display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
  .trust-nav ul::-webkit-scrollbar { display: none; }
  .trust-nav a { margin-bottom: -1px; padding: 8px 12px; border-left: 0; border-bottom: 3px solid transparent; border-radius: 0; white-space: nowrap; }
  .trust-nav a[aria-current="page"] { border-bottom-color: var(--green); background: none; }
}

/* ---------- contact form ---------- */
.contact-form { margin: 26px 0 30px; padding: 24px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); box-shadow: 0 6px 20px rgba(23, 35, 44, .05); font-size: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 559px) { .field-row { grid-template-columns: 1fr; } .contact-form { padding: 18px 16px; } }
.field label { color: var(--ink); font-size: 15px; font-weight: 650; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; background: #fff; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--ink); font-size: 16px; }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(11, 122, 75, .2); outline-offset: 0; border-color: var(--green); }
.field [aria-invalid="true"] { border-color: var(--alert); }
#cf-code { font-family: var(--mono); letter-spacing: .03em; }
.hint { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.form-actions .hint { flex: 1 1 240px; }
.form-error { margin: 0 0 14px; color: var(--alert); font-size: 15px; font-weight: 600; }
.form-done { margin: 16px 0 0; padding: 12px 14px; background: var(--green-50); border: 1px solid var(--green-100); border-radius: 6px; color: var(--green-dark); font-size: 15.5px; font-weight: 600; }

/* ---------- guides and posts ---------- */
.page-guide { --filter-h: 0px; }
.guide-layout { padding-top: 34px; }
.guide-main { min-width: 0; max-width: 800px; }
.guide-body { max-width: none; }
.guide-body h2 { scroll-margin-top: calc(var(--header-h) + 16px); }
.guide-body h3 { scroll-margin-top: calc(var(--header-h) + 16px); }
.guide-body .table-wrap { margin: 8px 0 22px; }
.answer-box { margin: 0 0 28px; padding: 18px 20px; background: var(--green-50); border: 1px solid var(--green-100); border-left: 5px solid var(--green); border-radius: var(--radius); color: var(--ink); font-size: 17px; }
.note-box { margin: 0 0 24px; padding: 14px 18px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); font-size: 16px; }
.answer-box p:last-child, .note-box p:last-child { margin-bottom: 0; }
.infographic { margin: 14px 0 28px; }
.infographic img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.infographic figcaption { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 1099px) { .guide-main { max-width: none; } }

/* post cards (latest posts, related posts, all guides) */
.related { margin-top: 48px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 0 0 8px; }
.post-card { display: flex; flex-direction: column; padding: 18px 18px 16px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); transition: box-shadow .15s ease-out; }
.post-card:hover { box-shadow: 0 10px 26px rgba(23, 35, 44, .09); }
.post-kind { margin: 0 0 6px !important; color: var(--green); font-size: 13.5px; font-weight: 650; }
.post-card h3 { margin: 0 0 8px; padding: 0; border: 0; font-size: 18.5px; line-height: 1.3; font-weight: 720; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--green); text-decoration: underline; }
.post-card p { flex: 1; margin: 0 0 12px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.read-more { align-self: flex-start; font-size: 15px; font-weight: 650; }
.guide-list { columns: 2 280px; column-gap: 32px; }
.guide-list li { break-inside: avoid; margin: 0 0 9px; }
.more-link { margin: 16px 0 0; font-weight: 650; }
.blog-index { padding-top: 34px; padding-bottom: 64px; }
.blog-intro { max-width: 70ch; margin: 0 0 34px; font-size: 18px; }
.guide-group { margin-bottom: 44px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 24px; background: #0F2A1F; color: #C5D3CB; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 30px; }
.footer-brand .brand { margin-bottom: 12px; color: #fff; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand p { max-width: 300px; margin: 0; }
.fcol h2 { margin: 0 0 12px; color: #fff; font-size: 17px; font-weight: 700; }
.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol li { margin: 0 0 8px; }
.fcol a { color: #C5D3CB; text-decoration: none; }
.fcol a:hover { color: #7FE0AE; text-decoration: underline; }
.fcol details summary { list-style: none; }
.fcol details summary::-webkit-details-marker { display: none; }
.footer-legal { padding-bottom: 30px; font-size: 13.5px; color: #9FB3A8; }
.footer-legal-inner { padding-top: 20px; border-top: 1px solid #24463A; }
.footer-legal p { max-width: 900px; margin: 0 0 8px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-legal a { color: #C5D3CB; }
@media (min-width: 640px) { .fcol details > summary { pointer-events: none; } }
@media (max-width: 1023px) and (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr; gap: 0; padding-top: 30px; padding-bottom: 14px; }
  .footer-brand { padding-bottom: 18px; }
  .fcol { border-top: 1px solid #24463A; }
  .fcol details > summary { display: flex; align-items: center; justify-content: space-between; min-height: 50px; cursor: pointer; }
  .fcol details > summary h2 { margin: 0; }
  .fcol details > summary::after { content: ""; width: 8px; height: 8px; margin-right: 4px; border-right: 2px solid #7FE0AE; border-bottom: 2px solid #7FE0AE; transform: rotate(45deg); }
  .fcol details[open] > summary::after { transform: rotate(-135deg); }
  .fcol ul { padding-bottom: 10px; }
  .fcol li { margin: 0; }
  .fcol li a { display: flex; align-items: center; min-height: 40px; }
}

/* ---------- small pieces ---------- */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(11, 122, 75, .3); cursor: pointer; }
.to-top:hover { background: var(--green-dark); }
.to-top[hidden] { display: none; }
.to-top svg { width: 20px; height: 20px; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 120; max-width: calc(100vw - 32px); transform: translateX(-50%); padding: 11px 18px; background: var(--ink); color: #fff; border-radius: 999px; font-size: 15px; font-weight: 600; text-align: center; box-shadow: 0 8px 24px rgba(23, 35, 44, .2); }
.toast[hidden] { display: none; }
.notfound { min-height: 55vh; display: grid; place-items: center; padding: 48px 16px; text-align: center; }
.notfound h1 { margin: 0 0 8px; font-size: 44px; font-weight: 800; }
.notfound p { color: var(--muted); }
.post-card .post-kind { flex: none; }

.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 110; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(23, 35, 44, .16); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text); }
.cookie-bar p a { color: var(--green); font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie-actions .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }
.link-btn { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@media (max-width: 640px) {
  .cookie-bar { flex-direction: column; align-items: stretch; gap: 12px; left: 10px; right: 10px; bottom: 10px; }
  .cookie-actions .btn { flex: 1; }
}
.footer-legal .link-btn { color: #C5D3CB; }

.page-head-center .container { text-align: center; }
.page-head-center .breadcrumb ol, .page-head-center .updated { justify-content: center; }
.page-head-center h1 { margin-left: auto; margin-right: auto; }
@media (max-width: 520px) {
  .page-head-center .updated { gap: 4px 16px; }
  .page-head-center .updated span + span { margin-left: 0; padding-left: 0; border-left: 0; }
}
