:root {
  --blue: #1e90ff;
  --blue-dark: #145c9e;
  --blue-deep: #0b2b40;
  --gold: #d8a52b;
  --gold-soft: #f6e9c8;
  --ink: #20303b;
  --muted: #5c6b73;
  --paper: #fffefa;
  --tint: #f2f7f8;
  --line: #dce6e8;
  --radius: 18px;
  --max: 1160px;
  --shadow: 0 20px 55px rgba(12, 42, 58, .14);
  --parallax-range: 25px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }

/* A soft, rectangular feathered edge for photographs outside the ribbons.
   Two intersected edge gradients keep the centre crisp and fade only the
   outer few percent into the paper background. */
.feather-photo {
  --feather: 4.5%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 var(--feather), #000 calc(100% - var(--feather)), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 var(--feather), #000 calc(100% - var(--feather)), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 var(--feather), #000 calc(100% - var(--feather)), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 var(--feather), #000 calc(100% - var(--feather)), transparent 100%);
  mask-composite: intersect;
}

a { color: var(--blue-dark); }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold-soft); color: var(--ink); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .7rem 1rem;
  background: #fff;
  color: var(--ink);
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 254, 250, .98);
  border-bottom: 1px solid rgba(220, 230, 232, .9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.header-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: .62rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--blue-dark);
  text-decoration: none;
  flex: 0 0 auto;
  position: relative;
  z-index: 105;
}
.brand img {
  display: block;
  width: auto;
  height: 50px;
  transform-origin: 50% 50%;
  animation: logo-turn 1s cubic-bezier(.25, .7, .25, 1) 1 both;
}
.gtranslate_wrapper {
  position: relative;
  z-index: 101;
  margin-left: auto;
  margin-right: 0.5rem;
}
/* The GTranslate widget (dwf.js) injects a wrapper with inline
   position:fixed;bottom:0;left:8% — that renders the flag box at the
   bottom-left of whatever ancestor is its containing block and makes the
   language list grow upward off-screen. Pages now pass
   switcher_horizontal_position:"inline" so no fixed wrapper is created;
   the rules below are defensive overrides plus the visual styling.
   NOTE: the widget's real class names use underscores, not hyphens. */
.gtranslate_wrapper .gt_switcher_wrapper {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: 102 !important;
}
.gtranslate_wrapper .gt_switcher {
  position: relative;
  overflow: visible !important;
  width: auto !important;
}
.gtranslate_wrapper .gt_selected a {
  background: var(--tint) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  padding: 0.34rem 1.6rem 0.34rem 0.6rem !important;
  color: var(--blue-dark) !important;
  font-size: 0.82rem !important;
  line-height: 1.35 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}
