/* Purposeful, consistent page components across the nested DOYOS routes. */
.professional-nested { --reading-width: 760px; }
.professional-nested :is(.page-hero-grid,.section-head,.split,.faq,.contact-layout,.calculator-shell,.legal-layout,.footer-grid) > * { min-width: 0; }
.professional-nested :is(h1,h2,h3) { text-wrap: balance; }
.professional-nested :is(p,li,dd,.account-spec,.contact-method) { overflow-wrap: break-word; }
.professional-nested .section { padding-block: 76px; }
.professional-nested .section-sm { padding-block: 34px 64px; }
.professional-nested .section-head { gap: 40px; margin-bottom: 38px; }
.professional-nested .section-head h2 { font-size: clamp(34px,3.45vw,50px); line-height: 1.12; letter-spacing: -.045em; }
.professional-nested .section-head p { line-height: 1.75; }
.professional-nested .page-hero { padding-bottom: 52px; }
.professional-nested .page-hero h1 { font-size: clamp(48px,5.3vw,76px); line-height: 1.04; letter-spacing: -.052em; }
.professional-nested .page-hero .lead { max-width: 600px; line-height: 1.7; }
.professional-nested .breadcrumbs { line-height: 1.65; }
.professional-nested .hero-chips { row-gap: 12px; }
.professional-nested .hero-chip { line-height: 1.5; }
.professional-nested .page-hero-visual.editorial-art--topic { height: auto; min-height: 340px; max-height: 490px; aspect-ratio: 1.3; align-self: center; }
.professional-nested.page-kind-account .page-hero-visual.editorial-art--topic { min-height: 300px; max-height: 390px; }
.professional-nested.page-kind-corporate .page-hero h1 { font-size: clamp(48px,5.25vw,76px); width: 100%; }
.professional-nested.page-kind-document .page-hero h1 { font-size: clamp(42px,4.1vw,59px); text-transform: none; }
.professional-nested.page-kind-document .page-hero-visual.editorial-art--topic { height: 260px; min-height: 0; max-height: 280px; aspect-ratio: auto; }

