/* Public-site layout: readable content, stable gutters and touch targets. */
.wrap{width:min(1280px,calc(100% - clamp(32px,8vw,112px)))}
:is(.hero,.learning-hero,.guide-hero,.reading-layout,.business-layout,.faq-layout,.numbers-layout,.contact-card,.section-heading)>*{min-width:0}
:is(h1,h2,h3,p,a,button,li,td,th){overflow-wrap:break-word}
.hero h1{font-size:clamp(2.35rem,4.6vw,4.35rem);line-height:1.12}
.hero h1>span{display:block;overflow-wrap:break-word}
.button{max-width:100%;white-space:normal;text-align:center;justify-content:center;line-height:1.4}
:is(.hero-actions,.contact-options,.footer-bottom,.social-links){min-width:0;flex-wrap:wrap}
:is(.hero-actions,.guide-contact)>a,.guide-contact>button{flex-shrink:1}
.contact-email{overflow-wrap:anywhere}
.filter,.menu-toggle,.dialog-close{min-height:44px}
.filter-row{flex-wrap:wrap;overflow:visible}
.guide-article{max-width:900px}
.guide-article>p{margin-bottom:30px}
.table-scroll table{min-width:0;table-layout:fixed;width:100%}
.table-scroll :is(th,td),.tariff-table td:nth-child(2){min-width:0;overflow-wrap:anywhere}
.tariff-table td:nth-child(n+3){white-space:normal}
.tariff-table th:first-child{width:10%}
.tariff-table th:nth-child(2){width:28%}
.table-scroll :is(td,th){padding:14px 10px}
.tariff-controls>*{min-width:0}
.tariff-controls select{max-width:100%}
.answer-directory{margin:50px 0 60px;padding-top:15px;scroll-margin-top:130px}
.answer-directory h2{font-size:clamp(1.8rem,3vw,2.7rem);max-width:850px;margin-bottom:28px}
.answer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.answer-card{border:1px solid var(--line);border-radius:16px;padding:25px;display:flex;flex-direction:column;gap:15px;min-width:0;background:#f8fbfb}
.answer-card>span:first-child{font-size:1.12rem;font-weight:800;line-height:1.45}
.answer-card p{font-size:.9375rem;line-height:1.7}
.answer-card .answer-action{margin-top:auto;color:var(--teal-ink);font-size:.875rem;font-weight:800;display:flex;justify-content:space-between;gap:12px}
.answer-card:hover{border-color:var(--teal-ink);background:#eef7f7}
.article-hero{padding-block:42px 45px}
.article-hero h1{font-size:clamp(2rem,4vw,3.5rem);line-height:1.14;max-width:1000px}
.direct-answer{max-width:900px;line-height:1.8;font-size:1.0625rem;margin-top:26px;padding:22px 25px;border-left:4px solid var(--teal);background:#f1f7f7;border-radius:0 12px 12px 0}
.related-guides>div{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.related-guides a{min-width:0;gap:15px}
.related-guides a>span:first-of-type{min-width:0}
@media(max-width:1000px){
  .reading-layout{grid-template-columns:190px minmax(0,1fr);gap:30px}
  .guide-hero,.learning-hero{gap:32px}
  .guide-hero h1{font-size:clamp(2.3rem,4.5vw,3.3rem)}
  .guide-toc{top:120px}
}
@media(max-width:760px){
  .wrap{width:calc(100% - 36px)}
  .reading-layout{grid-template-columns:minmax(0,1fr);gap:25px;padding-block:28px 10px}
  .guide-toc{position:static;max-height:none;padding:17px;border:1px solid var(--line);border-radius:12px}
  .guide-toc nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}
  .guide-toc nav a{padding:9px;min-height:44px}
  .guide-toc>.button{margin-top:12px;width:100%}
  .guide-hero,.learning-hero{grid-template-columns:minmax(0,1fr);padding-block:28px 35px}
  .guide-section{padding-bottom:30px;margin-bottom:30px}
  .guide-section h2{font-size:1.65rem}
  .guide-hero h1{font-size:2.35rem}
  .article-hero h1{font-size:2rem}
  .direct-answer{padding:18px;font-size:1rem}
  .answer-grid{grid-template-columns:minmax(0,1fr)}
  .answer-card{padding:21px}
  .answer-directory{margin-block:35px 40px}
  .guide-contact{flex-direction:column;align-items:stretch;padding:30px 22px;gap:22px}
  .guide-contact>.button{width:100%;max-width:100%}
  .table-scroll{overflow:visible;border:0;border-radius:0}
  .table-scroll table,.table-scroll tbody,.table-scroll caption{display:block;width:100%;min-width:0}
  .table-scroll thead{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .table-scroll caption{border-radius:10px;margin-bottom:12px}
  .table-scroll tbody tr{display:block;border:1px solid var(--line);border-radius:12px;margin-bottom:15px;padding:5px 14px;background:#fff}
  .table-scroll tbody :is(td,th){display:grid;grid-template-columns:minmax(85px,.8fr) minmax(0,1.3fr);gap:12px;padding:12px 0;min-width:0;width:auto;white-space:normal;font-size:.875rem;overflow-wrap:anywhere}
  .table-scroll tbody :is(td,th)::before{content:attr(data-label);color:var(--navy);font-weight:800;font-size:.75rem;line-height:1.6}
  .table-scroll tbody td small{grid-column:2}
  .table-scroll tbody tr>:last-child{border-bottom:0}
  .table-scroll tbody tr:nth-child(even){background:#f8fafb}
  .tariff-controls{display:block;padding:17px}
  .tariff-controls label{max-width:none}
  .tariff-controls p{padding:12px 0 0}
  .lab-inputs{grid-template-columns:minmax(0,1fr)}
  .deductible-lab{padding:22px 18px}
  .lab-results{gap:15px}
  .worked-example{padding:20px}
  .source-section a{overflow-wrap:anywhere}
  .topic-nav a{padding:10px 12px;min-height:44px}
  .hero-actions{align-items:stretch;gap:15px}
  .hero-actions .button{flex:1 1 180px}
  .hero-actions .text-link{min-height:44px}
  .breadcrumbs{font-size:.75rem;gap:7px}
  .learning-art{min-height:260px}
  .learning-route>.wrap{flex-wrap:wrap;gap:12px 20px}
  .footer-learning a{min-height:44px;display:flex;align-items:center}
  .footer-learning{gap:5px 18px}
  .floating-contact{right:16px;bottom:16px;max-width:calc(100% - 32px)}
  dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px)}
}
@media(max-width:380px){
  .wrap{width:calc(100% - 28px)}
  .guide-toc nav{grid-template-columns:minmax(0,1fr)}
  .hero h1,.guide-hero h1{font-size:2.05rem}
  .article-hero h1{font-size:1.8rem}
  .table-scroll tbody :is(td,th){grid-template-columns:minmax(75px,.8fr) minmax(0,1.2fr);gap:9px}
  .lab-results{grid-template-columns:minmax(0,1fr)}
}
