/* Archon mechanical fixes — 2026-10-31. Loaded last on every page.
   No wording changes; layout, mobile and consistency fixes only. */

/* -1. iPhone Safari: stop automatic text enlargement in landscape */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* 0. Skip link: hidden until focused with the keyboard (homepage lacked this rule) */
.skip-link{position:absolute!important;left:10px;top:-80px!important;z-index:100;background:#fff;padding:10px 14px;border-radius:4px}
.skip-link:focus{top:10px!important}

/* 1. Homepage body text uses the same typeface as the interior pages */
body.homepage,.homepage{font-family:'DM Sans',Arial,sans-serif}
.homepage .proof-item h3{font-family:Manrope,Arial,sans-serif}

/* 2. Keep hyphenated words (AI-enabled, co-authored, go-to-market…) on one line */
.nw{white-space:nowrap}

/* 3. Media list and About timeline align to the shared content grid */
body.archon-structure-review #media-library .media-list,#media-library .media-list{width:100%!important;max-width:1172px!important;margin-right:0!important}
body.archon-structure-review .timeline,.timeline{width:100%!important;max-width:1172px!important}

/* 4. Footer: contact line */
.footer .footer-bottom,.homepage .footer .footer-bottom{display:flex!important;flex-wrap:wrap!important;justify-content:space-between!important;gap:6px 24px!important}
.footer .footer-contact a{display:inline!important;margin:0!important}
.footer .footer-nav-links a{white-space:nowrap}

/* 5. Short pages: no empty band below the footer */
html{min-height:100%}
body{min-height:100vh;display:flex;flex-direction:column}
body>main{flex:1 0 auto;display:flex;flex-direction:column}
body>main>section:last-child{flex:1 0 auto}

/* 6. Menu button: hidden on desktop, working drop-down menu on phones and tablets */
.menu-toggle{display:none}
@media (max-width:900px){
  .header,.homepage .header{position:relative!important}
  .header .header-inner,.homepage .header .navwrap{position:static!important;flex-wrap:nowrap!important;justify-content:space-between!important;align-items:center!important;min-height:72px}
  .header .menu-toggle,.homepage .header .menu-toggle{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:46px;height:42px;padding:0;border:1px solid #cfe0dc;border-radius:6px;background:#fff;cursor:pointer;flex:0 0 auto}
  .header .menu-toggle span{display:block;width:20px;height:2px;border-radius:1px;background:#0b5d66!important;transition:transform .18s,opacity .18s}
  .header .menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .header .menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
  .header .menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .header .nav,.homepage .header .nav{display:none!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;width:auto!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:4px 20px 12px!important;background:#fff!important;border-top:1px solid #e3ebe9!important;box-shadow:0 14px 26px rgba(6,27,41,.14)!important;overflow:visible!important;white-space:normal!important;z-index:60!important}
  .header .nav.open,.homepage .header .nav.open{display:flex!important}
  .header .nav a,.homepage .header .nav a{display:block!important;padding:13px 4px!important;font-size:1rem!important;border:0!important;border-bottom:1px solid #edf2f1!important}
  .header .nav a:last-child{border-bottom:0!important}
  .header .nav a.active,.header .nav a[aria-current="page"]{color:#0b6b74!important}
}

/* 7. Services: on phones the picture sits above the text instead of shrinking beside it */
@media (max-width:600px){
  .v12-service-list .v12-service-panel,.v12-service-list .v12-service-panel:nth-child(even){grid-template-columns:1fr!important;gap:14px!important;padding:16px!important;align-items:start!important}
  .v12-service-list .v12-service-panel .v12-service-icon,.v12-service-list .v12-service-panel:nth-child(even) .v12-service-icon{width:100%!important;height:auto!important;aspect-ratio:16/9;border-radius:10px!important;overflow:hidden;background:none!important}
  .v12-service-list .v12-service-panel .v12-service-icon img,.v12-service-list .v12-service-icon.is-graphic img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:10px}
}

/* 8. Wide infographics: readable on phones by swiping sideways */
.wide-scroll{width:100%}
.wide-scroll-hint{display:none}
@media (max-width:700px){
  .wide-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  .wide-scroll>img{width:880px!important;max-width:none!important;height:auto!important}
  .wide-scroll-hint{display:block;margin:6px 0 0;font-size:.74rem;color:#5d7680;text-align:center}
}

/* 9. Phones/tablets: homepage section intros use one consistent size (matches "From product positioning…") */
@media (max-width:900px){
  .homepage .homepage-global .lead2,.homepage .homepage-leadership .lead2{font-size:13.44px!important;line-height:1.6!important}
}

/* 10. Footer bottom line: copyright and contact share one line whenever there is room (e.g., phone landscape) */
@media (max-width:900px){
  .footer .footer-bottom,.homepage .footer .footer-bottom{flex-direction:row!important;align-items:baseline!important;font-size:12px!important}
  .footer .footer-bottom>span{white-space:nowrap}
}
@media (max-width:600px){
  .footer .footer-bottom>span{white-space:normal}
}

/* 11. Phone/tablet menu: current page = teal, bold, word-only underline (no full-width bar) */
@media (max-width:900px){
  .header .nav a.active,.header .nav a[aria-current="page"],.homepage .header .nav a.active,
  .header .nav a:hover,.homepage .header .nav a:hover{border-bottom-color:#edf2f1!important}
  .header .nav a.active:after,.header .nav a[aria-current="page"]:after,.homepage .header .nav a.active:after{display:none!important}
  .header .nav a.active,.header .nav a[aria-current="page"],.homepage .header .nav a.active{font-weight:800!important;color:#0b6b74!important;text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:6px!important}
}

/* 12. Uniform hero description: one line, same size/width on every page */
@media (min-width:901px){html body section.hero .wrap h1 + p.lead,html body.interior section.hero.page-hero .wrap .hero-content h1 + p.hero-lead,html body section.hero.page-hero .wrap .hero-content h1 + p.hero-lead{font-size:16px!important;max-width:1080px!important;width:auto!important}
html body section.hero.v12-hero .wrap.hero-grid{grid-template-columns:minmax(0,1fr)!important}}

/* 13. Shorter page banners (desktop): 200px -> 170px */
@media (min-width:721px){
html body main > section.hero.page-hero.page-hero.page-hero{height:170px!important;min-height:170px!important;max-height:170px!important}
html body main > section.hero.page-hero.page-hero.page-hero > .wrap.wrap{height:170px!important;min-height:170px!important;max-height:170px!important}
html body main > section.hero.page-hero.page-hero.page-hero .hero-content.hero-content{padding-top:0!important;padding-bottom:0!important}
html body.homepage main > section.hero.v12-hero.v12-hero.v12-hero,html body.homepage main > section.hero.v12-hero.v12-hero.v12-hero .hero-grid.hero-grid{height:170px!important;min-height:170px!important;max-height:170px!important}
}

/* 14. Homepage closing band: same quiet style as Ecosystems */
html body section.homepage-cta.homepage-cta{background:#e5f3ee!important;padding:20px 0!important}
html body section.homepage-cta.homepage-cta .cta-inline h2{margin:0!important;font-size:1.1rem!important;font-weight:700!important;letter-spacing:0!important;text-wrap:balance}
html body section.homepage-cta.homepage-cta .cta-button{display:inline-flex!important;align-items:center!important;min-height:38px!important;padding:8px 18px!important;border-radius:6px!important;background:#168d8c!important;color:#fff!important;font-weight:700!important;font-size:.85rem!important;text-decoration:none!important;white-space:nowrap!important;box-shadow:none!important}
html body section.homepage-cta.homepage-cta .cta-button:hover{background:#0b6f7a!important}
@media (max-width:700px){html body section.homepage-cta.homepage-cta .cta-inline{gap:14px!important}}

/* 15. Expertise value-chain graphic: slightly smaller on desktop; fits iPhone landscape */
@media (min-width:901px){#trusted-digital-value-chain .archon-visual-figure.archon-visual-figure{max-width:90%!important;margin-left:auto!important;margin-right:auto!important}}
@media (orientation:landscape) and (max-height:500px){#trusted-digital-value-chain .archon-visual-figure.archon-visual-figure{max-width:none!important;width:auto!important;text-align:center}
#trusted-digital-value-chain .archon-visual-figure img{width:auto!important;max-width:100%!important;max-height:calc(100vh - 40px)!important;margin:0 auto!important}}

/* 16. No single-word last lines: balance headings, avoid widows in text */
html body main h1,html body main h2,html body main h3{text-wrap:balance}
html body main p,html body main li{text-wrap:pretty}
