/* Shared presentation layer. Loaded after the legacy component stylesheet. */
:root {
  --ink: #172a2b;
  --muted: #617071;
  --line: #e1e6e3;
  --accent: #d4a64e;
  --accent-2: #176b61;
  --shadow: 0 12px 36px rgba(28, 51, 45, .06);
  font-family: "Segoe UI", Arial, sans-serif;
}
html body, html body.access-home-body {
  background: #f7f8f5 !important;
  background-attachment: scroll !important;
  -webkit-font-smoothing: antialiased;
}
body::before, body::after, .site-header + main::before { display: none; }
body .site-header.site-header {
  position: relative;
  z-index: 30;
  min-height: 82px !important;
  padding: 16px max(24px, calc((100% - 1180px) / 2)) !important;
  column-gap: 28px !important;
  background: #fff !important;
}
body .site-header.site-header .brand { gap: 10px !important; letter-spacing: -.04em; text-transform: none; }
body .site-header.site-header .brand img { width: 38px; height: 38px; border-radius: 8px !important; padding: 4px; background: #f0f2ee; }
body .site-header.site-header .brand span { font-size: 1.45rem; font-weight: 700; }
body .site-header.site-header .brand small { display: block !important; margin: 4px 0 0 !important; border: 0; padding: 0; font-size: .57rem !important; letter-spacing: .12em; }
body .site-header.site-header nav { gap: 3px !important; flex-wrap: nowrap; }
body .site-header.site-header nav a { padding: 10px 11px !important; font-size: .86rem; font-weight: 600; }
body .site-header.site-header nav a[aria-current="page"] { color: #176b61 !important; background: #edf4f0 !important; box-shadow: none !important; }
body .header-actions { gap: 12px; }
body .header-actions .language-picker select { width: 112px; min-height: 42px; font-weight: 500; letter-spacing: 0; }
body .header-actions .nav-login { min-height: 42px; padding: 10px 24px; border-radius: 8px; box-shadow: none; font-weight: 650; }
body .btn { min-height: 46px; border-radius: 8px; font-weight: 650; box-shadow: none; }
body .btn:hover { transform: translateY(-1px); }
body :is(a, button, select, input, textarea):focus-visible { outline: 3px solid #26786d; outline-offset: 3px; }
body .badge { font-size: .65rem; letter-spacing: .12em; font-weight: 700; padding: 7px 11px; }
body .page-shell { width: min(1180px, calc(100% - 48px)) !important; margin: 52px auto 64px !important; }
body .hero-split { gap: 24px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 460px; }
body .hero-copy { padding: clamp(28px, 4vw, 48px); border-radius: 16px !important; }
body .hero-copy h1 { font-size: clamp(2.2rem, 3.65vw, 3.6rem) !important; line-height: 1.12 !important; letter-spacing: -.045em !important; margin: 20px 0; text-wrap: balance; }
body .hero-copy .lead { font-size: 1rem !important; line-height: 1.75; }
body .visual-card { border-radius: 16px !important; min-width: 0; }
body .visual-card::after { background: linear-gradient(180deg, transparent 15%, rgba(10,34,29,.92) 100%) !important; }
body .visual-card-overlay { padding: 28px; }
body .visual-card .visual-card-overlay strong { color: #fff; }
body .visual-card .visual-card-overlay p { color: #e0e9e4 !important; }
body .visual-card-overlay strong { font-size: 1.3rem; line-height: 1.4; }
body .endpoint-grid { gap: 20px; margin-top: 24px; }
body .endpoint-card { padding: 28px; min-height: 0 !important; border-radius: 12px !important; box-shadow: 0 3px 14px rgba(28,51,45,.035) !important; }
body .endpoint-card h2 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -.025em; }
body .endpoint-card p { font-size: .95rem; line-height: 1.7; }
body .endpoint-card.plan { display: flex; flex-direction: column; align-items: flex-start; }
body .endpoint-card.plan .btn { margin-top: auto; }
body .endpoint-card.plan p { margin-bottom: 28px; }
body .window-grid, body .split-panel { gap: 24px; }
body .api-window, body .content-band { border-radius: 14px !important; }
body .page-shell.narrow { max-width: 520px; margin-block: 64px 80px !important; }
body .auth-window .window-chrome { padding: 24px 28px; }
body .auth-window .window-chrome b { font-size: 1.35rem; margin-left: 0; letter-spacing: -.025em; }
body .auth-window .window-chrome .dot, body .auth-window .window-chrome em { display: none; }
body .auth-window .form-grid { padding: 28px; gap: 22px; }
body .form-grid label { font-size: .88rem; font-weight: 600; gap: 9px; }
body .form-grid input { min-height: 48px; }

/* Focused document access: a single, balanced two-column panel. */
html body.access-home-body .access-scene {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  width: min(1180px, calc(100% - 48px)) !important;
  min-height: 500px;
  margin: 64px auto 72px !important;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(28,51,45,.065);
}
html body.access-home-body .access-card,
html body.access-home-body .access-art {
  min-height: 500px;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: none;
}
body .access-card::before { display: none; }
html body.access-home-body .access-card-inner {
  min-height: 500px;
  padding: 52px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: start;
}
html body.access-home-body .access-card h1 {
  max-width: 12ch;
  margin: 22px 0 18px;
  font-size: clamp(2.7rem, 3.6vw, 3.5rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -.05em !important;
  font-weight: 650;
  text-wrap: balance;
}
html body.access-home-body .lead { max-width: 37ch; font-size: 1rem !important; line-height: 1.7; }
html body.access-home-body .home-code-form { margin: 28px 0 0; max-width: none; }
html body.access-home-body .home-code-row.floating-code-field { grid-template-columns: minmax(0, 1fr) 108px !important; gap: 12px !important; }
html body.access-home-body .home-code-row.floating-code-field .code-input-shell {
  height: 64px !important;
  min-height: 64px !important;
  border: 1px solid #aebdb6 !important;
  background: #fbfcfa !important;
  border-radius: 9px !important;
}
html body.access-home-body .home-code-row.floating-code-field .code-input-shell:focus-within { border-color: #176b61 !important; box-shadow: 0 0 0 3px #176b611a !important; }
html body.access-home-body .home-code-row.floating-code-field .code-input-shell .floating-code-label,
html body.access-home-body .home-code-row.floating-code-field .code-input-shell:focus-within .floating-code-label,
html body.access-home-body .home-code-row.floating-code-field .code-input-shell.has-value .floating-code-label {
  position: absolute !important;
  inset: 10px auto auto 16px !important;
  transform: none !important;
  translate: none !important;
  padding: 0 !important;
  width: auto !important;
  color: #586b63 !important;
  font-size: .7rem !important;
  font-weight: 600 !important;
  letter-spacing: .02em !important;
  line-height: 1.2 !important;
}
html body.access-home-body .home-code-row.floating-code-field #homeAccessCode { padding: 28px 16px 8px !important; height: 62px !important; font-size: 1.3rem !important; letter-spacing: .16em !important; text-align: start !important; }
html body.access-home-body .home-code-row.floating-code-field .btn { height: 64px !important; min-height: 64px !important; border-radius: 9px !important; }
html body.access-home-body .home-code-row.floating-code-field .input-help { color: #617071 !important; font-size: .75rem !important; font-weight: 400 !important; text-align: start; line-height: 1.5 !important; }
body .access-assistance { display: flex; align-items: center; gap: 8px; margin: 28px 0 0; color: var(--muted); font-size: .8rem; }
body .access-assistance a { color: #176b61; text-decoration: underline; text-underline-offset: 3px; }
html body.access-home-body .access-art { display: block; position: relative; overflow: hidden; background: #173e36 !important; }
body .access-art-photo { opacity: .9 !important; object-position: center; filter: none; }
body .access-art::after { background: linear-gradient(180deg, rgba(11,39,32,.04) 20%, rgba(11,39,32,.87) 100%) !important; }
body .art-story { position: absolute; inset: auto 36px 36px; z-index: 3; color: #fff; }
body .art-story span { color: #f1d499; text-transform: uppercase; letter-spacing: .16em; font-size: .65rem; font-weight: 700; }
body .art-story h2 { color: #fff; font-size: clamp(1.8rem, 2.8vw, 2.5rem); line-height: 1.15; letter-spacing: -.035em; font-weight: 550; margin: 14px 0; max-width: 13ch; }
body .art-story p { color: #e0e9e4; line-height: 1.65; font-size: .9rem; max-width: 35ch; margin: 0; }

/* Compact, readable footer shared across public and account pages. */
html body .site-footer { margin-top: 0 !important; background: #fff !important; }
body .site-footer-shell { width: min(1180px, calc(100% - 48px)) !important; grid-template-columns: 1fr 1.65fr; gap: 40px 64px; padding: 44px 0 24px !important; }
body .footer-brand { text-transform: none; letter-spacing: -.02em; }
body .footer-brand span { font-size: 1.2rem; }
body .footer-brand img { border-radius: 8px !important; }
body .footer-brand small { font-size: .6rem; letter-spacing: .1em; margin-top: 5px; }
body .footer-brand-panel p { max-width: 35ch; font-size: .85rem; line-height: 1.8; }
body .footer-contact-link { font-size: .84rem; font-weight: 600; }
body .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
body .footer-nav-group { gap: 2px; }
body .footer-nav-group h2 { font-size: .64rem !important; margin-bottom: 12px; color: #617071; letter-spacing: .12em !important; }
html body .site-footer .footer-nav-group a { padding: 7px 0 !important; margin: 0; border: 0; box-shadow: none; background: transparent; text-align: start; font-size: .83rem; font-weight: 500; min-height: 32px !important; }
body .footer-bottom { padding-top: 22px; font-size: .73rem; gap: 10px; color: var(--muted); }

@media (max-width: 1100px) {
  body .site-header.site-header { padding: 16px 24px !important; }
  body .site-header.site-header .mobile-menu-toggle { grid-row: 1; width: 44px; height: 44px; border-radius: 9px !important; }
  body .site-header.site-header nav { grid-row: 2; padding-top: 14px !important; }
  body .header-actions { grid-row: 3; width: 100%; justify-self: stretch; padding: 14px 0 4px; }
  body .header-actions .language-picker { border: 0; padding: 0; }
  html body.access-home-body .access-card-inner { padding: 36px !important; }
  body .site-footer-shell { grid-template-columns: 1fr; gap: 32px; }
  body .footer-brand-panel p { max-width: 55ch; }
}
@media (max-width: 800px) {
  html body.access-home-body .access-scene { min-height: auto; margin: 36px auto 44px !important; grid-template-columns: 1fr; }
  html body.access-home-body .access-card, html body.access-home-body .access-card-inner { min-height: auto; }
  html body.access-home-body .access-card-inner { padding: 40px !important; }
  html body.access-home-body .access-art { display: none; }
  html body.access-home-body .access-card h1 { max-width: 15ch; }
  body .hero-split { grid-template-columns: minmax(0,1fr); min-height: auto; }
  body .hero-split .visual-card { min-height: 380px; }
  body .endpoint-grid, body .window-grid, body .split-panel { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 560px) {
  body .site-header.site-header { min-height: 72px !important; padding: 12px 20px !important; }
  body .site-header.site-header .brand small { display: none !important; }
  body .page-shell { width: calc(100% - 32px) !important; margin: 28px auto 40px !important; }
  body .hero-copy { padding: 28px; }
  body .hero-copy h1 { font-size: 2.25rem !important; }
  body .hero-split .visual-card { min-height: 360px; }
  body .hero-actions { gap: 10px; }
  body .hero-actions .btn { flex: 1 1 auto; }
  body .endpoint-card { padding: 24px; }
  body .page-shell.narrow { margin-block: 32px 44px !important; }
  body .auth-window .form-grid, body .auth-window .window-chrome { padding: 24px; }
  html body.access-home-body .access-scene { width: calc(100% - 32px) !important; margin: 28px auto 36px !important; border-radius: 16px; }
  html body.access-home-body .access-card-inner { padding: 32px 24px !important; }
  html body.access-home-body .access-card h1 { margin-block: 20px 16px; font-size: 2.5rem !important; }
  html body.access-home-body .lead { font-size: .95rem !important; }
  html body.access-home-body .home-code-row.floating-code-field { grid-template-columns: 1fr !important; grid-template-areas: "field" "button" "help"; }
  html body.access-home-body .home-code-row.floating-code-field .btn { height: 52px !important; min-height: 52px !important; }
  body .access-assistance { margin-top: 24px; flex-wrap: wrap; }
  body .site-footer-shell { width: calc(100% - 40px) !important; padding: 32px 0 24px !important; gap: 28px; }
  body .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px 20px; }
  html body .site-footer .footer-nav-group a { min-height: 40px !important; display: flex; align-items: center; }
  body .footer-bottom { flex-direction: column; line-height: 1.6; }
}
html[dir="rtl"] body.access-home-body .home-code-row.floating-code-field .code-input-shell .floating-code-label { inset: 10px 16px auto auto !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body *, body *::before, body *::after { animation: none !important; transition: none !important; }
}
