/* =========================================================
   Designed page content (rendered by app/RichContent.php).
   Replaces the long single-column "document" layout on every inner page.
   ========================================================= */
.page-hero-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:28px}
.button-ghost{background:transparent!important;color:#fff!important;border:1.5px solid #ffffffb3!important}
.button-ghost:hover{background:#ffffff1a!important;border-color:#fff!important}

/* Sticky "On this page" chips */
.rc-chips{position:sticky;top:var(--header-h,80px);z-index:30;background:var(--surface);border-bottom:1px solid var(--border);transition:box-shadow .25s}
.rc-chips.is-stuck{box-shadow:0 10px 24px -18px #142b4566}
.rc-chips .wrap{display:flex;align-items:center;gap:18px;min-height:62px}
.rc-chips-label{flex:none;font-size:14.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--label)}
.rc-chips-track{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-block:10px;scroll-behavior:smooth}
.rc-chips-track::-webkit-scrollbar{display:none}
.rc-chips-track a{flex:none;padding:8px 16px;border-radius:999px;border:1px solid var(--border);color:var(--text);font-size:15.5px;font-weight:600;text-decoration:none;white-space:nowrap;transition:background-color .2s,color .2s,border-color .2s}
.rc-chips-track a:hover{border-color:var(--orange);color:var(--orange)}
.rc-chips-track a.is-active{background:var(--navy);border-color:var(--navy);color:#fff}
@media(max-width:680px){.rc-chips-label{display:none}}

/* Sections */
.rc-section{padding-block:clamp(64px,7vw,104px);scroll-margin-top:calc(var(--header-h,80px) + 70px)}
.rc-page .rc-section:nth-child(even){background:var(--surface-2);border-block:1px solid var(--border)}
.rc-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.6fr);gap:clamp(32px,5vw,80px);align-items:start}
.rc-head{position:sticky;top:calc(var(--header-h,80px) + 90px)}
.rc-num{display:inline-flex;align-items:center;gap:12px;font-size:15.5px;font-weight:700;letter-spacing:.12em;color:var(--orange);margin-bottom:14px}
.rc-num:after{content:"";width:36px;height:2px;background:var(--orange)}
.rc-head h2{font-size:clamp(28px,3.2vw,44px);line-height:1.12;color:var(--heading);margin:0}
.rc-body{display:grid;gap:28px;min-width:0}
.rc-body>*{margin:0}
.rc-text p{font-size:18.5px;line-height:1.75;color:var(--text-2);margin:0 0 16px;max-width:68ch}
.rc-text p:last-child{margin-bottom:0}
.rc-text .rc-lead,.rc-lead{font-size:clamp(20px,1.6vw,22px)!important;line-height:1.6!important;color:var(--heading)!important;font-weight:500}
.rc-text strong{color:var(--heading)}
.rc-text a,.rc-card a{color:var(--orange);font-weight:600}
.rc-intro{padding-block:clamp(56px,6vw,88px) 0}
.rc-intro-body{max-width:900px;margin-inline:auto;text-align:center}
.rc-intro-body .rc-text p{margin-inline:auto}
@media(max-width:900px){.rc-grid{grid-template-columns:1fr}.rc-head{position:static}}

/* Cards from h3 groups */
.rc-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.rc-cards.is-3{grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr))}
.rc-card{position:relative;display:block;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:28px 26px;box-shadow:var(--shadow-sm);color:var(--text);text-decoration:none;transition:transform .25s var(--ease),box-shadow .25s,border-color .25s}
.rc-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:color-mix(in srgb,var(--orange) 45%,var(--border))}
.rc-card .card-icon{width:46px;height:46px;margin-bottom:16px}
.rc-card h3{font-size:19.5px;line-height:1.3;color:var(--heading);margin:0 0 10px}
.rc-card p{font-size:17px;line-height:1.65;color:var(--text-2);margin:0 0 10px}
.rc-card p:last-child{margin-bottom:0}
.rc-card ul{margin:8px 0 0;padding-left:18px;color:var(--text-2);font-size:16.5px}
.rc-response{margin-top:14px!important;padding:12px 14px;border-radius:10px;background:color-mix(in srgb,var(--orange) 8%,var(--surface));border-left:3px solid var(--orange);color:var(--text)!important;font-size:16.5px!important}
.rc-response strong{display:block;font-size:14px;letter-spacing:.1em;text-transform:uppercase;color:var(--orange);margin-bottom:4px}
.rc-card-link{margin-top:16px!important;font-weight:600}
.rc-card-link a{text-decoration:none}
@media(max-width:640px){.rc-cards{grid-template-columns:1fr}}

