/* AusNiu Mining: layout fixes for particular screens (November 2026).
   Loaded after main.css on every page. Each rule applies only at the screen sizes, languages or browsers where the
   original layout had a confirmed problem; everywhere else the pages look exactly as they did. */

/* Narrow phones (English under 349 px, Tok Pisin under 367 px wide, including every 360 px Samsung on Tok Pisin):
   the second button of the red "Hold an ML or AML?" band ran off the screen and the page could be dragged sideways.
   The row now stops at the screen edge, so that button moves to its own line there. */
.cta-band .wrap>.cta-btns{max-width:calc(100vw - 20px)}

/* About and Consulting photo captions on phones: "SYDNEY HEADQUARTERS" ran out of its dark label and lost its last
   letters under 410 px (the Tok Pisin caption under 340 px). There the flag now sits above the words. */
@media (max-width:409.98px){.fph figcaption:lang(en){flex-direction:column;align-items:flex-start;gap:6px;letter-spacing:.03em}}
@media (max-width:339.98px){.fph figcaption:lang(en){font-size:11px}.fph figcaption:lang(tpi){flex-direction:column;align-items:flex-start;gap:6px;letter-spacing:.03em}}

/* Phones and tablets (under 900 px): after "Our work", "View the 3 packages" or a footer link to the packages, the
   section's small gold label stopped under the sticky header. In-page jumps now stop 24 px higher. */
@media (max-width:899.98px){.section[id]{scroll-margin-top:24px}}

/* iPhone and iPad: tapping a contact-form field zoomed the whole page in (iOS does that below 16 px text). */
@supports (-webkit-touch-callout:none){.cform input,.cform select,.cform textarea{font-size:16px}}

/* Safari (Mac, iPhone, iPad): the "Package or service" dropdown was a small grey system button between the white
   fields. It now matches them. The test below is true only in Safari's engine, so Chrome, Edge and Android are unchanged. */
@supports (font:-apple-system-body){.cform select{-webkit-appearance:none;appearance:none;background:var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231A1B1F' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;padding-right:40px;overflow:hidden}}

/* Phones held sideways and other short screens: the menu ran off the bottom of the screen, so Contact and the
   language links could not be reached. On screens too short for it, the menu now scrolls inside itself. */
@media (max-width:980.98px) and (max-height:559.98px){.nav-sheet .sheet{max-height:calc(100vh - 150px);max-height:calc(100dvh - 150px);overflow-y:auto;overscroll-behavior:contain}.nav-sheet .sheet>a:focus-visible{outline-offset:-3px}}

/* Phone menu: the 中文 link was only 30 px wide, hard to tap. Nothing moves. */
.nav-sheet .sheet .sheet-lang a{min-width:44px}

/* Tok Pisin pages, windows 981 to 1099 px wide (an iPad held sideways, a small laptop): the menu did not fit on one
   line, so two links broke onto two lines, 中文 stacked and the logo was squeezed. The links sit a little closer. */
@media (min-width:981px) and (max-width:1099.98px){html[lang="tpi"] .site-head .wrap{gap:8px}html[lang="tpi"] .nav-desktop>a:not(.btn){padding-inline:6px;white-space:nowrap}html[lang="tpi"] .nav-desktop>a[aria-current="page"]:not(.btn)::after{left:6px;right:6px}html[lang="tpi"] .brand{flex:none}}

/* Chinese home and consulting pages: the big headline broke in the middle of a word (黄金开采，有据可 / 查。).
   The two lines are now balanced, so it breaks after the comma. */
html[lang="zh-Hans"] .cover--home .cover-line,html[lang="zh-Hans"] .cover--consult .cover-line{text-wrap:balance}
/* Chinese mining page: the headline broke inside the word 服务 (黄金开采，全流程服 / 务。). In Chrome, Edge, Samsung
   Internet and Firefox it now breaks after the comma. Safari's engine handles this setting differently, so it is left out there. */
@supports not (font:-apple-system-body){html[lang="zh-Hans"] .cover--interior .cover-line{word-break:keep-all;overflow-wrap:anywhere}}

/* Consulting pages, booking band: the small "Book now" label was dark olive on dark red and almost invisible.
   It now uses the bright gold of the other dark bands. */
.book .kicker{color:var(--gold-bright)}

/* Governance page on screens wider than 1200 px: the two beige sections stopped at the content column and floated in
   white. Their colour now runs to both screen edges, like the bands on every other page (paint only, layout unchanged). */
@media screen and (min-width:1201px){.gov-layout .section--mist{border-image:linear-gradient(var(--mist) 0 0) fill 0/0/0 100vmax}}

/* Mining page on screens 1200 px and wider: the last row of the 14 project stages did not line up with the rows above. */
@media (min-width:1200px){.fflow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}.fnode{max-width:none}}

/* "Full service" package pop-up on 320 px phones: the long title pushed the gold tag out of the top of the pop-up.
   The photo header now grows with its text; at every other size it is exactly as before. */
.pm-hero{height:auto;min-height:clamp(200px,30vw,270px);display:flex;flex-direction:column;justify-content:flex-end}
.pm-hero>picture{position:absolute;inset:0}
.pm-hero-txt{position:relative;left:auto;right:auto;bottom:auto;margin:16px 74px 20px 26px}
@media (max-width:599.98px){.pm-hero-txt{margin:16px 64px 20px 18px}}
