/* public/css/site-content.css - the widgets of the website content pages (/corridors, /fleet, /borders,
   /insights, /downloads): cards, photos, carousel, articles, reference lists, downloads. The page frame
   (header band, container, section heads, cards) is the one page layer in site-page.css; the site
   header and footer are site-nav.css. Colours: yuniq-tokens.css only.
   Images come from public/images/<category>/ (Commercial Admin -> Website Content); a card
   without a photo shows a branded panel instead of a broken image. */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* Colours, radius, shadows and font: the YUNIQ tokens (/css/yuniq-tokens.css, via yuniq-brand.css). */
:root {
  --primary-blue: var(--yuniq-navy); --secondary-blue: var(--yuniq-navy-700); --light-blue: var(--yuniq-slate);
  --dark-gray: var(--yuniq-text); --muted: var(--yuniq-text-secondary); --white: var(--yuniq-white); --line: var(--yuniq-border);
  --ok: var(--yuniq-ok); --ok-bg: var(--yuniq-ok-bg); --warn: var(--yuniq-warn); --warn-bg: var(--yuniq-warn-bg); --bad: var(--yuniq-bad); --bad-bg: var(--yuniq-bad-bg);
  --shadow-sm: var(--yuniq-shadow-sm); --shadow-md: var(--yuniq-shadow-md); --radius: var(--yuniq-radius);
}
body { font-family: var(--yuniq-font); background: var(--yuniq-slate); color: var(--yuniq-text); line-height: 1.6; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 2px solid var(--yuniq-orange); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--primary-blue); color: var(--white); padding: 0.6rem 1rem; z-index: 200; }
.skip-link:focus { left: 0; }

.state { color: var(--muted); font-style: italic; padding: 1.5rem 0; }
.state.error { color: var(--bad); font-style: normal; }
.updated { color: var(--muted); font-size: 0.82rem; }

/* cards + photos */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.4rem; }
.card { background: var(--white); border-radius: var(--yuniq-radius); border: 1px solid var(--yuniq-border); box-shadow: var(--yuniq-shadow-sm); overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--yuniq-motion) var(--yuniq-ease), box-shadow var(--yuniq-motion) var(--yuniq-ease); }
@media (hover: hover) { .card:hover { transform: translateY(var(--yuniq-lift)); box-shadow: var(--yuniq-shadow-lg); } }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
.card-body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; gap: 0.45rem; }
.card h3 { color: var(--yuniq-navy); font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
.card p { color: var(--yuniq-text-secondary); font-size: var(--yuniq-text-small); }
/* Every image: same aspect ratio, 12px corners, slate-200 edge; inset inside its card. */
.photo { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--yuniq-navy), var(--yuniq-navy-700)); overflow: hidden;
  border-radius: var(--yuniq-radius-img); border: 1px solid var(--yuniq-border); }
.card > .photo, .card > a.cover > .photo { margin: 0.75rem 0.75rem 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--yuniq-on-navy-muted); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.photo .placeholder svg { width: 54px; height: 54px; stroke: var(--yuniq-orange); opacity: 0.85; margin-bottom: 0.4rem; }
.photo .placeholder div { display: flex; flex-direction: column; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
/* Pills: one look for places, specs and categories. */
.chip { display: inline-block; background: var(--yuniq-navy-50); color: var(--yuniq-navy); border: 1px solid var(--yuniq-border); border-radius: 50px; padding: 0.15rem 0.7rem; font-size: 0.78rem; font-weight: 600; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.9rem; font-size: 0.9rem; margin-top: 0.3rem; }
.spec dt { color: var(--muted); }
.spec dd { font-weight: 600; color: var(--dark-gray); }
.route { font-size: 0.9rem; color: var(--yuniq-navy); font-weight: 600; }
.facts { margin: 0.2rem 0 0 1.1rem; font-size: 0.9rem; color: var(--yuniq-text-secondary); }

/* carousel (/corridors) */
.carousel { position: relative; margin-bottom: 2.5rem; }
.carousel-track { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 0.6rem; scrollbar-width: thin; }
.carousel-track:focus-visible { outline: 2px solid var(--yuniq-orange); }
.slide { flex: 0 0 min(820px, 88%); scroll-snap-align: center; position: relative; border-radius: var(--yuniq-radius); overflow: hidden; box-shadow: var(--yuniq-shadow-md); background: var(--yuniq-navy); }
.slide .photo { aspect-ratio: 16 / 8; border: none; border-radius: 0; }
.slide-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.5rem 1.2rem; color: var(--white);
  background: linear-gradient(to top, var(--yuniq-navy), transparent); }