/* A clear inset separates content from structural lines. */
.professional-nested .grid-3, .professional-nested .grid-4 { gap: 24px; }
.professional-nested .card { padding: 28px; background: var(--surface-2); border: 1px solid transparent; border-radius: 0; transition: border-color .2s, background .2s; }
.professional-nested .section-alt .card { background: var(--surface); }
.professional-nested .card:hover { background: var(--surface-2); border-color: var(--line-strong); transform: none; box-shadow: none; }
.professional-nested .section-alt .card:hover { background: var(--surface); }
.professional-nested .card .icon-box { margin-bottom: 23px; }
.professional-nested .card h3 { margin-bottom: 14px; font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
.professional-nested .card p:last-child { margin-bottom: 0; }
.professional-nested .card .text-link { margin-top: 22px; }
.professional-nested .process-card { padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.professional-nested .process-card h3 { font-size: 23px; line-height: 1.3; }
.professional-nested .process-card:hover { transform: none; box-shadow: none; }
.professional-nested .feature-list li { align-items: flex-start; gap: 12px; }
.professional-nested .feature-list li .icon { flex-shrink: 0; margin-top: 3px; }
.professional-nested :is(.resource-card,.document-card,.office-card,.payment-card) { padding: 28px; }
.professional-nested .text-link { gap: 9px; line-height: 1.5; text-underline-offset: 4px; }
.professional-nested .text-link:hover { text-decoration: underline; }

/* Account groups read as a focused comparison, with no decorative active glow. */
.professional-nested .tabs { display: flex; flex-wrap: wrap; gap: 0 28px; padding: 0; margin-bottom: 32px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.professional-nested .tab-btn { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--muted); min-height: 54px; padding: 14px 0 17px; margin-bottom: -1px; font-size: 15px; line-height: 1.4; font-weight: 600; box-shadow: none; transform: none; }
.professional-nested .tab-btn:hover { background: transparent; color: var(--text); }
.professional-nested .tab-btn.active { background: transparent; color: var(--text); border-color: #c1282d; box-shadow: none; }
.professional-nested .tabs::before, .professional-nested .tabs::after, .professional-nested .tab-btn::before, .professional-nested .tab-btn::after { display: none; }
.professional-nested .account-grid { gap: 24px; align-items: stretch; }
.professional-nested .account-card { padding: 32px 28px; display: flex; flex-direction: column; }
.professional-nested .account-card h3 { font-size: 32px; }
.professional-nested .account-card p { min-height: 84px; }
.professional-nested .account-card .btn { margin-top: auto; position: relative; top: 12px; }
.professional-nested .account-card.featured::after { inset: 32px 28px auto auto; font-size: 9px; letter-spacing: .045em; }
.professional-nested .account-spec { min-height: 53px; gap: 18px; align-items: flex-start; line-height: 1.5; }
.professional-nested .account-spec b { text-align: right; }
.professional-nested .table-wrap { overflow-x: auto; max-width: 100%; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #9a9fa5 var(--surface-2); border: 1px solid var(--line); }
.professional-nested :is(.data-table,.compare-table) { width: 100%; border-collapse: collapse; }
.professional-nested :is(.data-table,.compare-table) th { background: var(--surface-2); color: var(--text); text-transform: none; font-size: 13px; font-weight: 600; line-height: 1.5; }
.professional-nested :is(.data-table,.compare-table) th, .professional-nested :is(.data-table,.compare-table) td { padding: 20px 24px; vertical-align: top; }
.professional-nested :is(.data-table,.compare-table) td { line-height: 1.65; }
.professional-nested :is(.data-table,.compare-table) tbody tr:hover { background: var(--surface-2); }

/* Legal reading: a bounded measure and usable document navigation. */
.professional-nested .legal-layout { grid-template-columns: 235px minmax(0,1fr); gap: 64px; }
.professional-nested .legal-layout :is(.prose,.legal-content) { width: 100%; max-width: var(--reading-width); }
.professional-nested .legal-nav { padding-right: 24px; top: calc(var(--header-h) + 80px); max-height: calc(100dvh - var(--header-h) - 110px); overflow-y: auto; scrollbar-width: thin; }
.professional-nested .legal-nav a { display: block; padding: 11px 0; font-size: 13px; min-height: 42px; line-height: 1.5; }
.professional-nested .legal-nav a[aria-current="page"] { padding-left: 12px; border-left: 2px solid #c1282d; }
.professional-nested .legal-layout .prose section { padding-block: 34px 26px; }
.professional-nested .legal-layout .prose h2 { font-size: 28px; line-height: 1.3; text-wrap: pretty; }
.professional-nested .legal-layout .prose :is(p,li) { font-size: 16px; line-height: 1.85; }
.professional-nested .notice { padding: 24px 28px; border-left: 2px solid #c1282d; }
.professional-nested .quick-nav-inner { scrollbar-width: thin; scrollbar-color: #9a9fa5 var(--surface-2); }
.professional-nested .quick-nav-inner::-webkit-scrollbar { display: block; height: 3px; }
.professional-nested .quick-nav-inner a { min-height: 52px; line-height: 1.5; }

/* Reference terms have full disclosure rows, rather than browser-default markers. */
.professional-nested .glossary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 0 44px; border-top: 1px solid var(--line); }
.professional-nested .glossary details { border-bottom: 1px solid var(--line); background: var(--surface); }
.professional-nested .glossary summary { position: relative; display: block; list-style: none; padding: 23px 52px 23px 0; font-size: 18px; font-weight: 600; line-height: 1.45; cursor: pointer; }
.professional-nested .glossary summary::-webkit-details-marker { display: none; }
.professional-nested .glossary summary::after { content: '+'; position: absolute; right: 13px; top: 20px; color: #c1282d; font-size: 26px; line-height: 1; font-weight: 400; }
.professional-nested .glossary details[open] summary::after { content: '−'; }
.professional-nested .glossary details[open] summary { color: #a71f26; }
.professional-nested .glossary details p { padding: 0 34px 23px 0; margin: 0; font-size: 16px; line-height: 1.8; max-width: 62ch; }
.professional-nested .glossary summary:hover { color: #a71f26; }
.professional-nested .faq-list summary { min-height: 64px; line-height: 1.6; }
.professional-nested :is(.glossary,.faq-list) summary:focus-visible { outline: 2px solid #c1282d; outline-offset: 4px; }

/* Forms, support channels and calculator results have separate visual levels. */
.professional-nested .contact-layout { align-items: start; gap: 44px; }
.professional-nested .contact-panel { border: 0; background: var(--surface-2); padding: 36px; border-radius: 0; }
.professional-nested .contact-panel h2 { font-size: clamp(32px,3.2vw,46px); line-height: 1.13; }
.professional-nested .contact-method { padding: 22px 0; gap: 18px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; align-items: flex-start; }
.professional-nested .contact-method > .icon-box { margin: 2px 0 0; flex-shrink: 0; background: transparent; }
.professional-nested .contact-method > span:not(.icon-box) { display: grid; gap: 5px; min-width: 0; }
.professional-nested .contact-method b { display: block; font-size: 15px; line-height: 1.5; }
.professional-nested .contact-method > span > span { display: block; color: var(--muted); font-size: 14px; line-height: 1.6; }
.professional-nested .form-card { padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.professional-nested .form-grid { gap: 22px 20px; }
.professional-nested .field { min-width: 0; gap: 9px; }
.professional-nested .field label { font-size: 13px; line-height: 1.5; font-weight: 600; color: var(--text); }
.professional-nested .field :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) { width: 100%; min-width: 0; min-height: 52px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface); padding: 13px 15px; font-size: 16px; line-height: 1.4; }
.professional-nested .field textarea { min-height: 130px; resize: vertical; }
.professional-nested .field :is(input,select,textarea):focus { border-color: #c1282d; box-shadow: 0 0 0 3px rgb(193 40 45 / 9%); }
.professional-nested .field label:has(input[type="checkbox"]) { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; padding-block: 6px; cursor: pointer; }
.professional-nested .field input[type="checkbox"] { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: #c1282d; }
.professional-nested .form-note { font-size: 13px; line-height: 1.65; margin-top: 20px; }
.professional-nested .calculator-shell { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,1fr); gap: 0; align-items: stretch; padding: 0; border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.professional-nested .calculator-shell .calc-panel { padding: 36px; border: 0; background: var(--surface); }
.professional-nested .calculator-shell .calc-result { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px; text-align: left; background: var(--surface-2); border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.professional-nested .calc-result .result-label { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); margin-bottom: 14px; }
.professional-nested .calc-result .result-value { display: block; font-size: clamp(35px,3.3vw,48px); line-height: 1.15; letter-spacing: -.04em; font-weight: 600; color: var(--text); }
.professional-nested .calc-result p { margin: 23px 0 0; font-size: 14px; line-height: 1.75; }

/* Consistent secondary actions and a legible, compact footer. */
.professional-nested .cta-panel { padding: 46px; gap: 32px; border-top: 1px solid var(--line); }
.professional-nested .cta-panel h2 { font-size: 38px; line-height: 1.15; }
.professional-nested .cta-actions { gap: 12px; flex-wrap: wrap; }
.professional-nested .site-footer { padding-top: 64px; --text: #f5f6f7; --muted: #c3c7cd; --subtle: #aeb4bc; --line: #3b4047; }
.professional-nested .footer-grid { grid-template-columns: 1.5fr repeat(4,minmax(0,1fr)); gap: 30px; }
.professional-nested .footer-about { grid-row: auto; }
.professional-nested .footer-about p { max-width: 320px; line-height: 1.8; }
.professional-nested .footer-col h4 { font-size: 12px; line-height: 1.5; letter-spacing: .08em; margin-bottom: 17px; }
.professional-nested .footer-col li { margin-bottom: 2px; }
.professional-nested .footer-col a { font-size: 13px; line-height: 1.55; padding-block: 7px; }
.professional-nested .site-footer .footer-col a:hover { transform: none; text-decoration: underline; text-underline-offset: 4px; }
.professional-nested .regulatory-box { padding: 28px 0; background: transparent; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.professional-nested .regulatory-box p { line-height: 1.8; color: var(--muted); }
.professional-nested .footer-bottom { display: grid; grid-template-columns: 1fr; gap: 22px; border: 0; padding-top: 0; }
.professional-nested .footer-legal { gap: 8px 26px; }
.professional-nested .footer-legal a { line-height: 1.6; padding-block: 6px; }

@media (max-width: 1120px) {
  .professional-nested .footer-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .professional-nested .footer-about { grid-column: 1/-1; }
  .professional-nested .footer-about p { max-width: 600px; }
  .professional-nested .calculator-shell .calc-panel { padding: 28px; }
  .professional-nested .calculator-shell .calc-result { padding: 30px; }
  .professional-nested .legal-layout { gap: 38px; grid-template-columns: 210px minmax(0,1fr); }
  .professional-nested .contact-panel, .professional-nested .form-card { padding: 28px; }
}
@media (max-width: 900px) {
  .professional-nested .section { padding-block: 60px; }
  .professional-nested .page-hero h1, .professional-nested.page-kind-corporate .page-hero h1 { font-size: clamp(44px,7.6vw,64px); }
  .professional-nested .page-hero-visual.editorial-art--topic { min-height: 0; height: 330px; max-height: 330px; }
  .professional-nested .calculator-shell { grid-template-columns: 1fr; }
  .professional-nested .calculator-shell .calc-result { border-left: 0; border-top: 1px solid var(--line); }
  .professional-nested .legal-layout { grid-template-columns: 1fr; gap: 36px; }
  .professional-nested .legal-nav { position: static; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 18px; max-height: none; padding: 0 0 26px; border: 0; border-bottom: 1px solid var(--line); }
  .professional-nested .legal-nav h4 { grid-column: 1/-1; }
  .professional-nested .legal-nav a { min-height: 44px; }
  .professional-nested .card, .professional-nested .process-card { padding: 26px; }
  .professional-nested .contact-layout { gap: 28px; }
}
@media (max-width: 640px) {
  .professional-nested .section { padding-block: 48px; }
  .professional-nested .section-sm { padding-block: 24px 44px; }
  .professional-nested .page-hero { padding-bottom: 0; }
  .professional-nested .page-hero h1, .professional-nested.page-kind-account .page-hero h1, .professional-nested.page-kind-corporate .page-hero h1 { font-size: 42px; line-height: 1.08; letter-spacing: -.045em; }
  .professional-nested.page-kind-document .page-hero h1 { font-size: 38px; }
  .professional-nested .page-hero-visual.editorial-art--topic, .professional-nested.page-kind-account .page-hero-visual.editorial-art--topic { min-height: 0; height: 250px; max-height: 280px; }
  .professional-nested.page-kind-document .page-hero-visual.editorial-art--topic { height: 205px; }
  .professional-nested .page-hero .hero-actions { width: 100%; }
  .professional-nested .hero-actions .btn { font-size: 13px; min-height: 48px; }
  .professional-nested .section-head { gap: 18px; margin-bottom: 30px; }
  .professional-nested .section-head h2 { font-size: 33px; line-height: 1.16; }
  .professional-nested .card, .professional-nested .process-card { padding: 25px; }
  .professional-nested .grid-3, .professional-nested .grid-4 { gap: 18px; }
  .professional-nested .tabs { gap: 0 22px; margin-bottom: 26px; }
  .professional-nested .tab-btn { font-size: 13px; padding-block: 14px; }
  .professional-nested .account-card { padding: 30px 26px; }
  .professional-nested .account-card p { min-height: 0; }
  .professional-nested .account-card.featured::after { inset: 30px 26px auto auto; }
  .professional-nested .account-card .btn { margin-top: 22px; top: 0; }
  .professional-nested .glossary { grid-template-columns: 1fr; }
  .professional-nested .glossary summary { font-size: 17px; padding-block: 21px; }
  .professional-nested .legal-nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 14px; }
  .professional-nested .legal-nav a { font-size: 12px; }
  .professional-nested .legal-layout .prose h2 { font-size: 25px; }
  .professional-nested .legal-layout .prose section { padding-block: 28px 20px; }
  .professional-nested .notice { padding: 22px; }
  .professional-nested .contact-panel, .professional-nested .form-card { padding: 25px; }
  .professional-nested .form-grid { gap: 20px; }
  .professional-nested .calculator-shell .calc-panel, .professional-nested .calculator-shell .calc-result { padding: 25px; }
  .professional-nested .calculator-shell .calc-result { min-height: 235px; }
  .professional-nested .calc-result .result-value { font-size: 38px; }
  .professional-nested :is(.data-table,.compare-table) th, .professional-nested :is(.data-table,.compare-table) td { padding: 17px 20px; }
  .professional-nested .cta-panel { padding: 30px 25px; gap: 28px; }
  .professional-nested .cta-panel h2 { font-size: 31px; }
  .professional-nested .cta-actions .btn { min-height: 48px; font-size: 13px; }
  .professional-nested .site-footer { padding-top: 46px; }
  .professional-nested .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 22px; }
  .professional-nested .footer-col a { padding-block: 9px; }
  .professional-nested .footer-about { grid-column: 1/-1; }
  .professional-nested .footer-legal { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 22px; }
  .professional-nested .footer-legal a { min-height: 44px; display: flex; align-items: center; font-size: 12px; }
}
@media print {
  .professional-nested .legal-nav { display: none; }
  .professional-nested .legal-layout { display: block; }
  .professional-nested .glossary { display: block; }
  .professional-nested .glossary details { break-inside: avoid; }
}

/* Visual checks: remove the old blue result glow and retain footer contrast. */
.professional-nested .calculator-shell :is(.calc-panel,.calc-result) { box-shadow: none; }
.professional-nested .site-footer :is(.regulatory-head,.regulatory-head b,.regulatory-head a,.social-btn) { color: #e8eaed; }
.professional-nested .site-footer .regulatory-head { gap: 18px; }
.professional-nested .site-footer .regulatory-head a { font-size: 13px; line-height: 1.6; }
.professional-nested[data-editorial-legacy].professional .page-body .cards6 { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.professional-nested[data-editorial-legacy].professional .page-body .cards6 .card { padding: 28px; min-width: 0; border: 1px solid var(--line); background: var(--surface-2,#f5f6f7); }
.professional-nested[data-editorial-legacy].professional .page-body .cards6 a { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .professional-nested[data-editorial-legacy].professional .page-body .cards6 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .professional-nested[data-editorial-legacy].professional .page-body .cards6 { grid-template-columns: 1fr; gap: 18px; }
  .professional-nested[data-editorial-legacy].professional .page-body .cards6 .card { padding: 25px; }
}
