/* Shared inner-page shell and components. Foundations: design-system.css. */
.td-inner { min-height: 100vh; }
.td-inner .icon:is(i) { width: auto; height: auto; stroke: none; font-size: 18px; }
.td-inner main { min-height: 60vh; }
.td-inner [id] { scroll-margin-top: 100px; }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--td-paper); border-bottom: 1px solid var(--td-line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--td-ink); font-size: 29px; font-weight: 700; letter-spacing: -1.5px; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px 12px 12px 3px; background: var(--td-blue); color: white; font-size: 25px; line-height: 1; font-weight: 700; letter-spacing: -2px; padding-right: 2px; }
.brand-dot { color: var(--td-blue); }
.header-label { padding-left: 22px; border-left: 1px solid var(--td-line); color: var(--td-muted); font-size: 13px; white-space: nowrap; }
.site-navigation { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.site-navigation > a:not(.td-button) { padding-block: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.site-navigation > a:not(.td-button):is(:hover, [aria-current="page"]) { color: var(--td-blue); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-divider { width: 1px; height: 18px; background: var(--td-line); }
.site-navigation .nav-contact, .site-navigation .nav-signin { min-height: 44px; padding: 9px 15px; font-size: 13px; white-space: nowrap; }
.site-navigation .nav-signin { border-color: var(--td-blue); color: var(--td-blue); }
.nav-icon { display: inline-grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid var(--td-line); border-radius: 12px; background: white; color: var(--td-muted); }
.nav-icon:hover { background: var(--td-mist); color: var(--td-blue); }
.menu-toggle { display: none; }
.account-menu { position: relative; }
.account-menu > summary { list-style: none; cursor: pointer; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-avatar { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--td-mint); color: var(--td-ink); font-size: 13px; font-weight: 700; }
.account-dropdown { position: absolute; right: 0; top: calc(100% + 14px); width: 250px; padding: 16px; border: 1px solid var(--td-line); border-radius: 18px; background: white; box-shadow: 0 16px 48px rgb(23 43 77 / 12%); }
.account-dropdown > strong, .account-dropdown > small { display: block; padding-inline: 12px; }
.account-dropdown > small { color: var(--td-muted); margin-bottom: 12px; }
.account-dropdown > a, .account-dropdown > button { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 12px; font-size: 14px; border: 0; border-radius: 10px; background: transparent; text-align: left; }
.account-dropdown > a:hover, .account-dropdown > button:hover { background: var(--td-mist); }
.notification-trigger { position: relative; }
.notification-count { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 2px; border: 2px solid white; border-radius: 50%; color: white; background: var(--td-blue); font-size: 10px; }
.shell-notifications { margin: 0; padding: 0; list-style: none; }
.shell-notifications li { padding: 18px 0; border-bottom: 1px solid var(--td-line); font-size: 14px; }
.shell-notifications li:last-child { border-bottom: 0; }
.shell-notifications time { display: block; margin-top: 6px; color: var(--td-muted); font-size: 12px; }
.shell-search { display: flex; align-items: center; gap: 12px; }
.shell-search .form-control { min-width: 0; }
.shell-dialog-copy { color: var(--td-muted); }
.shell-dialog-copy + .td-button { margin-top: 24px; }
.inner-hero { padding-block: 44px 48px; background: var(--td-mist); }
.inner-hero h1 { max-width: 22ch; font-size: clamp(34px, 4vw, 52px); font-weight: 650; line-height: 1.15; letter-spacing: -.045em; }
.inner-hero p { margin-top: 18px; color: var(--td-muted); font-size: 16px; line-height: 1.8; }
.breadcrumb-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; color: var(--td-muted); font-size: 12px; }
.breadcrumb-nav ol { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.breadcrumb-nav a { color: var(--td-muted); }
.breadcrumb-nav a:hover { color: var(--td-blue); text-decoration: underline; }
.breadcrumb-nav [aria-current] { color: var(--td-ink); }
.page-section { padding-block: 64px; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: 48px; }
.page-layout > * { min-width: 0; }
.surface-panel { padding: 32px; border: 1px solid var(--td-line); border-radius: var(--td-radius-card); background: var(--td-paper); }
.help-panel { padding: 28px; background: var(--td-mist); border-radius: var(--td-radius-card); }
.help-panel h2, .help-panel h3 { font-size: 21px; }
.help-panel p { margin-top: 12px; color: var(--td-muted); font-size: 14px; }
.help-panel .td-button, .help-panel .td-link { margin-top: 18px; }
.td-inner .form-control, .td-inner .form-select { min-height: 50px; padding: 12px 15px; border: 1px solid #ced7e6; border-radius: 12px; background-color: white; color: var(--td-ink); font-family: var(--td-font); font-size: 16px; line-height: 1.5; }
.td-inner .form-control::placeholder { color: #7b879b; }
.td-inner .form-control:focus, .td-inner .form-select:focus { border-color: var(--td-blue); outline: 3px solid rgb(40 85 232 / 15%); outline-offset: 1px; box-shadow: none; }
.td-inner textarea.form-control { min-height: 150px; resize: vertical; }
.field-group { min-width: 0; margin-bottom: 22px; }
.field-group > label, .field-group > .form-label { display: block; margin-bottom: 8px; color: var(--td-ink); font-size: 13px; font-weight: 600; }
.field-group small { display: block; margin-top: 7px; color: var(--td-muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.td-inner input[type="checkbox"], .td-inner input[type="radio"] { accent-color: var(--td-blue); }
.td-inner .form-check-input:checked { background-color: var(--td-blue); border-color: var(--td-blue); }
.td-inner .form-feedback:not(:empty) { margin-top: 20px; padding: 16px 18px; background: var(--td-mist); border-radius: 12px; color: var(--td-ink); font-size: 14px; }
.site-footer { padding-top: 34px; padding-bottom: 25px; border-top: 1px solid var(--td-line); }
.footer-main { display: flex; align-items: center; gap: 25px; padding-bottom: 31px; }
.footer-main .brand { font-size: 26px; }
.footer-main .brand-mark { width: 32px; height: 32px; font-size: 22px; border-radius: 10px 10px 10px 3px; }
.footer-main > p { font-size: 12px; color: var(--td-muted); }
.footer-main nav { display: flex; margin-left: auto; gap: 28px; }
.footer-main nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.footer-main nav a:hover { color: var(--td-blue); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--td-line); padding-top: 24px; color: var(--td-muted); font-size: 11px; }
.footer-bottom a { color: var(--td-ink); }
.back-to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--td-line); border-radius: 12px; background: white; box-shadow: 0 4px 20px rgb(23 43 77 / 8%); color: var(--td-blue); }
@media (prefers-reduced-motion: no-preference) {
  .inner-reveal { transition: opacity 500ms ease, translate 600ms var(--td-ease); }
  .inner-reveal.is-pending { opacity: 0; translate: 0 18px; }
}
@media (max-width: 1150px) { .header-label { display: none; } .site-navigation { gap: 18px; } .page-layout { gap: 32px; } }
@media (max-width: 960px) {
  .header-inner { min-height: 72px; flex-wrap: wrap; gap: 0 16px; }
  .header-label { display: inline; }
  .site-navigation { width: 100%; margin: 0; padding: 12px 0 20px; justify-content: flex-start; flex-wrap: wrap; }
  .is-enhanced .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 1px solid var(--td-line); border-radius: 10px; background: white; }
  .menu-toggle span { width: 19px; height: 2px; background: var(--td-ink); transition: transform 180ms; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .is-enhanced .site-navigation { display: none; }
  .is-enhanced .site-navigation.is-open { display: flex; }
  .site-header { max-height: 100dvh; overflow-y: auto; }
  .account-dropdown { position: static; margin-top: 12px; box-shadow: none; }
  .nav-actions:has(.account-menu[open]) { flex-wrap: wrap; align-items: flex-start; }
  .page-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 24px; }
  .surface-panel { padding: 26px; }
  .footer-main { flex-wrap: wrap; gap: 16px 24px; }
  .footer-main nav { width: 100%; margin: 0; }
}
@media (max-width: 700px) {
  .header-inner { min-height: 68px; }
  .brand { font-size: 26px; }
  .brand-mark { width: 34px; height: 34px; font-size: 23px; }
  .header-label { padding-left: 14px; font-size: 11px; }
  .site-navigation { gap: 8px 20px; }
  .nav-actions { width: 100%; flex-wrap: wrap; margin-top: 8px; }
  .nav-divider { display: none; }
  .inner-hero { padding-block: 28px 36px; }
  .inner-hero h1 { font-size: 36px; }
  .inner-hero p { font-size: 15px; }
  .breadcrumb-nav { margin-bottom: 20px; }
  .page-section { padding-block: 40px; }
  .page-layout { grid-template-columns: 1fr; gap: 32px; }
  .surface-panel { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-main nav { gap: 10px 22px; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .back-to-top { right: 16px; bottom: 16px; }
}
@media (max-width: 390px) { .header-label { display: none; } .inner-hero h1 { font-size: 32px; } .surface-panel, .help-panel { padding: 20px; } .shell-search { flex-direction: column; align-items: stretch; } .footer-main { gap: 16px; } }
@media print { .site-header, .back-to-top, .shell-dialog { display: none; } .page-section { padding-block: 24px; } }
