/* Shared PHP shell, matching ftp_predloha/shared without client-side templates. */
.reference-shell {
  display: block;
  font-family: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #f4f7f4;
  background: #101f18;
  --shell: min(1180px, calc(100% - 48px));
}

.top-navigation.reference-shell {
  z-index: 1000;
  background: #101f18;
  box-shadow: none;
  backdrop-filter: none;
}
.footer.reference-shell { color: #b7c7bf; background: #0a1914; }

.reference-shell .site-header { min-height: 92px; gap: 24px; }
.reference-shell .desktop-nav { justify-content: center; gap: 24px; flex-wrap: wrap; }
.reference-shell .desktop-nav a { white-space: nowrap; }
.reference-shell .brand { position: relative; flex-direction: column; align-items: flex-start; }
.reference-shell .header-actions { gap: 12px; }
.reference-shell .language-menu summary { min-width: 56px; min-height: 44px; }
.reference-shell .product-shortcuts { margin: 0 auto; min-height: 44px; }
.reference-shell .mobile-menu-panel {
  max-height: calc(100dvh - 110px);
  overflow: auto;
  max-width: calc(100vw - 32px);
  overscroll-behavior: contain;
}
.reference-shell .mobile-language-links {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  border-top: 1px solid #7a8d8140;
  margin-top: 8px;
  padding-top: 10px;
}
.reference-shell .mobile-language-links a {
  flex: 1;
  min-width: 38px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 6px;
}
.reference-shell .mobile-language-links a[aria-current="page"] {
  background: #a8e4c8;
  color: #13241e;
  border-radius: 8px;
}
.reference-shell .mobile-products {
  border-top: 1px solid #7a8d8140;
  margin-top: 10px;
  padding-top: 10px;
  display: grid;
  gap: 2px;
}
.reference-shell .mobile-products a { font-size: 12px !important; min-height: 40px; }

.reference-shell .restime-footer-lead__inner { width: var(--shell); }
.reference-shell .restime-footer-lead h2 { font-weight: 750; }
.reference-shell .restime-footer-submit { display: flex; align-items: center; justify-content: center; gap: 10px; }
.reference-shell .footer-main { padding-block: 32px; }
.reference-shell .footer-bottom { padding-bottom: 84px; }
.reference-shell .footer-legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
@media (min-width: 701px) {
  .reference-shell .footer-bottom {
    grid-template-columns: minmax(0, 1fr) repeat(3, auto);
    column-gap: 24px;
  }
}
.reference-shell address { line-height: 1.65; }
.reference-shell .restime-footer-lead__copy p,
.reference-shell .restime-footer-note { font-size: 1rem; line-height: 1.65; }
.reference-shell .restime-footer-field > span { font-size: .75rem; line-height: 1.5; }
.reference-shell .restime-footer-field input { min-height: 48px; font-size: 1rem; }

.shared-arrow {
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}
.shared-arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="light"] .reference-shell { color: #13241e; background: #f4f7f4; }
html[data-theme="light"] .footer.reference-shell { color: #52655c; background: #fff; }
html[data-theme="contrast"] .reference-shell { background: #000; color: #fff; --mint: #ffe600; }
html[data-theme="contrast"] .top-navigation.reference-shell { border-bottom: 2px solid #fff; }
.reference-shell :is(a, button, summary, input):focus-visible { outline: 3px solid #45bb88; outline-offset: 4px; }
html[data-theme="contrast"] .reference-shell :is(a, button, summary):focus-visible { outline-color: #ffe600; }

/* The exported pages and the reference shell share these readability rules. */
.site-content:not(.admin-main) :is(p, li) { line-height: 1.65; }
.site-content:not(.admin-main) :is(.hero-lead, .hero-intro, .section-intro > p, .section-heading > p, .marketing-hero-copy > p) { max-width: 65ch; }
.site-content:not(.admin-main) :is(.eyebrow, .kicker, .marketing-kicker, .section-kicker) { font-size: .75rem; line-height: 1.5; }
.site-content:not(.admin-main) :is(.feature-grid, .process-grid, .pricing-grid, .module-grid, .industry-grid) > * { min-width: 0; }
.site-content:not(.admin-main) :is(.feature-card, .step-card, .process-grid article, .feature-grid article) p { font-size: 1rem; line-height: 1.65; }
.site-content:not(.admin-main) :is(.hero-actions, .sales-prompt-actions, .final-cta-buttons) { gap: 16px; }
.site-content:not(.admin-main) :is(.hero-fineprint, .hero-proof span, .hero-proof li, .estimate-note, .source-note) { font-size: .875rem; line-height: 1.6; }
.site-content:not(.admin-main) :is(.hero-proof, .hero-fineprint) { text-wrap: pretty; }
.site-content:not(.admin-main) :is(h1, h2, h3) { overflow-wrap: anywhere; }
.site-content:not(.admin-main) :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #45bb88; outline-offset: 5px; }
html[data-text-size]:not([data-text-size="normal"]) .site-content:not(.admin-main) :is(h1, h2, h3, p, a, button, label) { overflow-wrap: anywhere; }

/* The display panel is shared by every public route, outside the main content. */
.display-controls {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 1100;
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
  font-size: .875rem;
  color: #f4f7f4;
  line-height: 1.5;
}
.display-controls details { position: relative; }
.display-controls summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid #789285;
  border-radius: 999px;
  background: #14271f;
  color: #fff;
  min-height: 48px;
  padding: 10px 16px;
  display: flex;
  gap: 9px;
  align-items: center;
  box-shadow: 0 4px 20px #0003;
}
.display-controls summary::-webkit-details-marker { display: none; }
.display-controls .display-panel {
  position: absolute;
  left: 0;
  bottom: 60px;
  background: #14271f;
  border: 1px solid #789285;
  border-radius: 18px;
  padding: 18px;
  width: 280px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 100px);
  overflow: auto;
  display: block;
  box-shadow: 0 12px 40px #0005;
}
.display-controls h2 { font-size: 17px; margin: 0 0 14px; letter-spacing: normal; }
.display-controls .display-modes { display: grid; gap: 8px; }
.display-controls button,
.display-controls .theme-control,
.display-controls .theme-control:last-child,
.display-controls .text-size-control {
  font: inherit;
  cursor: pointer;
  color: #fff;
  background: transparent;
  border: 1px solid #789285;
  border-radius: 10px;
  min-height: 44px;
  height: auto;
  width: auto;
  padding: 10px 12px;
  text-align: left;
  display: block;
}
.display-controls button[aria-pressed="true"] { background: #a8e4c8; color: #13241e; border-color: #a8e4c8; }
.display-controls .display-sizes { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.display-controls .display-sizes button { text-align: center; flex: 1; }
.display-controls output { min-width: 44px; text-align: center; }
.display-controls button:disabled { cursor: not-allowed; opacity: .38; }
html[data-theme="light"] .display-controls :is(summary, .display-panel) { background: #fff; color: #13241e; }
html[data-theme="light"] .display-controls button { color: #13241e; }
html[data-theme="contrast"] .display-controls :is(summary, .display-panel) { background: #000; color: #fff; border: 2px solid #fff; }
html[data-theme="contrast"] .display-controls button { color: #fff; border-color: #fff; }
html[data-theme="contrast"] .display-controls button[aria-pressed="true"] { background: #ffe600; color: #000; }
.display-controls :is(button, summary):focus-visible { outline: 3px solid #45bb88; outline-offset: 3px; }

@media (max-width: 1080px) {
  .reference-shell { --shell: min(820px, calc(100% - 40px)); }
  .reference-shell :is(.desktop-nav, .header-actions, .product-shortcuts) { display: none; }
  .reference-shell .mobile-menu { display: block; }
  .reference-shell .site-header { grid-template-columns: 1fr auto; }
  .top-navigation.reference-shell + .top-navigation-spacer { height: 92px; }
}
@media (max-width: 700px) {
  .site-content:not(.admin-main) :is(.section, .marketing-section) { padding-top: 56px; padding-bottom: 56px; }
  .site-content:not(.admin-main) :is(.hero-actions, .final-cta-buttons) { flex-wrap: wrap; }
  .site-content:not(.admin-main) :is(.button, .primary-button, .marketing-primary, .marketing-secondary) { min-height: 48px; white-space: normal; overflow-wrap: anywhere; text-align: center; }
  .site-content:not(.admin-main) :is(.sales-prompt-actions, .hero-actions) > * { min-width: 0; max-width: 100%; }
  .site-content:not(.admin-main) :is(.feature-card, .step-card, .process-grid article, .feature-grid article) { padding: 24px; }
  .site-content:not(.admin-main) :is(h1, h2, h3) { overflow-wrap: anywhere; text-wrap: pretty; }
  .site-content:not(.admin-main) :is(.hero-proof span, .hero-proof li) { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .reference-shell { --shell: calc(100% - 28px); }
  .reference-shell .site-header { min-height: 78px; }
  .top-navigation.reference-shell + .top-navigation-spacer { height: 78px; }
  .reference-shell .brand img { width: 150px; }
  .reference-shell .restime-footer-lead__inner { gap: 32px; }
  .reference-shell .footer-main { gap: 24px; }
  .reference-shell .footer-bottom { gap: 18px; }
  .reference-shell .mobile-menu-panel { right: 0; }
  .reference-shell .restime-footer-submit { min-height: 52px; }
  .reference-shell .restime-footer-lead h2 { overflow-wrap: anywhere; }
  .display-controls summary { width: 48px; padding: 0; justify-content: center; }
  .display-controls .toggle-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .site-content:not(.admin-main) *, .reference-shell * { animation: none !important; transition: none !important; }
}

/* Vector masks keep decorative arrows independent of platform emoji fonts. */
:root {
  --restime-icon-arrow-ne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13 13 3M4 3h9v9' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --restime-icon-arrow-e: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h12M9 3l5 5-5 5' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --restime-icon-arrow-ne-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='17.5' fill='none' stroke='black'/%3E%3Cpath d='M10 26 26 10M17 10h9v9' fill='none' stroke='black' stroke-width='1'/%3E%3C/svg%3E");
}

/* Thin circular directional arrows shared across RESTIME sites. */
/* Reserve hero icon geometry before the optional JS arrow normalizer runs. */
:is(.restime-round-arrow.restime-round-arrow, :where(.product-hero-actions) a > span[aria-hidden="true"], .detail-image-action) {
  --restime-arrow-angle:0deg;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  position:relative!important;
  box-sizing:border-box!important;
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  min-height:36px!important;
  flex:0 0 36px!important;
  padding:0!important;
  border:1px solid currentColor!important;
  border-radius:50%!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:0!important;
  line-height:0!important;
  vertical-align:middle!important;
  transform:rotate(var(--restime-arrow-angle))!important;
}
:is(.restime-round-arrow.restime-round-arrow, :where(.product-hero-actions) a > span[aria-hidden="true"], .detail-image-action)::before {
  content:""!important;
  position:absolute!important;
  display:block!important;
  top:50%!important;
  left:50%!important;
  width:64%!important;
  height:1px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:currentColor!important;
  transform:translate(-50%,-50%) rotate(-45deg)!important;
}
:is(.restime-round-arrow.restime-round-arrow, :where(.product-hero-actions) a > span[aria-hidden="true"], .detail-image-action)::after {
  content:""!important;
  position:absolute!important;
  display:block!important;
  top:27%!important;
  left:55%!important;
  width:18%!important;
  height:18%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-top:1px solid currentColor!important;
  border-right:1px solid currentColor!important;
  border-radius:0!important;
  background:transparent!important;
  transform:none!important;
}
.restime-round-arrow[data-restime-direction=e]{--restime-arrow-angle:45deg}
.restime-round-arrow[data-restime-direction=se]{--restime-arrow-angle:90deg}
.restime-round-arrow[data-restime-direction=s]{--restime-arrow-angle:135deg}
.restime-round-arrow[data-restime-direction=sw]{--restime-arrow-angle:180deg}
.restime-round-arrow[data-restime-direction=w]{--restime-arrow-angle:225deg}
.restime-round-arrow[data-restime-direction=nw]{--restime-arrow-angle:270deg}
.restime-round-arrow[data-restime-direction=n]{--restime-arrow-angle:315deg}
/* Overlay arrows stay outside the image's flow, including before JS scans it. */
.detail-image-action.detail-image-action { position:absolute!important; }
.gateway-arrow.restime-round-arrow{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;flex-basis:48px!important}
@media(max-width:700px){
  :is(.restime-round-arrow.restime-round-arrow, :where(.product-hero-actions) a > span[aria-hidden="true"], .detail-image-action){width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;flex-basis:30px!important}
  .gateway-arrow.restime-round-arrow{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;flex-basis:36px!important}
}

.restime-replaced-before::before,.restime-replaced-after::after{content:none!important;display:none!important}

/* Explicit shell colours keep the exported page styles from tinting controls. */
html[data-theme="light"] .reference-shell .desktop-nav a,
html[data-theme="light"] .reference-shell .product-shortcuts a,
html[data-theme="light"] .reference-shell .mobile-menu-panel a,
html[data-theme="light"] .reference-shell .language-menu-panel a { color:#405249!important; }
html[data-theme="light"] .reference-shell .site-header { border-color:#13241e26; }
html[data-theme="light"] .reference-shell .product-shortcuts { border-color:#13241e26; }
html[data-theme="light"] .reference-shell .language-menu > summary { color:#13241e!important; background:transparent!important; border-color:#789285!important; }
html[data-theme="light"] .reference-shell .language-menu-panel,
html[data-theme="light"] .reference-shell .mobile-menu-panel { background:#fff!important; border-color:#c7d2cc!important; }
html[data-theme="light"] .reference-shell .mobile-menu summary { color:#13241e!important; border-color:#789285!important; }
html[data-theme="light"] .reference-shell .mobile-menu summary span { background:#13241e!important; }
html[data-theme="light"] .reference-shell .desktop-nav a:hover,
html[data-theme="light"] .reference-shell .product-shortcuts a:hover { color:#0d4f39!important; }
html[data-theme="light"] .reference-shell .language-menu-panel a:hover,
html[data-theme="light"] .reference-shell .mobile-menu-panel a:hover { color:#13241e!important; background:#e5f5ed!important; }
html[data-theme="light"] .reference-shell .language-menu-panel a[aria-current="page"],
html[data-theme="light"] .reference-shell .mobile-language-links a[aria-current="page"] { color:#fff!important; background:#176c4d!important; }

html[data-theme="contrast"] .reference-shell .site-header,
html[data-theme="contrast"] .reference-shell .product-shortcuts { border-color:#fff!important; }
html[data-theme="contrast"] .reference-shell a { color:#ffe600!important; }
html[data-theme="contrast"] .reference-shell .language-menu > summary,
html[data-theme="contrast"] .reference-shell .mobile-menu summary { color:#fff!important; background:#000!important; border-color:#fff!important; }
html[data-theme="contrast"] .reference-shell .mobile-menu summary span { background:#fff!important; }
html[data-theme="contrast"] .reference-shell .language-menu-panel,
html[data-theme="contrast"] .reference-shell .mobile-menu-panel { color:#fff!important; background:#000!important; border-color:#fff!important; }
html[data-theme="contrast"] .reference-shell .language-menu-panel a[aria-current="page"],
html[data-theme="contrast"] .reference-shell .mobile-language-links a[aria-current="page"] { color:#000!important; background:#ffe600!important; }

.display-controls .display-modes .theme-control,
.display-controls .display-sizes .text-size-control { color:#fff!important; background:transparent!important; border:1px solid #789285!important; }
.display-controls .display-modes .theme-control[aria-pressed="true"] { color:#13241e!important; background:#a8e4c8!important; border-color:#a8e4c8!important; }
html[data-theme="light"] .display-controls .display-modes .theme-control,
html[data-theme="light"] .display-controls .display-sizes .text-size-control { color:#13241e!important; background:transparent!important; border-color:#789285!important; }
html[data-theme="light"] .display-controls .display-modes .theme-control[aria-pressed="true"] { color:#fff!important; background:#176c4d!important; border-color:#176c4d!important; }
html[data-theme="contrast"] .display-controls .display-modes .theme-control,
html[data-theme="contrast"] .display-controls .display-sizes .text-size-control { color:#fff!important; background:#000!important; border-color:#fff!important; }
html[data-theme="contrast"] .display-controls .display-modes .theme-control[aria-pressed="true"] { color:#000!important; background:#ffe600!important; border-color:#ffe600!important; }
html[data-theme="contrast"] .display-controls :is(summary, .display-panel) { color:#fff!important; background:#000!important; border-color:#fff!important; }