.slide-caption h3 { font-size: clamp(1.15rem, 2.6vw, 1.6rem); }
.slide-caption .route { color: var(--yuniq-orange-50); } /* light orange: readable on the dark caption */
.slide-caption p { color: var(--yuniq-on-navy-muted); font-size: 0.95rem; }
.carousel-btn { position: absolute; top: 40%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--yuniq-action); color: var(--yuniq-on-action); font-size: 1.4rem; box-shadow: var(--yuniq-glow); z-index: 2; }
.carousel-btn.prev { left: 0.4rem; } .carousel-btn.next { right: 0.4rem; }
.carousel-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.6rem; flex-wrap: wrap; }
.carousel-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: var(--yuniq-border-strong); cursor: pointer; padding: 0; }
.carousel-dots button[aria-current="true"] { background: var(--yuniq-orange); width: 24px; border-radius: 6px; }
@media (max-width: 640px) { .carousel-btn { display: none; } .slide { flex-basis: 92%; } .slide .photo { aspect-ratio: 4 / 3; } }

/* article (/insights) */
.article { background: var(--white); border-radius: var(--yuniq-radius); border: 1px solid var(--yuniq-border); box-shadow: var(--yuniq-shadow-sm); overflow: hidden; max-width: 860px; margin: 0 auto; }
.article .photo { aspect-ratio: 16 / 8; margin: 0.9rem 0.9rem 0; }
.article-body { padding: 1.6rem 1.8rem 2rem; }
.article-body h1 { color: var(--primary-blue); font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.25; margin: 0.4rem 0 0.8rem; }
.article-body h2 { color: var(--primary-blue); font-size: 1.25rem; margin: 1.4rem 0 0.4rem; }
.article-body p { margin-bottom: 0.9rem; color: var(--yuniq-text); }
.article-body ul { margin: 0 0 0.9rem 1.3rem; }
.back { display: inline-block; margin-bottom: 1rem; color: var(--primary-blue); font-weight: 600; text-decoration: none; }
.card a.more { color: var(--yuniq-navy); font-weight: 700; text-decoration: none; margin-top: auto; }
.card a.more:hover { color: var(--yuniq-navy); }
.card a.cover { color: inherit; text-decoration: none; }


/* ---- Reference pages (/corridors, /fleet, /borders): practical lists, not galleries ---------- */
.ref-tools { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 0 0 1rem; }
.ref-tools input[type="search"], .ref-tools select { flex: 1 1 260px; max-width: 460px; padding: 0.7rem 0.9rem; border: 1px solid var(--yuniq-border-strong); border-radius: var(--yuniq-radius-control); font: inherit; background: var(--yuniq-white); color: var(--yuniq-text); }
.ref-count { color: var(--yuniq-text-secondary); font-size: 0.9rem; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1rem; }
.ref-card { background: var(--yuniq-white); border: 1px solid var(--yuniq-border); border-radius: var(--yuniq-radius); box-shadow: var(--yuniq-shadow-sm); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.ref-card h3 { color: var(--yuniq-navy); font-size: 1.05rem; margin: 0; }
.ref-card .ref-sub { color: var(--yuniq-text-secondary); font-size: 0.88rem; }
.ref-card dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.3rem 0.8rem; margin: 0.2rem 0 0; font-size: 0.9rem; }
.ref-card dt { color: var(--yuniq-text-muted); font-weight: 600; }
.ref-card dd { margin: 0; color: var(--yuniq-text); overflow-wrap: anywhere; }
.ref-card .ref-note { background: var(--yuniq-slate); border-radius: 10px; padding: 0.5rem 0.7rem; font-size: 0.86rem; color: var(--yuniq-text); }
.ref-card ul { margin: 0.1rem 0 0 1.1rem; padding: 0; font-size: 0.88rem; }
.ref-card li { margin: 0.15rem 0; }
.ref-card .ref-docs-title { font-size: 0.82rem; font-weight: 700; color: var(--yuniq-navy); margin-top: 0.3rem; }
.ref-card .ref-docs summary { cursor: pointer; font-size: 0.88rem; font-weight: 700; color: var(--yuniq-navy); padding: 0.35rem 0; min-height: 44px; display: flex; align-items: center; gap: 0.35rem; }
.ref-grid .ref-more { grid-column: 1 / -1; justify-self: center; min-height: 44px; margin-top: 0.4rem; padding: 0.6rem 1.4rem; border: 2px solid var(--yuniq-navy); border-radius: 999px; background: var(--yuniq-white); color: var(--yuniq-navy); font: inherit; font-weight: 700; cursor: pointer; }
.ref-grid .ref-more:hover { background: var(--yuniq-navy-50); }
.ref-grid .ref-more:focus-visible { outline: 2px solid var(--yuniq-orange); outline-offset: 2px; }
.ref-card .ref-docs summary:focus-visible { outline: 2px solid var(--yuniq-orange); outline-offset: 2px; border-radius: 6px; }
.ref-head { display: flex; gap: 0.8rem; align-items: flex-start; }
.ref-thumb { flex: 0 0 76px; width: 76px; height: 56px; border-radius: 10px; overflow: hidden; border: 1px solid var(--yuniq-border); background: linear-gradient(135deg, var(--yuniq-navy), var(--yuniq-navy-700)); }
.ref-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-thumb .placeholder { height: 100%; display: flex; align-items: center; justify-content: center; }
.ref-thumb .placeholder svg { width: 26px; height: 26px; stroke: var(--yuniq-orange); }
.ref-thumb .placeholder div { display: contents; font-size: 0; }
.ref-thumb .photo { height: 100%; border-radius: 0; }
.ref-disclaimer { color: var(--yuniq-text-secondary); font-size: 0.85rem; margin-top: 1.2rem; }
.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; }

