/* Goji Cloud public sites — base stylesheet shared by themes. Brand colours arrive as
   --brand / --accent custom properties from tenant settings (validated hex only). */
:root {
    --bg: #ffffff; --surface: #f6f7f9; --text: #1b2230; --muted: #5f6b7a; --border: #e3e7ec;
    --radius: 12px; --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root { --bg: #0f141b; --surface: #161d27; --text: #e7eaf0; --muted: #9aa5b4; --border: #263040; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: var(--brand); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.section { padding-top: 40px; padding-bottom: 40px; }
.site-header { border-bottom: 1px solid var(--border); padding: 14px 0; position: sticky; top: 0; background: var(--bg); z-index: 10; }
.site-name { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a.active, .site-nav a:hover { color: var(--brand); }
.site-main { min-height: 60vh; }
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; margin-top: 48px; font-size: .92rem; }
.site-footer p { margin: 4px 0; }
.hero { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); color: #fff; padding: 64px 0; }
.hero h1 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.hero .lead { margin: 0; opacity: .9; font-size: 1.1rem; }
h1, h2, h3 { line-height: 1.25; }
.grid-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 16px; display: grid; gap: 6px; }
.card h3 { margin: 0; font-size: 1.05rem; }
.card a { text-decoration: none; color: inherit; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.badge.accent { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.price { font-weight: 700; }
.price del { color: var(--muted); font-weight: 400; margin-right: 6px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 10px; background: var(--brand); color: #fff; text-decoration: none; border: 0; font: inherit; cursor: pointer; }
.btn.secondary { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 0; list-style: none; }
.facts li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.facts span { display: block; font-size: .8rem; color: var(--muted); }
.itinerary { list-style: none; padding: 0; display: grid; gap: 14px; }
.itinerary li { border-left: 3px solid var(--brand); padding: 4px 0 4px 16px; }
.itinerary .day { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.table { width: 100%; border-collapse: collapse; }
table.table th, table.table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
form.form { display: grid; gap: 14px; max-width: 640px; }
form.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
form.form input, form.form select, form.form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); }
form.form textarea { min-height: 120px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.alert.ok { border-color: #16a34a; }
.alert.error { border-color: #dc2626; }
.layout-2 { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 900px) { .layout-2 { grid-template-columns: 1fr; } }
/* Travel catalogue (travel-base theme) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.trip-hero { position: relative; isolation: isolate; overflow: hidden; background-image: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)), linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); }
/* The hero picture is an <img> behind the text (no inline style: strict CSP), with the same dark overlay. */
.trip-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.trip-hero.has-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.45); }
.trip-hero .crumb, .trip-hero a { color: #fff; }
.trip-hero .badge { background: rgba(255,255,255,.18); color: #fff; }
.lead-text { font-size: 1.1rem; }
.prose { overflow-wrap: anywhere; }
.prose img { border-radius: 8px; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border-bottom: 1px solid var(--border); padding: 6px 8px; text-align: left; }
.highlights { padding-left: 20px; display: grid; gap: 4px; }
.itinerary h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.inclusions ul { padding-left: 20px; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery figure { margin: 0; }
.gallery img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.embed { position: relative; aspect-ratio: 16 / 9; margin: 16px 0; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 10px; }
.faq-list { display: grid; gap: 8px; }
.faq { border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 600; }
.trip-aside { position: sticky; top: 80px; align-self: start; display: grid; gap: 16px; }
.aside-card .price { font-size: 1.4rem; margin: 0; }
.trip-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 24px; }
/* Departures and prices (travel.departures / travel.pricing) */
.departure-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.departure-list li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.departure-list .date { font-weight: 600; flex: 1 1 100%; }
.badge.muted { background: var(--surface); color: var(--muted); }
.board-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 20px; }
.board-filters select { font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); }
.table.board td { vertical-align: top; }

/* Reviews (shared.reviews) */
.stars { display: inline-flex; gap: 1px; color: var(--border); font-style: normal; letter-spacing: 0; }
.stars i { font-style: normal; }
.stars i.on { color: #f5a623; }
.stars i.half { background: linear-gradient(90deg, #f5a623 50%, var(--border) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.review-summary { display: grid; gap: 16px 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin: 18px 0 24px; }
.review-score { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.review-score b { font-size: 2rem; line-height: 1; }
.review-spread, .review-dimensions { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .9rem; }
.review-spread li { display: grid; grid-template-columns: 40px 1fr 32px; gap: 8px; align-items: center; }
.review-spread .bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.review-spread .bar i { display: block; height: 100%; background: #f5a623; }
.review-dimensions li { display: flex; justify-content: space-between; gap: 12px; }
.review-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.review-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 16px; background: var(--bg); }
.review-card h3 { margin: 6px 0 0; font-size: 1.05rem; }
.review-text { margin: 10px 0; overflow-wrap: anywhere; }
.review-photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.review-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.review-form fieldset.step { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 12px; margin: 0; }
.review-form legend { font-weight: 700; padding: 0 6px; }
.review-form .row-pair { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.review-form .star-input { display: flex; flex-wrap: wrap; gap: 10px; color: #f5a623; }
.review-form .star-input label, .review-form .check-line { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.field-error { color: #dc2626; margin: -6px 0 0; font-size: .88rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Discovery (travel.discovery): search, trip finder, compare, recently viewed — begin */
.recent-trips[hidden], .search-suggest[hidden], .compare-tray[hidden] { display: none !important; }
.search-form { position: relative; display: flex; gap: 10px; flex-wrap: wrap; max-width: 720px; margin-bottom: 24px; }
.search-form input[type=search] { flex: 1 1 260px; font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); }
.search-suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.search-suggest ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 4px; }
.search-suggest .suggest-group { margin: 4px 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.search-places { padding-left: 20px; display: grid; gap: 6px; }
.finder-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.finder-form { max-width: none; }
.finder-budget { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.finder-budget legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.finder-results { margin-top: 32px; }
.finder-match { display: grid; gap: 6px; align-content: start; }
.finder-label { margin: 0; }
.finder-why { margin: 0; padding-left: 18px; font-size: .9rem; }
.finder-more { margin-top: 20px; }
.finder-more summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }
.finder-handoff { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.finder-email { margin-top: 32px; }
.finder-summary { display: grid; gap: 8px 24px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin: 0 0 24px; }
.finder-summary dt { font-size: .8rem; color: var(--muted); }
.finder-summary dd { margin: 0; font-weight: 600; }
.finder-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.finder-cta h2 { margin: 0 0 4px; }
.card-actions { margin: 0; }
.card-action { font-size: .88rem; color: var(--brand) !important; text-decoration: underline !important; }
.card-action.is-selected { font-weight: 700; }
.compare-tray { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.15); max-width: calc(100% - 32px); }
.compare-tray .btn { padding: 6px 14px; }
.compare-note { font-size: .85rem; color: var(--muted); }
.compare-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.compare-scroll { overflow-x: auto; }
.compare-table { min-width: 560px; }
.compare-table thead th { vertical-align: bottom; }
.compare-table thead img { display: block; width: 100%; max-width: 220px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 6px; }
.compare-table tbody th[scope=row] { width: 18%; color: var(--muted); font-weight: 600; }
.compare-table td { vertical-align: top; }
.compare-table td ul { margin: 0; padding-left: 18px; }
.compare-heading th { background: var(--surface); text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; }
.compare-table.diff-only tr[data-differ="0"], .compare-table.diff-only tbody.all-same { display: none; }
.compare-picker { margin-top: 32px; }
.recent-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.recent-card { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); text-decoration: none; }
.recent-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.check-line { display: flex; gap: 8px; align-items: center; font-weight: 400; }
/* Discovery (travel.discovery) — end */

/* Lead forms (shared.forms, travel.enquiries, travel.planner) */
form.form fieldset.step { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; margin: 0; }
form.form legend { font-weight: 700; padding: 0 6px; }
form.form .row-pair { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
form.form .check-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 400; }
form.form .check-grid { display: grid; gap: 6px 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.enquire-links { display: grid; gap: 8px; }
.enquire-links .btn { text-align: center; }

/* travel.bookings / travel.customer_portal — booking form and My Trips */
.portal .card { margin: 0 0 16px; }
.portal form.form { max-width: 520px; }
.timeline { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.timeline li { color: #6b7280; }
.timeline li[data-step="done"] { color: inherit; }
.timeline li[data-step="now"] { color: var(--brand); font-weight: 600; }
.timeline li[data-step="end"] { color: #9ca3af; text-decoration: line-through; }

/* travel.preparation — checklist, readiness meter, uploads, packing list on My Trips */
.prep-meter { height: 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); overflow: hidden; margin: 8px 0 12px; }
.prep-meter span { display: block; height: 100%; background: var(--brand); }
.prep-list { list-style: none; padding: 0; margin: 0 0 12px; }
.prep-list > li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.prep-list > li.prep-action { border-left: 3px solid #dc2626; padding-left: 10px; }
.prep-overdue { color: #dc2626; font-weight: 600; }
.prep-tick { background: none; border: 0; padding: 0 6px 0 0; font: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; color: inherit; }
.prep-doc { margin: 6px 0; }
.prep-doc form.inline, .prep form.inline { display: inline; }
.prep-upload { margin-top: 8px; }
@media print { .site-header, .site-footer, .noprint { display: none !important; } .prep-packing .card { break-inside: avoid; border: 0; } }
/* Printable itinerary (travel.trip.print). */
.itinerary-print .day { break-inside: avoid; }
@media print { .itinerary-print { max-width: none; padding: 0; } .itinerary-print a[href]::after { content: ""; } }
/* A button that looks like a link (packing list "Print", shown by js/site.js). */
.link-button { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
.caption-start { text-align: start; }
/* Data bars (review spread, preparation meter): widths in 5 % steps instead of inline styles (strict CSP). */
.g-w-0 { width: 0%; } .g-w-5 { width: 5%; } .g-w-10 { width: 10%; } .g-w-15 { width: 15%; } .g-w-20 { width: 20%; }
.g-w-25 { width: 25%; } .g-w-30 { width: 30%; } .g-w-35 { width: 35%; } .g-w-40 { width: 40%; } .g-w-45 { width: 45%; }
.g-w-50 { width: 50%; } .g-w-55 { width: 55%; } .g-w-60 { width: 60%; } .g-w-65 { width: 65%; } .g-w-70 { width: 70%; }
.g-w-75 { width: 75%; } .g-w-80 { width: 80%; } .g-w-85 { width: 85%; } .g-w-90 { width: 90%; } .g-w-95 { width: 95%; }
.g-w-100 { width: 100%; }

/* Theme engine chrome (docs/themes/THEME_ENGINE.md): header layouts, menus, footer columns, home blocks.
   Colours and fonts arrive as --g-* / --brand / --accent / --secondary from /_theme/tokens-<hash>.css. */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--bg); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
.top-bar { background: var(--secondary, #0f172a); color: #fff; font-size: .85rem; padding: 6px 0; }
.top-bar a { color: #fff; text-decoration: none; margin-right: 14px; }
.top-bar .social-links { margin: 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.site-brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); }
.site-logo { max-height: 48px; width: auto; }
.site-logo-inverse { display: none; }
.site-nav .menu, .footer-column .menu, .legal-links .menu, .social-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav .menu > li { position: relative; }
.site-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 200px; list-style: none; margin: 0; padding: 8px 0; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; z-index: 20; }
.site-nav .sub-menu a { display: block; padding: 6px 14px; }
.site-nav .has-children:hover > .sub-menu, .site-nav .has-children:focus-within > .sub-menu { display: block; }
.header-cta { padding: 8px 16px; }
.header-centered .header-inner { flex-direction: column; justify-content: center; }
.is-home .header-transparent { position: absolute; left: 0; right: 0; background: transparent; border-bottom: 0; }
.is-home .header-transparent .site-name, .is-home .header-transparent .site-nav .menu > li > a { color: #fff; }
.is-home .header-transparent .site-logo-inverse { display: block; }
.is-home .header-transparent .site-logo-inverse ~ .site-logo, .is-home .header-transparent .site-logo:has(+ .site-logo-inverse) { display: none; }
.is-home .header-transparent ~ .site-main .hero-block:first-child, .is-home .header-transparent ~ .site-main .home-section:first-child .hero-block { padding-top: 120px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-column h2 { font-size: 1rem; margin: 0 0 8px; }
.footer-column .menu { flex-direction: column; gap: 6px; }
.footer-bottom { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); }
.social-links { gap: 12px; margin: 8px 0; }
.floating-contact { position: fixed; right: 18px; bottom: 18px; z-index: 50; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; box-shadow: 0 6px 20px rgb(0 0 0 / .2); }
.floating-whatsapp { background: #128c7e; }
.hero-block { position: relative; overflow: hidden; }
.hero-block .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero-block .hero-content { position: relative; }
.hero-cta { background: #fff; color: var(--brand); margin-top: 16px; }
.text-block p { max-width: 70ch; }
.cta-band { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); padding: 32px 0; }
.cta-band h2 { margin: 0 0 6px; }
@media (max-width: 700px) { .site-nav .sub-menu { position: static; display: block; border: 0; padding-left: 12px; } }

/* Rich-text media nodes rendered by Goji\Core\Media\RichContent (docs/editor/EDITOR_ARCHITECTURE.md). */
figure.goji-media, figure.goji-gallery { margin: 1.5em 0; }
figure.goji-media img { display: block; border-radius: 8px; }
figure.goji-media.is-video video { display: block; width: 100%; height: auto; max-height: 80vh; border-radius: 8px; background: #000; }
figure.goji-media figcaption, figure.goji-gallery figcaption { margin-top: .5em; font-size: .9em; color: var(--muted); }
.goji-gallery__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.goji-gallery__list img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
iframe[src^="https://www.youtube-nocookie.com/"], iframe[src^="https://player.vimeo.com/"] { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; margin: 1.5em 0; }
iframe[src^="https://www.google.com/maps/embed"] { display: block; width: 100%; height: 360px; border: 0; margin: 1.5em 0; }
/* Phase 6B-D embeds (EmbedProviders): wide players, tall short-video players, social posts, audio. */
iframe[src^="https://www.dailymotion.com/embed/"], iframe[src^="https://www.facebook.com/plugins/video.php"] { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; margin: 1.5em 0; }
iframe[src^="https://www.tiktok.com/player/"] { display: block; width: min(100%, 340px); height: auto; aspect-ratio: 9 / 16; border: 0; margin: 1.5em auto; }
iframe[src^="https://www.instagram.com/"], iframe[src^="https://platform.twitter.com/embed/"], iframe[src^="https://www.facebook.com/plugins/post.php"] { display: block; width: min(100%, 540px); height: 620px; border: 0; margin: 1.5em auto; }
iframe[src^="https://open.spotify.com/embed/"] { display: block; width: 100%; height: 352px; border: 0; border-radius: 12px; margin: 1.5em 0; }
iframe[src^="https://open.spotify.com/embed/track/"], iframe[src^="https://open.spotify.com/embed/episode/"] { height: 152px; }
/* Stage 2 editor tools (HtmlSanitizer allow-lists): text alignment, table styles, picture position / width and photo
   credit (RichContent classes), an embed with a caption (<figure><iframe><figcaption>). */
.has-text-align-left { text-align: left; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.has-text-align-justify { text-align: justify; }
table.is-striped tbody tr:nth-child(even) { background: var(--surface); }
table.is-bordered th, table.is-bordered td { border: 1px solid var(--border); }
table.is-plain th, table.is-plain td { border: 0; }
figure.goji-media.is-size-s { width: 33%; }
figure.goji-media.is-size-m { width: 50%; }
figure.goji-media.is-size-l { width: 75%; }
figure.goji-media.is-size-full { width: 100%; }
figure.goji-media[class*="is-size-"] img { width: 100%; height: auto; }
figure.goji-media.is-align-center { margin-left: auto; margin-right: auto; }
figure.goji-media.is-align-left { float: left; margin: .3em 1.5em 1em 0; }
figure.goji-media.is-align-right { float: right; margin: .3em 0 1em 1.5em; }
figure.goji-media.is-align-left:not([class*="is-size-"]), figure.goji-media.is-align-right:not([class*="is-size-"]) { width: 50%; }
.goji-media__credit { display: block; font-size: .85em; opacity: .85; }
figure:has(> iframe) { margin: 1.5em 0; }
figure:has(> iframe) > iframe { margin-top: 0; margin-bottom: 0; }
figure:has(> iframe) > figcaption { margin-top: .5em; font-size: .9em; color: var(--muted); text-align: center; }
/* "News link" cards (HtmlSanitizer::linkCard, RichContent): site, title and summary, the copied picture on the left. */
figure.goji-linkcard { margin: 1.75em 0; clear: both; }
/* A link card (a pasted or chosen news link): the full width of the story column — picture left, then title, summary
   and the site's name, an accent edge in the website's colour and an arrow that moves on hover (owner, 26 Nov 2026). */
.goji-linkcard__link { position: relative; display: grid; gap: 8px 24px; grid-template-columns: 1fr; align-content: center; padding: 18px 56px 18px 20px; border: 1px solid var(--border); border-left: 5px solid var(--brand, var(--muted)); border-radius: 16px; background: linear-gradient(120deg, var(--surface) 0%, var(--bg, var(--surface)) 55%); color: inherit; text-decoration: none; overflow-wrap: anywhere; box-shadow: 0 2px 10px rgba(15, 27, 45, .06); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.goji-linkcard__link:hover, .goji-linkcard__link:focus-visible { border-color: var(--brand, var(--muted)); box-shadow: 0 10px 28px rgba(15, 27, 45, .13); transform: translateY(-2px); text-decoration: none; }
/* The arrow at the right edge. */
.goji-linkcard__link::after { content: ""; position: absolute; right: 24px; top: 50%; width: 11px; height: 11px; margin-top: -6px; border-top: 3px solid var(--brand, var(--muted)); border-right: 3px solid var(--brand, var(--muted)); border-radius: 2px; transform: rotate(45deg); opacity: .55; transition: right .2s ease, opacity .2s ease; }
.goji-linkcard__link:hover::after, .goji-linkcard__link:focus-visible::after { right: 18px; opacity: 1; }
.goji-linkcard.has-image .goji-linkcard__link { grid-template-columns: minmax(180px, 36%) minmax(0, 1fr); align-items: center; }
.goji-linkcard__media { grid-row: 1 / span 3; align-self: stretch; overflow: hidden; border-radius: 12px; }
.goji-linkcard__media img { display: block; width: 100%; height: 100%; min-height: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin: 0; transition: transform .35s ease; }
/* Inside a theme's story the card keeps its own look (26 Nov 2026): themes justify story text, make story links bold
   and coloured, underline them on hover and give story pictures margins — none of that belongs in the card. The
   selectors are heavier than a theme's ".story a" / ".story img" on purpose. */
figure.goji-linkcard .goji-linkcard__link { text-align: start; hyphens: manual; font-weight: 400; line-height: 1.5; color: inherit; text-decoration: none; word-spacing: normal; letter-spacing: normal; }
figure.goji-linkcard .goji-linkcard__link:hover, figure.goji-linkcard .goji-linkcard__link:focus-visible { text-decoration: none; }
figure.goji-linkcard .goji-linkcard__media img { margin: 0; border: 0; border-radius: 12px; max-width: none; }
figure.goji-linkcard .goji-linkcard__desc { font-weight: 400; }
.goji-linkcard__link:hover .goji-linkcard__media img { transform: scale(1.04); }
.goji-linkcard__title { order: 1; font-weight: 700; font-size: 1.18em; line-height: 1.35; color: var(--brand, inherit); }
.goji-linkcard__link:hover .goji-linkcard__title { text-decoration: underline; text-underline-offset: 3px; }
.goji-linkcard__desc { order: 2; font-size: .95em; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.goji-linkcard__site { order: 3; margin-top: 4px; font-size: .8em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.goji-linkcard__site::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 1px; border-radius: 50%; background: var(--brand, currentColor); }
@media (max-width: 600px) {
    .goji-linkcard__link { padding: 14px; gap: 6px 0; }
    .goji-linkcard__link::after { display: none; }
    .goji-linkcard__media img { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
    .goji-linkcard__title { font-size: 1.08em; }
}
@media (prefers-reduced-motion: reduce) { .goji-linkcard__link, .goji-linkcard__link::after, .goji-linkcard__media img { transition: none; } .goji-linkcard__link:hover { transform: none; } }
@media (max-width: 600px) {
    figure.goji-media.is-align-left, figure.goji-media.is-align-right { float: none; margin: 1.5em auto; }
    figure.goji-media[class*="is-size-"], figure.goji-media.is-align-left, figure.goji-media.is-align-right { width: 100%; }
    .goji-linkcard.has-image .goji-linkcard__link { grid-template-columns: 1fr; }
    .goji-linkcard__media { grid-row: auto; }
}
/* Corporate catalogue (corporate-base theme): offering cards, specifications, brand logos */
.offering-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.offering-card .badge { justify-self: start; }
.spec-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; }
.spec-table th, .spec-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { width: 40%; font-weight: 600; color: var(--muted); }
.brand-logos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); align-items: center; list-style: none; padding: 0; }
.brand-logos li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; text-align: center; }
.brand-logos img { max-height: 64px; width: auto; margin: 0 auto; object-fit: contain; }
.catalog-categories { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }

/* A gallery with a chosen number of columns, and a linked picture (story editor, 22 Nov 2026). */
.goji-gallery--cols-2 .goji-gallery__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.goji-gallery--cols-3 .goji-gallery__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.goji-gallery--cols-4 .goji-gallery__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .goji-gallery--cols-3 .goji-gallery__list, .goji-gallery--cols-4 .goji-gallery__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
figure.goji-media > a { display: block; }

/* The team a website chose (Website settings → General → Team strip; TeamStrip). Shared by every news design:
   colours and fonts are the surrounding block's own (currentColor), so the strip sits in a light or a dark footer.
   .n-team-photo / .n-team-link: a photo and a link inside a design's own team line; .n-team: the card strip. */
.n-team-photo { display: inline-block; width: 32px; height: 32px; margin-right: .4em; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.n-team-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.n-team-link:hover { text-decoration-thickness: 2px; }
.n-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; margin: 0; padding: 0; list-style: none; }
.n-team__item { display: flex; flex-direction: column; align-items: center; gap: .2rem; min-width: 0; padding: .9rem .6rem; border: 1px solid color-mix(in srgb, currentColor 18%, transparent); border-radius: 12px; text-align: center; }
.n-team__photo { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: .3rem; border-radius: 50%; object-fit: cover; }
.n-team__photo--initial { background: color-mix(in srgb, currentColor 14%, transparent); font-size: 1.4rem; font-weight: 700; }
.n-team__role { font-size: .82em; opacity: .75; }
.n-team__name { font-weight: 700; color: inherit; overflow-wrap: anywhere; }
a.n-team__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
@media (max-width: 480px) { .n-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; } }