.gtranslate_wrapper .gt_selected a:hover {
  background: #e7f0f2 !important;
}
.gtranslate_wrapper .gt_option {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  width: 190px !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18) !important;
  overflow: auto !important;
  z-index: 103 !important;
  /* dwf.js writes an inline height:133px (plus a 198px max-height in its
     own stylesheet), which showed only 4 of the 104 languages. A
     stylesheet declaration marked !important beats an inline style, so
     height:auto + a viewport-fitted max-height let the list use all the
     space below the header: ~27 languages (desktop) / ~25 (mobile) are
     now visible without scrolling, and the rest scroll normally.
     130px reserves room for the header plus a margin under the list;
     dvh tracks the real mobile viewport (URL bar), vh is the fallback
     for browsers without dvh support. */
  height: auto !important;
  max-height: calc(100vh - 130px) !important;
  max-height: calc(100dvh - 130px) !important;
}
.gtranslate_wrapper .gt_option a {
  padding: 0.36rem 0.7rem !important;
  font-size: 0.84rem !important;
  color: var(--ink) !important;
}
.gtranslate_wrapper .gt_option a:hover {
  background: var(--tint) !important;
}
@keyframes logo-turn {
  0% { opacity: .65; transform: rotate(-18deg) scale(.92); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotate(360deg) scale(1); }
}
.brand-name {
  font-size: 1.32rem;
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1;
}
.main-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .2rem; }
.main-nav a {
  padding: .48rem .68rem;
  border-radius: 999px;
  color: var(--ink);
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.main-nav a:hover { background: var(--tint); color: var(--blue-dark); }
.main-nav a[aria-current="page"] {
  background: var(--tint);
  color: var(--blue-dark);
  font-weight: 750;
}

/* Shared typography and layout */
.eyebrow {
  margin: 0 0 .55rem;
  color: var(--blue-dark);
  font-size: .74rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.14; letter-spacing: -.035em; }
h1 { margin: 0 0 1rem; font-size: clamp(2.5rem, 6vw, 4.6rem); }
h1 span { color: var(--gold); }
h2 { margin: 0 0 1rem; font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { margin: 0 0 .55rem; font-size: 1.22rem; }
p { margin: 0 0 1rem; }
.lead { max-width: 660px; font-size: clamp(1.08rem, 1.7vw, 1.3rem); }
.prose p { max-width: 700px; }
.prose p:last-child { margin-bottom: 0; }
.emphasis { margin-top: 1.4rem; color: var(--blue-dark); font-size: 1.1rem; font-weight: 750; }
.text-link { display: inline-block; margin-top: .35rem; font-weight: 750; text-decoration: none; }
.text-link:hover { color: var(--blue); text-decoration: underline; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 1.4rem; }
.section.tinted { background: var(--tint); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 860px; margin: 0 auto; }
.section-heading { max-width: 760px; margin: 0 auto 2.4rem; text-align: center; }
.section-heading p:last-child { color: var(--muted); }
.small-note { max-width: var(--max); margin: 1.6rem auto 0; color: var(--muted); font-size: .9rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.22rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--gold);
  color: #182a31;
  font: inherit;
  font-size: .94rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.btn:hover { background: #e6b53f; transform: translateY(-1px); }
.btn.secondary {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .48);
  color: #fff;
}
.btn.secondary:hover { background: rgba(255, 255, 255, .18); }
.btn.outline { background: transparent; border-color: var(--line); color: var(--blue-dark); }
.btn.outline:hover { border-color: var(--blue); background: #fff; }

/* Content Management Forms */
.content-management {
  margin-top: 3rem;
}
.admin-interface {
  background: var(--tint);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.admin-interface h3 {
  color: var(--blue-dark);
  margin-bottom: 1.5rem;
}
.resource-form .form-group,
.blog-form .form-group {
  margin-bottom: 1.5rem;
}
.resource-form label,
.blog-form label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 750;
  color: var(--blue-dark);
}
.resource-form input,
.resource-form select,
.resource-form textarea,
.blog-form input,
.blog-form select,
.blog-form textarea {
  width: 100%;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.resource-form input:focus,
.resource-form select:focus,
.resource-form textarea:focus,
.blog-form input:focus,
.blog-form select:focus,
.blog-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, .1);
}
.resource-form .file-upload,
.blog-form .file-upload {
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.resource-form .file-upload:hover,
.blog-form .file-upload:hover {
  border-color: var(--blue);
  background: rgba(30, 144, 255, .02);
}
.resource-form .file-upload-text,
.blog-form .file-upload-text {
  color: var(--muted);
  font-size: .9rem;
}
.resource-form .form-row,
.blog-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.resource-preview,
.blog-preview {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-top: 2rem;
}
.resource-preview h3,
.blog-preview h3 {
  color: var(--blue-dark);
  margin-bottom: 1rem;
}
.preview-container h4 {
  color: var(--blue-dark);
  margin-bottom: .5rem;
}
.preview-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: .9rem;
  color: var(--muted);
}
.preview-content {
  margin-bottom: 1rem;
}
.preview-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.blog-post {
  background: var(--tint);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 2rem;
}
.post-header {
  margin-bottom: 1.5rem;
}
.post-title {
  color: var(--blue-dark);
  margin-bottom: .5rem;
  font-size: 1.3rem;
}
.post-meta {
  display: flex;
  gap: 1.5rem;
  font-size: .85rem;
  color: var(--muted);
}
.post-category {
  color: var(--blue);
  font-weight: 750;
}
.post-author {
  color: var(--muted);
}

/* Saved entries (local content management) */
.save-note {
  margin-top: 1rem;
  padding: .7rem 1rem;
  border-radius: 10px;
  background: var(--tint);
  border: 1px solid var(--line);
  color: var(--blue-dark);
  font-size: .9rem;
  font-weight: 700;
}
.save-note.is-error {
  background: #fdf0ef;
  border-color: #f0cfcc;
  color: #9a3b31;
}
.saved-entries { margin-top: 2rem; }
.saved-entries h3 { color: var(--blue-dark); }
.saved-entries > p { color: var(--muted); font-size: .92rem; }
.saved-entry {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
}
.saved-entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
}
.saved-entry-head h4 { margin: 0; color: var(--blue-dark); font-size: 1.05rem; }
.entry-badge {
  padding: .14rem .6rem;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid var(--line);
  color: var(--blue-dark);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.entry-badge.status-published,
.entry-badge.status-featured { background: #e9f6ec; border-color: #c9e8d2; color: #1e7a3d; }
.entry-badge.status-draft { background: #f4f4f4; border-color: #e2e2e2; color: #6b6b6b; }
.entry-badge.status-scheduled { background: #fff7e0; border-color: #f0e0ac; color: #8a6d1a; }
.entry-badge.status-archived { background: #f4f4f4; border-color: #e2e2e2; color: #6b6b6b; }
.entry-date { color: var(--muted); font-size: .82rem; }
.saved-entry-meta { margin: .5rem 0 .4rem; color: var(--muted); font-size: .85rem; }
.saved-entry-text { margin: 0 0 .6rem; white-space: pre-wrap; font-size: .95rem; }
.saved-entry-img {
  display: block;
  max-width: 260px;
  max-height: 160px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin-bottom: .7rem;
}
.entry-delete {
  padding: .38rem .9rem;
  border: 1px solid #e3b7b2;
  border-radius: 999px;
  background: #fff;
  color: #a33b31;
  font: inherit;
  font-size: .8rem;
  font-weight: 750;
  cursor: pointer;
  transition: background .2s ease;
}
.entry-delete:hover { background: #fdf0ef; }
.saved-empty {
  padding: 1.1rem 1.3rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .92rem;
}
.file-upload input[type="file"] {
  display: block;
  width: 100%;
  margin-top: .7rem;
  font-size: .85rem;
  color: var(--muted);
}
.file-upload.is-dragging {
  border-color: var(--blue);
  background: rgba(30, 144, 255, .05);
}
.file-upload img.upload-preview {
  display: block;
  max-width: 240px;
  max-height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin: .8rem auto 0;
}
.post-image {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Public Blog / Resources feed (populated from api/content.php) */
[hidden] { display: none !important; }
.post-excerpt { font-weight: 600; }
.post-content > :last-child { margin-bottom: 0; }
.post-content img { max-width: 100%; height: auto; border-radius: 10px; }
.post-content figure { margin: 1.25rem 0; }
.post-content figure img { display: block; width: 100%; }
.post-content figcaption { margin-top: .5rem; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.resource-feed {
  display: grid;
  gap: 2rem;
}
.resource-card {
  background: var(--tint);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.resource-card .post-title { margin-bottom: .5rem; }
.resource-card .post-content > p:first-of-type { margin-top: 0; }
.resource-card .text-link { margin-top: .8rem; }
.feed-status {
  margin: 0 0 1.5rem;
  padding: .8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: .9rem;
}
.feed-empty {
  margin: 0;
  padding: 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  text-align: center;
}

/* Resources attachments */
.post-attachments {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.post-attachments h4 {
  margin: 0 0 .6rem;
  color: var(--blue-dark);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.attachment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.attachment-item {
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.attachment-title { display: block; color: var(--blue-deep); font-weight: 750; overflow-wrap: anywhere; }
.attachment-meta { display: block; margin-top: .1rem; color: var(--muted); font-size: .8rem; }
.attachment-audio { display: block; width: 100%; max-width: 520px; margin: .6rem 0 .2rem; }
.attachment-actions { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .5rem; }
.attachment-actions .text-link { margin: 0; }

/* Blog layout: latest full story beside the date archive */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(250px, .85fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.blog-main { min-width: 0; }
.blog-main .blog-posts { display: grid; gap: 1.5rem; }
.blog-main .blog-post { background: var(--paper); }
.blog-main .article-full .post-title { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.blog-main .article-full .post-content { font-size: 1.02rem; line-height: 1.75; }
.blog-sidebar {
  min-width: 0;
  padding: 1.4rem;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.blog-sidebar-heading { margin-bottom: 1.2rem; }
.blog-sidebar-heading .eyebrow { margin-bottom: .35rem; }
.blog-sidebar-heading h2 { margin: 0 0 .4rem; color: var(--blue-dark); font-size: 1.35rem; }
.blog-sidebar-heading p:last-child { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.blog-archive { display: grid; gap: .9rem; }
.archive-year {
  padding: .9rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.archive-year h3 { margin: 0 0 .65rem; color: var(--blue-dark); font-size: 1.05rem; }
.archive-month { padding-top: .55rem; border-top: 1px solid var(--line); }
.archive-month + .archive-month { margin-top: .55rem; }
.archive-month h4 { margin: 0 0 .35rem; color: var(--blue-deep); font-size: .9rem; }
.archive-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.archive-list li {
  display: grid;
  gap: .12rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--line);
}
.archive-list li:last-child { border-bottom: 0; }
.archive-list a { color: var(--blue-dark); font-weight: 700; text-decoration: none; }
.archive-list a:hover { color: var(--blue); text-decoration: underline; }
.archive-date { color: var(--muted); font-size: .78rem; }
.article-view { max-width: 900px; margin: 0 auto; }
.article-view .blog-post { background: var(--paper); }
.article-full .post-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.article-full .post-content { font-size: 1.03rem; line-height: 1.75; }
.article-back { margin: 0 0 1.2rem; }
.article-back a { font-weight: 700; }

@media (max-width: 860px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { margin-top: .5rem; }
}

@media (max-width: 640px) {
  .post-meta { flex-wrap: wrap; gap: .35rem 1rem; }
  .blog-post, .resource-card { padding: 1.3rem; }
}

/* Hero — full-width photograph with a restrained copy panel */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 64vh, 700px);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.4rem, 4vw, 3.5rem);
  overflow: hidden;
  background: var(--blue-deep);
}
.hero-photo {
  position: absolute;
  top: -35%;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 170%;
  object-fit: cover;
  object-position: 58% 42%;
  will-change: transform;
  transform: translateZ(0); /* Hardware acceleration */
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Subtle bottom fade only — keeps the photograph bright and unobscured. */
  background: linear-gradient(0deg, rgba(7, 26, 34, .18), transparent 50%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-copy {
  width: min(100%, 570px);
  padding: clamp(1.5rem, 2.8vw, 2.3rem);
  color: #fff;
  background:
    linear-gradient(105deg, rgba(7, 26, 34, .46) 0%, rgba(7, 26, 34, .28) 58%, rgba(7, 26, 34, .05) 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .14);
}
.hero .eyebrow { color: #f2d27e; font-size: .7rem; }
.hero h1 {
  margin-bottom: .8rem;
  color: #fff;
  font-size: clamp(2.15rem, 4.2vw, 3.5rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .38);
}
.hero h1 span { color: #ffd873; }
.hero .lead {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
}
.hero .lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }
.hero-actions .btn { padding: .7rem 1.05rem; font-size: .88rem; }
.hero .btn.secondary {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .62);
  color: #fff;
}
.hero .btn.secondary:hover { background: rgba(255, 255, 255, .18); }

/* Why we go */
.why-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.why-grid h2 { max-width: 430px; }
.why-grid .prose p + p { margin-top: 1rem; }

/* Three logo windows */
.logo-section { background: linear-gradient(180deg, var(--paper), var(--tint)); }
.logo-windows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}
.logo-window {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(12, 42, 58, .07);
  color: var(--ink);
  text-decoration: none;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.logo-window:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}
.window-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.window-name {
  color: var(--blue-dark);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.window-arrow { color: var(--gold); font-size: 1.1rem; line-height: 1; }
.window-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 148px;
  padding: .8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.window-art img {
  display: block;
  position: absolute;
  inset: .55rem;
  width: calc(100% - 1.1rem);
  height: calc(100% - 1.1rem);
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
.window-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  color: var(--muted);
  font-size: .85rem;
}
.logo-windows.compact .window-art { height: 108px; }
.logo-windows.compact .window-foot { font-size: .8rem; }

/* Split content and figures */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
/* Give the photograph a little more than half of the split layout. */
.split--media-left { grid-template-columns: 1.12fr .88fr; }
.split--media-right { grid-template-columns: .88fr 1.12fr; }
.figure { margin: 0; }
.figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.figure figcaption {
  margin-top: .7rem;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}
/* Content photographs keep their complete frame; no cropping. */

/* Impact statement */
.impact { max-width: 860px; margin: 0 auto; text-align: center; }
.impact p:last-child { font-size: 1.12rem; }

/* Sub-page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 1.4rem;
  color: #fff;
  background: linear-gradient(125deg, var(--blue-deep) 0%, var(--blue-dark) 58%, var(--blue) 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -120px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 165, 43, .24), transparent 66%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  bottom: -260px;
  left: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  pointer-events: none;
}
.page-hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.breadcrumb { margin: 0 0 1.1rem; color: #cfe2ea; font-size: .82rem; }
.breadcrumb a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .45);
}
.breadcrumb a:hover { border-bottom-color: #fff; }
.page-hero .eyebrow { color: #f2d27e; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 3.9rem); }
.page-hero .lead { color: #e6f0f4; }
.page-logo {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 1.4rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .26);
}
.page-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}

/* Sub-page content */
.content-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.callout {
  padding: 1.5rem;
  background: var(--tint);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout h3 { color: var(--blue-dark); }
.callout p:last-child { margin-bottom: 0; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.fact-list li { position: relative; padding-left: 1.6rem; }
.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: .52rem;
  height: .52rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(216, 165, 43, .16);
}
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.6rem;
  align-items: start;
}
.photo-pair figure { margin: 0; }
.photo-pair img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}
.photo-pair figcaption { margin-top: .45rem; color: var(--muted); font-size: .82rem; }

/* CTA band */
.cta-band {
  padding: clamp(2.6rem, 5vw, 4rem) 1.4rem;
  color: #fff;
  background: var(--blue-deep);
}
.cta-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band h2 { margin: 0 0 .35rem; color: #fff; }
.cta-band p { margin: 0; color: #d7e6ea; }

/* Full-width Cambodian feature — natural colour, no overlay */
.cambodia-feature {
  padding: clamp(1.8rem, 4vw, 3rem) 0 clamp(1.2rem, 3vw, 2rem);
  background: var(--paper);
}
.cambodia-feature .feature-media {
  position: relative;
  width: 100%;
  height: clamp(300px, 40vw, 520px);
  overflow: hidden;
  --feather: 4%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 var(--feather), #000 calc(100% - var(--feather)), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 var(--feather), #000 calc(100% - var(--feather)), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 var(--feather), #000 calc(100% - var(--feather)), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 var(--feather), #000 calc(100% - var(--feather)), transparent 100%);
  mask-composite: intersect;
}
.cambodia-feature img {
  position: absolute;
  top: -7.5%;
  left: 0;
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: 50% 50%;
  will-change: transform;
}

/* Six-up photo ribbon: all six photographs visible at once. */
.photo-ribbon {
  padding: clamp(2.6rem, 5vw, 4rem) 1.4rem clamp(1.6rem, 3vw, 2.4rem);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.ribbon-head {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.ribbon-kicker {
  margin: 0 0 .2rem;
  color: var(--blue-dark);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ribbon-title {
  margin: 0;
  max-width: 700px;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.2;
}
.ribbon-controls { display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; }
.ribbon-hint { margin: 0; color: var(--muted); font-size: .78rem; }
.ribbon-toggle {
  padding: .42rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .3s ease;
}
.ribbon-toggle:hover { background: var(--tint); border-color: var(--blue); }
.ribbon-grid {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .7rem;
  position: relative;
}
.ribbon-grid::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  z-index: 1;
}
.ribbon-grid::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  z-index: 1;
}
.ribbon-tile {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--line);
}
.ribbon-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 1s ease, transform 0.3s ease;
}
.ribbon-tile:hover img {
  transform: scale(1.02);
}
.ribbon-tile img.is-active { opacity: 1; }
.ribbon-tile img.is-portrait {
  object-fit: contain;
  background: #e8eeee;
}

/* Footer */
footer {
  padding: 3rem 1.4rem 1.4rem;
  color: #d7e6ea;
  background: #071a22;
}
.footer-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 2rem;
}
.footer-brand img { display: block; width: auto; height: 58px; margin-bottom: .8rem; }
.footer-motto { margin: 0 0 .25rem; color: #fff; font-weight: 800; }
.footer-line { margin: 0; max-width: 420px; color: #a9c1c9; font-size: .9rem; }
.footer-heading {
  margin: 0 0 .65rem;
  color: #f2d27e;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  width: fit-content;
  margin: .32rem 0;
  color: #cfe2e8;
  font-size: .9rem;
  text-decoration: none;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col a.footer-subtle { color: #8faab3; font-size: .84rem; }
.footer-bottom {
  width: 100%;
  max-width: var(--max);
  margin: 2.2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem;
  color: #8faab3;
  font-size: .8rem;
}
.footer-bottom p { margin: 0; }

/* Scroll-linked parallax is implemented in JavaScript (see site.js), which
   registers the hero photograph only. There are no CSS scroll-driven
   animations in this stylesheet. */
/* Responsive */
@media (max-width: 980px) {
  .why-grid,
  .split,
  .content-grid,
  .page-hero .container { grid-template-columns: 1fr; }
  .why-grid h2 { max-width: none; }
  .page-logo { min-height: 150px; max-width: 420px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: .55rem; }
  .main-nav { justify-content: flex-start; gap: .1rem; }
  .main-nav a { padding: .32rem .45rem; font-size: .8rem; }
  [id] { scroll-margin-top: 150px; }
  .hero { min-height: 0; padding: 2.6rem 1.1rem; }
  .hero-photo { object-position: 62% 42%; }
  .hero-copy { width: 100%; max-width: none; }
  .logo-windows { grid-template-columns: 1fr; }
  .logo-window { flex-direction: row; align-items: center; gap: 1rem; }
  .window-top { flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 92px; }
  .window-art { flex: 1; height: 92px; }
  .window-foot { display: none; }
  .logo-windows.compact .window-art { height: 78px; }
  .photo-pair { grid-template-columns: 1fr; }
  .cambodia-feature .feature-media { height: clamp(270px, 56vw, 390px); }
  .ribbon-head { align-items: flex-start; flex-direction: column; gap: .8rem; }
  .ribbon-title { font-size: 1.35rem; }
  .ribbon-controls { width: 100%; justify-content: space-between; }
  .ribbon-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .55rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .gtranslate_wrapper { margin-left: 0; margin-right: 0; width: 100%; }
  /* Full-width pill on mobile so the chevron (positioned against
     .gt_selected, which fills the wrapper) sits inside the pill. */
  .gtranslate_wrapper .gt_selected a { width: 100% !important; box-sizing: border-box !important; }
}
@media (max-width: 520px) {
  .brand img { height: 42px; }
  .brand-name { font-size: 1.18rem; }
  .hero { padding: 2rem .85rem; }
  .hero h1 { font-size: clamp(1.95rem, 9vw, 2.75rem); }
  .hero-copy { padding: 1.25rem; }
  .section { padding-left: 1.1rem; padding-right: 1.1rem; }
  .window-art { height: 74px; padding: .45rem; }
  .logo-windows.compact .window-art { height: 66px; }
  .cambodia-feature .feature-media { height: 250px; }
  .photo-ribbon { padding-left: 1.1rem; padding-right: 1.1rem; }
  .ribbon-hint { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .brand img { animation: none !important; }
}

@media print {
  .site-header, .hero-actions, .photo-ribbon, .cambodia-feature, .cta-band, footer { display: none; }
  .hero { min-height: 0; padding: 1rem 0; color: var(--ink); background: none; }
  .hero-photo, .hero-scrim { display: none; }
  .hero-copy, .hero h1, .hero .lead { color: var(--ink); text-shadow: none; }
  .hero-copy { width: auto; padding: 0; border: 0; box-shadow: none; background: none; }
  .section { padding: 1.5rem 0; }
}


/* Preserve the complete Cambodian sunset photograph */
@media screen {
  .cambodia-feature .feature-media {
    height: auto !important;
    padding-bottom: 45px;
  }
  .cambodia-feature img {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease;
  }
}

.cambodia-feature img.is-visible { opacity: 1; }

/* GO-ERS sunset footer overlay */

/* GO-ERS sunset footer overlay */
.cambodia-feature {
  position: relative;
  margin: 0;
  padding: 0;
  background: transparent;
}
.cambodia-feature .feature-media {
  width: 100%;
  height: auto !important;
  padding: 0 !important;
  overflow: hidden;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
.cambodia-feature .feature-media > img {
  position: relative !important;
  inset: auto !important;
  display: block;
  width: 100%;
  height: auto !important;
  object-fit: contain;
  opacity: 1 !important;
  transform: none !important;
}
.cambodia-feature > footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: clamp(1rem, 2.5vw, 2.5rem) 1.4rem 1.1rem;
  color: #fff;
  background: transparent;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .85);
}
.cambodia-feature .footer-motto,
.cambodia-feature .footer-line,
.cambodia-feature .footer-heading,
.cambodia-feature .footer-col a,
.cambodia-feature .footer-col a.footer-subtle,
.cambodia-feature .footer-bottom {
  color: #fff;
}
.cambodia-feature .footer-heading {
  color: #f2d27e;
}
.cambodia-feature .footer-inner {
  gap: 1.5rem;
}
.cambodia-feature .footer-bottom {
  border-top-color: rgba(255, 255, 255, .35);
}
@media (max-width: 760px) {
  .cambodia-feature > footer {
    padding: .7rem .9rem .65rem;
  }
  .cambodia-feature .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: .55rem .9rem;
  }
  .cambodia-feature .footer-brand {
    grid-column: 1 / -1;
  }
  .cambodia-feature .footer-brand img {
    height: 38px;
    margin-bottom: .3rem;
  }
  .cambodia-feature .footer-motto {
    margin-bottom: .1rem;
    font-size: .88rem;
  }
  .cambodia-feature .footer-line,
  .cambodia-feature .footer-col a {
    font-size: .76rem;
    line-height: 1.25;
  }
  .cambodia-feature .footer-heading {
    margin-bottom: .25rem;
    font-size: .65rem;
  }
  .cambodia-feature .footer-col a {
    margin: .18rem 0;
  }
  .cambodia-feature .footer-bottom {
    margin-top: .55rem;
    padding-top: .4rem;
    font-size: .68rem;
  }
}



/* Sunset footer: firm column centring and warm text colours */
.cambodia-feature .footer-col {
  justify-self: center;
  width: 100%;
  text-align: center;
}

.cambodia-feature .footer-col .footer-heading {
  color: #ffd166;
  text-align: center;
}

.cambodia-feature .footer-col a,
.cambodia-feature .footer-col a.footer-subtle {
  display: block;
  width: fit-content;
  margin: .32rem auto;
  color: #ffe3ad;
  text-align: center;
}

.cambodia-feature .footer-col a:hover {
  color: #ffffff;
}

.cambodia-feature .footer-motto {
  color: #ffe3ad;
}

.cambodia-feature .footer-line {
  color: #fff0d2;
}

.cambodia-feature .footer-bottom {
  color: #ffe3ad;
}

@media (max-width: 760px) {
  .cambodia-feature .footer-col {
    justify-self: stretch;
    width: 100%;
    text-align: center;
  }

  .cambodia-feature .footer-col a {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Improve sunset-footer readability */
.cambodia-feature > footer {
  text-shadow: 2px 2px 3px #000, 0 0 6px rgba(0,0,0,.9);
}

.cambodia-feature .footer-motto {
  font-size: 1.15rem;
}

.cambodia-feature .footer-line {
  font-size: 1rem;
}

.cambodia-feature .footer-heading {
  font-size: .82rem;
}

.cambodia-feature .footer-col a,
.cambodia-feature .footer-col a.footer-subtle {
  font-size: 1rem;
}

.cambodia-feature .footer-bottom {
  font-size: .9rem;
}

@media (max-width: 760px) {
  .cambodia-feature .footer-motto { font-size: 1rem; }
  .cambodia-feature .footer-line,
  .cambodia-feature .footer-col a,
  .cambodia-feature .footer-col a.footer-subtle { font-size: .9rem; }
  .cambodia-feature .footer-heading { font-size: .75rem; }
  .cambodia-feature .footer-bottom { font-size: .8rem; }
}

/* Hard-centre footer Explore and Projects contents */
.cambodia-feature .footer-inner > .footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: stretch;
  text-align: center;
}

.cambodia-feature .footer-inner > .footer-col .footer-heading,
.cambodia-feature .footer-inner > .footer-col a {
  width: fit-content;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Centre Explore and Projects together on desktop */
@media (min-width: 761px) {
  .cambodia-feature .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
    column-gap: 2.5rem;
  }

  .cambodia-feature .footer-brand {
    grid-column: 1;
  }

  .cambodia-feature .footer-inner > .footer-col:nth-child(2) {
    grid-column: 2;
  }

  .cambodia-feature .footer-inner > .footer-col:nth-child(3) {
    grid-column: 3;
  }
}

/* Centre Explore and Projects together on desktop */
@media (min-width: 761px) {
  .cambodia-feature .footer-inner {
    grid-template-columns: minmax(0, 1fr) auto auto minmax(0, 1fr);
    column-gap: 2.5rem;
  }

  .cambodia-feature .footer-brand {
    grid-column: 1;
  }

  .cambodia-feature .footer-inner > .footer-col:nth-child(2) {
    grid-column: 2;
  }

  .cambodia-feature .footer-inner > .footer-col:nth-child(3) {
    grid-column: 3;
  }
}

/* Stronger sunset orange footer palette */
.cambodia-feature .footer-heading {
  color: #ff8c32;
}

.cambodia-feature .footer-col a,
.cambodia-feature .footer-col a.footer-subtle {
  color: #ffad55;
}

.cambodia-feature .footer-motto {
  color: #ff963d;
}

.cambodia-feature .footer-line,
.cambodia-feature .footer-bottom {
  color: #ffbd75;
}

.cambodia-feature .footer-col a:hover {
  color: #ffd08a;
}

/* Stronger sunset orange footer palette */
.cambodia-feature .footer-heading {
  color: #ff8c32;
}

.cambodia-feature .footer-col a,
.cambodia-feature .footer-col a.footer-subtle {
  color: #ffad55;
}

.cambodia-feature .footer-motto {
  color: #ff963d;
}

.cambodia-feature .footer-line,
.cambodia-feature .footer-bottom {
  color: #ffbd75;
}

.cambodia-feature .footer-col a:hover {
  color: #ffd08a;
}

/* Stronger sunset orange footer palette */
.cambodia-feature .footer-heading {
  color: #ff8c32;
}

.cambodia-feature .footer-col a,
.cambodia-feature .footer-col a.footer-subtle {
  color: #ffad55;
}

.cambodia-feature .footer-motto {
  color: #ff963d;
}

.cambodia-feature .footer-line,
.cambodia-feature .footer-bottom {
  color: #ffbd75;
}

.cambodia-feature .footer-col a:hover {
  color: #ffd08a;
}

/* Floating sunset-orange Back to Top button */
.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 1000;
  padding: .7rem 1rem;
  border: 1px solid rgba(0,0,0,.55);
  border-radius: 30px;
  background: #ff8c32;
  color: #071a22;
  font: inherit;
  font-weight: 750;
  text-shadow: 1px 1px 2px rgba(0,0,0,.35);
  box-shadow: 0 3px 10px rgba(0,0,0,.45);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #ffad55;
}

@media (max-width: 520px) {
  .back-to-top {
    right: .8rem;
    bottom: .8rem;
    padding: .55rem .8rem;
    font-size: .85rem;
  }
}

/* Floating sunset-orange Back to Top button */
.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 1000;
  padding: .7rem 1rem;
  border: 1px solid rgba(0,0,0,.55);
  border-radius: 30px;
  background: #ff8c32;
  color: #071a22;
  font: inherit;
  font-weight: 750;
  text-shadow: 1px 1px 2px rgba(0,0,0,.35);
  box-shadow: 0 3px 10px rgba(0,0,0,.45);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #ffad55;
}

@media (max-width: 520px) {
  .back-to-top {
    right: .8rem;
    bottom: .8rem;
    padding: .55rem .8rem;
    font-size: .85rem;
  }
}

/* Compact Back to Top button */
.back-to-top {
  padding: .25rem .5rem !important;
  font-size: .68rem !important;
  line-height: 1.2;
  border-radius: 18px;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

@media (max-width: 520px) {
  .back-to-top {
    padding: .22rem .45rem !important;
    font-size: .65rem !important;
  }
}

/* Compact Back to Top button */
.back-to-top {
  padding: .25rem .5rem !important;
  font-size: .68rem !important;
  line-height: 1.2;
  border-radius: 18px;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

@media (max-width: 520px) {
  .back-to-top {
    padding: .22rem .45rem !important;
    font-size: .65rem !important;
  }
}

/* Compact Back to Top button */
.back-to-top {
  padding: .25rem .5rem !important;
  font-size: .68rem !important;
  line-height: 1.2;
  border-radius: 18px;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

@media (max-width: 520px) {
  .back-to-top {
    padding: .22rem .45rem !important;
    font-size: .65rem !important;
  }
}







/* Back to Top final position */
.back-to-top { bottom: 80px !important; }

/* Slightly larger Explore and Projects text only */
.cambodia-feature .footer-inner > .footer-col .footer-heading {
  font-size: 0.95rem;
}

.cambodia-feature .footer-inner > .footer-col a {
  font-size: 1.12rem;
}

@media (max-width: 760px) {
  .cambodia-feature .footer-inner > .footer-col .footer-heading {
    font-size: 0.85rem;
  }

  .cambodia-feature .footer-inner > .footer-col a {
    font-size: 1.02rem;
  }
}

/* One more size increase — Explore and Projects only */
.cambodia-feature .footer-inner > .footer-col .footer-heading {
  font-size: 1.05rem;
}

.cambodia-feature .footer-inner > .footer-col a {
  font-size: 1.22rem;
}

@media (max-width: 760px) {
  .cambodia-feature .footer-inner > .footer-col .footer-heading {
    font-size: 0.95rem;
  }

  .cambodia-feature .footer-inner > .footer-col a {
    font-size: 1.12rem;
  }
}




/* GO-ERS navigation icon — upright coin spin */
.site-header .goers-coin-scene {
  display: inline-block;
  position: relative;
  flex: 0 0 auto;
  perspective: 700px;
  vertical-align: middle;
}

.site-header .goers-coin-spinner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: none !important;
  transform: rotateY(0deg);
}

.site-header .goers-coin-face {
  animation: none !important;
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.site-header .goers-coin-front {
  transform: translateZ(0.5px);
}

.site-header .goers-coin-back {
  transform: rotateY(180deg) scaleX(-1) translateZ(0.5px);
}

@keyframes goers-coin-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header .goers-coin-spinner {
    animation: none;
  }
}

/* GO-ERS: six photos in one horizontal row */
.ribbon-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

/* Heading size tidy-up — 11 November 2026 */
h1 { font-size: clamp(2.1rem, 4.8vw, 3.7rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); }
h3 { font-size: 1.12rem; }

.hero h1 { font-size: clamp(1.95rem, 4vw, 3.15rem); }
.page-hero h1 { font-size: clamp(2.05rem, 4.2vw, 3.25rem); }

.blog-main .article-full .post-title,
.article-full .post-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}