/* Curated photo beside a page intro (Website Content -> Homepage Images: fleet, border_posts,
   industry_insights; js/home-visuals.js). Empty = nothing shown. */
.slot-photo { max-width: 960px; margin: 1.25rem auto 0; padding: 0 1rem; }
.slot-photo:empty { display: none; }
.slot-photo .pillar-photo { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--yuniq-radius); box-shadow: var(--yuniq-shadow-sm); background: var(--yuniq-slate); }

/* ---- Downloads (20261083): Download PDF button, guidelines tick-box dialog, disclaimer ---------- */
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin-top: auto; padding-top: 0.3rem; }
.card-actions a.more { margin-top: 0; }
.btn-download { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--yuniq-action); color: var(--yuniq-on-action); border: none; border-radius: 10px; padding: 0.55rem 0.95rem; font: inherit; font-weight: 700; font-size: 0.92rem; cursor: pointer; box-shadow: var(--yuniq-shadow-sm); }
.btn-download:hover:not(:disabled) { filter: brightness(1.06); }
.btn-download:focus-visible { outline: 3px solid var(--yuniq-navy); outline-offset: 2px; }
.btn-download:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-download .size { font-weight: 600; font-size: 0.8rem; opacity: 0.85; }
.download-card .preview .photo { aspect-ratio: 1080 / 1350; }
.download-card .preview .photo img { width: 100%; height: 100%; object-fit: cover; }
.download-dialog { margin: auto; inset: 0; max-height: calc(100vh - 2rem); overflow: auto; border: none; border-radius: var(--yuniq-radius); box-shadow: var(--yuniq-shadow-lg); padding: 1.4rem 1.5rem; width: min(480px, calc(100vw - 2rem)); }
.download-dialog::backdrop { background: var(--yuniq-navy-90); opacity: 0.6; }
.download-dialog h2 { color: var(--yuniq-navy); font-size: 1.2rem; margin-bottom: 0.3rem; }
.download-dialog .dl-doc { color: var(--yuniq-text-secondary); margin-bottom: 0.9rem; }
.download-dialog .dl-check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; color: var(--yuniq-text); line-height: 1.45; }
.download-dialog .dl-check input { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; flex: none; accent-color: var(--yuniq-navy); }
.download-dialog .dl-actions { display: flex; gap: 0.7rem; margin-top: 1.1rem; flex-wrap: wrap; }
.download-dialog .dl-cancel { background: none; border: 1.5px solid var(--yuniq-border); border-radius: 10px; padding: 0.5rem 0.95rem; font: inherit; cursor: pointer; color: var(--yuniq-navy); }
.disclaimer-box { background: var(--yuniq-orange-50); border: 1px solid var(--yuniq-border); border-radius: var(--yuniq-radius-control); padding: 1rem 1.2rem; color: var(--yuniq-text); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.6rem; }
.download-dialog .dl-error { color: var(--yuniq-bad); font-size: 0.9rem; margin-top: 0.6rem; }