/* Steps from ordered lists */
.rc-steps{list-style:none;margin:0;padding:0;display:grid;gap:14px;counter-reset:rc-step}
.rc-steps li{counter-increment:rc-step;position:relative;display:grid;grid-template-columns:48px 1fr;column-gap:18px;padding:20px 22px;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-sm)}
.rc-steps li:before{content:counter(rc-step,decimal-leading-zero);grid-row:1/span 2;display:grid;place-items:center;width:48px;height:48px;border-radius:12px;background:var(--navy);color:#fff;font-weight:750;font-size:16.5px}
.rc-steps li:last-child:before{background:var(--orange)}
.rc-steps strong{display:block;font-size:19.5px;color:var(--heading);margin-bottom:4px}
.rc-steps span{color:var(--text-2);font-size:17px;line-height:1.6}

/* Fact cards from "Label: value" lists */
.rc-facts{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:14px;margin:0}
.rc-fact{padding:20px 22px;background:var(--surface);border:1px solid var(--border);border-top:3px solid var(--orange);border-radius:12px}
.rc-fact dt{font-size:14.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--label);margin-bottom:8px}
.rc-fact dd{margin:0;font-size:18px;font-weight:600;line-height:1.45;color:var(--heading)}

/* Checklists */
.rc-checks{list-style:none;margin:0;padding:6px 24px;display:grid;background:var(--surface);border:1px solid var(--border);border-radius:14px}
.rc-checks.is-2{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
.rc-checks li{position:relative;padding:14px 0 14px 34px;border-bottom:1px solid var(--border);font-size:17px;line-height:1.55;color:var(--text)}
.rc-checks li:before{content:"";position:absolute;left:0;top:14px;width:22px;height:22px;border-radius:50%;background:color-mix(in srgb,var(--orange) 14%,transparent)}
.rc-checks li:after{content:"";position:absolute;left:7px;top:20px;width:8px;height:4px;border-left:2px solid var(--orange);border-bottom:2px solid var(--orange);transform:rotate(-45deg)}
.rc-checks:not(.is-2) li:last-child,.rc-checks.is-2 li:nth-last-child(-n+2){border-bottom:0}
@media(max-width:700px){.rc-checks.is-2{grid-template-columns:1fr}.rc-checks.is-2 li:nth-last-child(2){border-bottom:1px solid var(--border)}}

/* Link buttons, notes, callouts */
.rc-links{display:flex;flex-wrap:wrap;gap:10px}
.rc-link{display:inline-flex;align-items:center;gap:10px;padding:12px 18px;border-radius:10px;border:1.5px solid var(--navy);color:var(--navy)!important;font-size:16.5px;font-weight:650;text-decoration:none;transition:background-color .2s,color .2s}
.rc-link:hover{background:var(--navy);color:#fff!important}
.rc-link span{transition:transform .2s}
.rc-link:hover span{transform:translateX(3px)}
.rc-note{padding:16px 20px;border-radius:12px;background:var(--surface);border:1px dashed var(--silver);color:var(--text-2);font-size:16px}
.rc-callout{padding:24px 26px;border-radius:14px;background:var(--navy);color:#fff!important;font-size:19px;line-height:1.6}
.rc-callout strong{color:#fff}
.rc-quote{margin:0;padding:6px 0 6px 24px;border-left:4px solid var(--orange);font-size:21px;color:var(--heading)}

/* FAQ accordion */
.faq-list{display:grid;gap:12px}
.faq-item{background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.faq-item summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 22px;font-size:18.5px;font-weight:650;color:var(--heading)}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary:after{content:"+";flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--surface-2);color:var(--orange);font-size:21px;font-weight:500;transition:transform .2s}
.faq-item[open] summary:after{transform:rotate(45deg)}
.faq-item p{margin:0;padding:0 22px 22px;color:var(--text-2);font-size:17.5px;line-height:1.7}

/* Contact cards */
.rc-contact{padding-bottom:0}
.contact-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.contact-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:26px 24px;box-shadow:var(--shadow-sm)}
.contact-card h3{font-size:18.5px;color:var(--heading);margin:0 0 8px}
.contact-card p{margin:0;color:var(--text-2);font-size:17px;line-height:1.6}
.contact-card .card-icon{width:46px;height:46px;margin-bottom:16px}
.contact-card.is-accent{background:var(--navy);border-color:var(--navy)}
.contact-card.is-accent h3,.contact-card.is-accent p{color:#fff}
.contact-card.is-accent .card-icon{background:#ffffff14;color:var(--orange-light,#d4776a)}
.contact-card .rc-link{margin-top:14px;padding:8px 14px;font-size:15.5px}
@media(max-width:1000px){.contact-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.contact-cards{grid-template-columns:1fr}}

/* Card-heavy sections: heading on top, cards across the full width */
.rc-section.rc-wide .rc-grid{grid-template-columns:1fr;gap:32px}
.rc-section.rc-wide .rc-head{position:static;max-width:760px}
.rc-section.rc-wide .rc-body>.rc-text{max-width:860px}
.rc-section.rc-wide .rc-cards.is-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1000px){.rc-section.rc-wide .rc-cards.is-3{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.rc-section.rc-wide .rc-cards.is-3{grid-template-columns:1fr}}

/* Fail-safe reveal for page content: always visible; animates in only once the script marks it visible. */
.js-reveals .rc-page .reveal,.js-reveals .rc-contact .reveal,.js-reveals .rc-faq .reveal,.js-reveals .rc-section .reveal{opacity:1!important;transform:none!important;transition:none!important}
@media(prefers-reduced-motion:no-preference){.js-reveals .rc-section .reveal.is-visible{animation:rc-rise .7s cubic-bezier(.2,.7,.2,1) both}}
@keyframes rc-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}

/* FAQ page */
.faq-group{scroll-margin-top:110px}
.faq-item{scroll-margin-top:110px}
.faq-more{margin:20px 0 0}
.faq-help-card{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;padding:32px 36px;border-radius:16px;background:var(--surface-2);border:1px solid var(--border);border-left:4px solid var(--orange)}
.faq-help-card h2{margin:0 0 8px;font-size:clamp(24px,2.6vw,32px)}
.faq-help-card p{margin:0;color:var(--text-2);max-width:560px}
.faq-help-actions{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:600px){.faq-help-card{padding:24px 20px}.faq-help-actions .button{flex:1 1 100%;justify-content:center}}

/* Contact page: office card map link and project-site note. */
.contact-card .rc-link{margin-top:14px}
.contact-card .contact-card-note{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--border);font-size:15px;line-height:1.55;color:var(--text-2)}
.contact-card p a{overflow-wrap:anywhere}

/* Contact page: head-office location (address, live map, office photographs). */
.office-section{background:var(--surface-2,#f4f5f6)}
.office-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:40px;align-items:center}
.office-panel h2{margin:12px 0 22px;font-size:clamp(28px,3vw,40px);line-height:1.15;color:var(--heading)}
.office-address{display:grid;gap:6px;margin:0 0 28px;font-style:normal;font-size:18px;line-height:1.6;color:var(--text)}
.office-address strong{color:var(--heading);font-size:19px}
.office-actions{display:flex;flex-wrap:wrap;gap:12px}
.office-map{overflow:hidden;border-radius:20px;border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow-sm,0 10px 30px -18px #0004);aspect-ratio:4/3}
.office-map iframe{display:block;width:100%;height:100%;border:0}
.office-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin-top:40px}
.office-photo{position:relative;display:block;overflow:hidden;border-radius:16px;border:1px solid var(--border);aspect-ratio:4/3;background:var(--surface)}
.office-photo picture,.office-photo img{display:block;width:100%;height:100%}
.office-photo img{object-fit:cover;transition:transform .4s var(--ease,ease)}
.office-photo:hover img{transform:scale(1.04)}
.office-photo-caption{position:absolute;left:0;right:0;bottom:0;padding:24px 16px 12px;background:linear-gradient(transparent,#000a);color:#fff;font-size:14.5px}
@media (max-width:900px){.office-grid{grid-template-columns:1fr;gap:28px}.office-map{aspect-ratio:16/11}}
@media (prefers-reduced-motion:reduce){.office-photo img{transition:none}}

/* ---------- About > Corporate structure: text left, group diagram right ---------- */
.rc-structure .rc-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);grid-template-areas:"head aside" "body aside";grid-template-rows:auto 1fr;column-gap:clamp(32px,5vw,72px);row-gap:clamp(20px,2.4vw,30px)}
.rc-structure .rc-head{grid-area:head;position:static}
.rc-structure .rc-body{grid-area:body;max-width:720px}
.corp-structure{grid-area:aside;align-self:start;background:var(--bg);border:1px solid var(--border);border-radius:24px;padding:clamp(20px,2.6vw,36px);box-shadow:0 24px 50px -34px rgba(20,43,69,.45)}
.corp-structure p{margin:0}
.cs-card{border-radius:12px;padding:22px 22px 24px}
.cs-parent{background:var(--surface);border:1px solid var(--border)}
.cs-sub{background:var(--brand-navy,#142b45);color:#fff;border-top:4px solid var(--brand-gold,#c49a45);box-shadow:0 18px 30px -18px rgba(14,32,54,.55)}
.cs-role{font-size:14px;font-weight:600;line-height:1.3;color:var(--brand-red,#8e3028);margin-bottom:6px!important}
.cs-sub .cs-role{color:var(--gold-light,#d9b872)}
.cs-name{font-size:clamp(20px,1.7vw,23px);font-weight:800;line-height:1.2;letter-spacing:-.01em;color:var(--heading)}
.cs-sub .cs-name{color:#fff}
.cs-text{margin-top:10px!important;font-size:14.5px;line-height:1.6;color:var(--text-2)}
.cs-sub .cs-text{color:#dbe1e8}
/* Relationship lines: owns (solid navy) and supplies ore (dotted bauxite red), each ending in an arrowhead on the subsidiary. */
.cs-links{list-style:none;margin:0;padding:0 0 0 42px;display:grid;grid-template-columns:auto auto;justify-content:start;column-gap:clamp(24px,4vw,56px)}
.cs-links li{position:relative;padding:30px 0 34px 14px;font-size:13.5px;font-weight:600;line-height:1.3;color:var(--heading)}
.cs-links li:before{content:'';position:absolute;left:0;top:0;bottom:8px;border-left:2px solid var(--brand-navy,#142b45)}
.cs-links li:after{content:'';position:absolute;left:-4px;bottom:0;border:5px solid transparent;border-top:8px solid var(--brand-navy,#142b45);border-bottom:0}
.cs-links .cs-supplies{color:var(--brand-red,#8e3028)}
.cs-links .cs-supplies:before{border-left:3px dotted var(--brand-red,#8e3028);left:-.5px}
.cs-links .cs-supplies:after{border-top-color:var(--brand-red,#8e3028)}
/* Parent company documents */
.corp-structure .cs-docs{margin:24px 0 0;border:0;border-top:1px solid var(--border);border-radius:0;padding:18px 0 0;background:none;box-shadow:none}
.cs-docs summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;list-style:none;padding:6px 0;border-bottom:2px solid var(--brand-gold,#c49a45);font-size:15px;font-weight:700;color:var(--heading)}
.cs-docs summary::-webkit-details-marker{display:none}
.cs-count{font-weight:500;color:var(--text-2)}
.cs-chevron{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transform:rotate(180deg);transition:transform .2s ease}
.cs-docs[open] .cs-chevron{transform:none}
.cs-docs summary:focus-visible,.cs-doc-list a:focus-visible{outline:2px solid var(--brand-gold,#c49a45);outline-offset:3px;border-radius:4px}
.cs-doc-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:2px}
.cs-doc-list a{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 10px;border-radius:8px;text-decoration:none;color:var(--text);font-size:15px;line-height:1.35}
.cs-doc-list a:hover{background:var(--surface-2)}
.cs-doc-list a:hover .cs-doc-name{color:var(--heading);text-decoration:underline;text-decoration-color:var(--brand-gold,#c49a45);text-underline-offset:3px}
.cs-doc-icon{width:18px;height:18px;fill:none;stroke:var(--brand-red,#8e3028);stroke-width:1.9;stroke-linejoin:round}
.cs-doc-meta{font-size:12.5px;color:var(--label);white-space:nowrap;text-align:right}
html[data-theme="dark"] .corp-structure{box-shadow:none}
html[data-theme="dark"] .cs-role{color:var(--brand-red-light,#d4776a)}
html[data-theme="dark"] .cs-sub .cs-role{color:var(--gold-light,#d9b872)}
html[data-theme="dark"] .cs-sub{border:1px solid #263a52;border-top:4px solid var(--brand-gold,#c49a45)}
html[data-theme="dark"] .cs-links li:before{border-left-color:#c3cbd5}
html[data-theme="dark"] .cs-links li:after{border-top-color:#c3cbd5}
html[data-theme="dark"] .cs-links .cs-supplies{color:var(--brand-red-light,#d4776a)}
html[data-theme="dark"] .cs-links .cs-supplies:before{border-left-color:var(--brand-red-light,#d4776a)}
html[data-theme="dark"] .cs-links .cs-supplies:after{border-top-color:var(--brand-red-light,#d4776a)}
html[data-theme="dark"] .cs-doc-icon{stroke:var(--brand-red-light,#d4776a)}
@media(max-width:900px){
  .rc-structure .rc-grid{grid-template-columns:1fr;grid-template-rows:auto;grid-template-areas:"head" "body" "aside"}
}
@media(max-width:480px){
  .cs-links{padding-left:24px;column-gap:18px}
  .cs-doc-list a{grid-template-columns:18px minmax(0,1fr);row-gap:2px}
  .cs-doc-meta{grid-column:2;text-align:left}
}
@media(prefers-reduced-motion:reduce){.cs-chevron{transition:none}}
.corp-structure .cs-docs summary:after{content:none;display:none}
.corp-structure .cs-docs[open]{box-shadow:none}

/* Sub-headings inside a text section (e.g. Bauxite Resources > mining areas) */
.rc-text h4{font-size:clamp(18px,1.45vw,20.5px);line-height:1.3;margin:30px 0 8px}
.rc-text h4+p{margin-top:0}

/* ---------- Page photo gallery (added in edit mode: MGR railway, trucks on route, site photos…) ---------- */
.page-gallery{background:var(--surface);border-top:1px solid var(--border)}
.page-gallery .section{padding-block:clamp(48px,6vw,88px)}
.pg-title{margin:0 0 clamp(20px,2.4vw,32px);font-size:clamp(26px,2.6vw,38px);line-height:1.15;max-width:22ch}
.pg-hint{margin:-10px 0 24px;max-width:70ch;color:var(--text-2)}
.pg-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:clamp(16px,2vw,26px)}
.pg-item{margin:0;position:relative}
.pg-frame{border-radius:14px;overflow:hidden;background:var(--surface-2);aspect-ratio:4/3}
.pg-frame picture,.pg-frame img{display:block;width:100%;height:100%;object-fit:cover}
.pg-item figcaption{margin-top:10px;padding-left:12px;border-left:3px solid var(--brand-gold,#c49a45);font-size:15px;line-height:1.5;color:var(--text-2)}
.pg-item figcaption:empty{display:none}
html.le-on .pg-item figcaption:empty{display:block;min-height:1.5em}
html.le-on .pg-item figcaption:empty::before{content:'Click to write a caption';color:var(--label);font-style:italic}
.pg-tools{display:flex;gap:6px;margin-top:10px}
.pg-tools button{padding:7px 11px;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--heading);font:600 13px/1 Inter,"Segoe UI",Roboto,Arial,sans-serif;cursor:pointer}
.pg-tools button:hover:not(:disabled){border-color:var(--brand-gold,#c49a45)}
.pg-tools button:disabled{opacity:.4;cursor:default}
.pg-tools .pg-remove{margin-left:auto;color:var(--brand-red,#8e3028)}
.pg-add{display:grid;place-content:center;justify-items:center;gap:6px;min-height:220px;aspect-ratio:4/3;border-radius:14px;border:2px dashed var(--silver,#aeb7c2);background:var(--bg);color:var(--heading);font:700 16px/1.3 Inter,"Segoe UI",Roboto,Arial,sans-serif;cursor:pointer;text-align:center;padding:16px}
.pg-add small{font-weight:500;font-size:13px;color:var(--text-2)}
.pg-add-plus{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:var(--brand-gold,#c49a45);color:#142b45;font-size:28px;line-height:1}
.pg-add:hover,.pg-add:focus-visible{border-color:var(--brand-gold,#c49a45);outline:0;background:var(--surface-2)}

/* ---------- Photo on top of a box (card), added in edit mode ---------- */
.rc-card-photo{margin:-28px -26px 20px;aspect-ratio:16/9;overflow:hidden;border-radius:13px 13px 0 0;background:var(--surface-2)}
.rc-card-photo picture,.rc-card-photo img{display:block;width:100%;height:100%;object-fit:cover}
.rc-card-photo.is-empty{display:none}
html.le-on .rc-card-photo.is-empty{display:grid;place-items:center;aspect-ratio:auto;height:96px;border-bottom:2px dashed var(--silver,#aeb7c2);background:var(--bg)}
html.le-on .rc-card-photo.is-empty::before{content:'No photo in this box yet';font-size:13px;color:var(--label);transform:translateY(-14px)}
