/* Homepage: the complete spreadsheet leads; the sample and filters stay secondary. */
@layer calm {
 .home-hero{background:#fff;color:var(--ink);border-bottom:1px solid var(--line);padding-block:32px}
 .home-hero-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);align-items:center;gap:48px}
 .home-hero-copy{min-width:0;max-width:660px}
 .home-title{margin:0;letter-spacing:-.045em;line-height:1.03;color:var(--ink)}
 .home-title-keyword{display:block;font-size:clamp(52px,5vw,68px);font-weight:900}
 .home-title-keyword>span{display:block}
 .home-title-purpose{display:flex;align-items:center;gap:10px;margin-top:18px;font-size:19px;font-weight:400;line-height:1.4;letter-spacing:0;color:var(--muted)}
 .home-title-purpose .flag{flex-shrink:0}
 .home-hero-description{font-size:18px;line-height:1.65;color:var(--ink);max-width:51ch;margin-top:24px}
 .home-hero-description strong{font-weight:700}
 .home-sheet-variants{margin-top:8px;font-size:15px;line-height:1.6;color:var(--muted)}
 .home-verification-link{display:inline-flex;align-items:center;min-height:44px;max-width:100%;margin-top:8px;padding-block:8px;color:var(--brand-link);font-size:14px;line-height:1.5;text-decoration:underline;text-underline-offset:3px}
 .home-verification-link:hover{color:var(--ink)}
 .home-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;margin-top:24px}
 .home-sheet-link{min-height:52px;padding:14px 22px;font-size:15px;line-height:1.5;border-radius:8px;white-space:normal;background:var(--brand-yellow);border-color:var(--brand-yellow);color:var(--ink)}
 .home-calculator-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:8px 4px;color:var(--ink);font-size:14px;font-weight:700;line-height:1.5}
 .home-calculator-link .icon{width:18px;height:18px;flex-shrink:0}
 .home-calculator-link:hover{color:var(--brand-link);text-decoration:underline;text-underline-offset:4px}
 .home-sheet-mascot{position:absolute;z-index:2;width:60%;max-width:380px;right:-4%;bottom:6px;min-width:0;pointer-events:none}
 .home-visual{position:relative;isolation:isolate;min-width:0;width:100%;height:380px}
 .home-visual::before{content:'';position:absolute;z-index:-2;inset:0;border-radius:24px;background-color:#f2f3f4;background-image:linear-gradient(#dce0e3 1px,transparent 1px),linear-gradient(90deg,#dce0e3 1px,transparent 1px);background-size:44px 44px}
 .home-visual::after{content:'';position:absolute;z-index:-1;inset:0 0 0 56%;background:var(--brand-yellow);border-radius:0 24px 24px 0;clip-path:polygon(45% 0,100% 0,100% 100%,0 100%)}
 .home-sheet-sample{position:absolute;z-index:1;top:56px;left:20px;width:calc(48% - 20px);padding:16px;background:#fff;border:1px solid #dedede;border-radius:12px;box-shadow:0 8px 24px #3333330c}
 .home-sheet-sample table{width:100%;margin:0;border-collapse:collapse;font-size:13px;line-height:1.45}
 .home-sheet-sample caption{text-align:left;font-size:14px;font-weight:700;color:var(--ink);padding:0 0 12px}
 .home-sheet-sample caption .icon{width:16px;height:16px;color:var(--brand-link);vertical-align:-3px;margin-right:8px}
 .home-sheet-sample thead th{padding:8px 0;background:none;border-bottom:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:400;text-align:left}
 .home-sheet-sample thead th:last-child{text-align:right}
 .home-sheet-sample tbody th{background:none;color:var(--ink);vertical-align:middle;font-weight:400;text-align:left;padding:6px 10px 6px 0;border-bottom:1px solid #ededed}
 .home-sheet-sample tbody td{vertical-align:middle;font-size:13px;font-weight:700;text-align:right;white-space:nowrap;padding:6px 0;border-bottom:1px solid #ededed;color:var(--ink)}
 .home-sheet-sample tbody a{display:flex;align-items:center;min-height:44px;color:var(--ink);line-height:1.4}
 .home-sheet-sample tbody a:hover{color:var(--brand-link);text-decoration:underline;text-underline-offset:3px}
 .home-sheet-sample p{font-size:12px;line-height:1.5;color:var(--muted);margin-top:10px}
 .home-sheet-mascot picture{display:block}
 .home-sheet-mascot img{display:block;width:100%;height:auto}
 .home-catalog{padding-block:32px 40px;scroll-margin-top:90px}
 .home-catalog .catalog-section{padding:0}
 .home-catalog-head{align-items:center;gap:24px;margin-bottom:24px}
 .home-catalog-head h2{font-size:30px;line-height:1.25;letter-spacing:-.025em}
 .home-catalog-head p{margin-top:8px;font-size:14px;line-height:1.6}
 .home-catalog-head>.catalog-sheet-link{margin:0;min-height:44px;flex-shrink:0}
 .home-product-layout{display:block}
 .home-category-sidebar,.home-catalog-main{min-width:0}
 .home-catalog .home-category-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;padding:0 2px 12px;margin:0 0 20px;border-bottom:1px solid var(--line);overflow:visible}
 .home-catalog .home-category-tabs a{position:relative;display:flex;align-items:center;gap:8px;white-space:normal;min-height:44px;margin:0;padding:10px 8px;border:0;border-radius:4px;background:none;color:var(--ink);font-size:14px;font-weight:700;line-height:1.5}
 .home-catalog .home-category-tabs a small{flex-shrink:0;font-size:12px;color:var(--muted);opacity:1}
 .home-catalog .home-category-tabs a::after{content:none}
 .home-catalog .home-category-tabs a:hover{background:#ededed}
 .home-catalog .home-category-tabs a.active{background:none;color:var(--ink)}
 .home-catalog .home-category-tabs a.active::after{content:'';position:absolute;left:8px;right:8px;bottom:0;height:3px;background:var(--brand-yellow);border-radius:0}
 .home-catalog .home-category-tabs a .icon{width:16px;height:16px;flex-shrink:0}
 .home-catalog .catalog-controls{margin:0 0 18px;padding:0;border:0;border-radius:0;background:none;gap:12px}
 .home-catalog .catalog-controls .searchbox,.home-catalog .catalog-controls .select-control{background-color:#fff}
 .home-catalog .product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
 .home-catalog .results-meta{margin-block:0 18px}
 .home-catalog .product-grid:not(.is-table) .product-card{border:1px solid transparent;border-radius:8px;background:#fff;box-shadow:none;overflow:visible}
 .home-catalog .product-grid:not(.is-table) .product-card:hover{border-color:#c7c7c7;box-shadow:none;transform:none}
 .home-catalog .product-grid:not(.is-table) .product-image{border:0;border-radius:8px 8px 0 0;background:#f1f1f1}
 .home-catalog .product-grid:not(.is-table) .product-content{padding:14px}
 .home-catalog .product-grid:not(.is-table) .price-row{margin-top:auto;padding-top:10px}
 .home-calculator-link:focus-visible,.home-category-sidebar a:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
 .home-hero a:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
 .home-sheet-link:hover{background:#ffda42;border-color:#ffda42;color:var(--ink)}
 .home-content .welcome-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:24px 0;margin:0;border-bottom:1px solid var(--line);overflow:visible}
 .home-content .welcome-card{min-width:0;display:flex;align-items:center;gap:12px;padding:8px 24px;border:0;border-right:1px solid var(--line);border-radius:0;background:none;box-shadow:none;color:var(--ink);min-height:0}
 .home-content .welcome-card:first-child{padding-left:0}
 .home-content .welcome-card:last-child{border-right:0;padding-right:0}
 .home-content .welcome-card:hover{background:#f0f0f0;box-shadow:none;transform:none}
 .home-content .welcome-symbol{flex-shrink:0;width:36px;height:36px;border-radius:8px;background:var(--brand-soft);color:var(--ink);transform:none}
 .home-content .welcome-card small,.home-content .eyebrow{display:none}
 .home-content .welcome-card h2{font-size:16px;line-height:1.4}
 .home-content .welcome-card p{font-size:14px;line-height:1.6;margin-top:4px;color:var(--muted)}
 .home-content .welcome-card>.icon{flex-shrink:0;width:18px;height:18px;display:block;margin-left:auto}
 @media(min-width:1250px){
  .home-catalog .product-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
 }
 @media(min-width:1600px){
  .home-catalog .product-grid:not(.is-table){grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
 }
 @media(min-width:651px) and (max-width:1100px){
  .home-hero{padding-block:32px}
  .home-hero-layout{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:24px}
  .home-title-keyword{font-size:52px}
  .home-title-purpose{font-size:17px;margin-top:14px}
  .home-hero-description{font-size:16px;margin-top:18px}
  .home-sheet-variants{font-size:14px}
  .home-hero-actions{gap:8px 16px;margin-top:20px}
  .home-visual{height:280px}
  .home-sheet-sample{display:none}
  .home-sheet-mascot{width:100%;max-width:270px;right:0;bottom:0}
  .home-catalog .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  .home-catalog-head h2{font-size:28px}
  .home-content .welcome-card{gap:12px;padding:8px 16px}
  .home-content .welcome-card>.icon{display:none}
  .home-content .welcome-card h2{font-size:16px}
 }
 @media(max-width:650px){
  .home-hero{padding-block:24px}
  .home-hero-layout{grid-template-columns:minmax(0,1fr) 104px;gap:0 12px;align-items:center}
  .home-hero-copy{display:contents}
  .home-title{grid-column:1/-1;grid-row:1;min-width:0}
  .home-title-keyword{max-width:calc(100% - 100px)}
  .home-title-keyword{font-size:38px;line-height:1.06}
  .home-title-purpose{font-size:15px;gap:8px;margin-top:12px;line-height:1.45;align-items:baseline}
  .home-title-purpose .flag{width:18px;height:12px}
  .home-visual{grid-column:2;grid-row:1;width:104px;height:118px;align-self:start;margin-top:4px}
  .home-visual::before,.home-visual::after{content:none}
  .home-sheet-sample{display:none}
  .home-sheet-mascot{width:104px;right:0;bottom:0}
  .home-hero-description{grid-column:1/-1;font-size:16px;line-height:1.6;margin-top:18px}
  .home-sheet-variants{grid-column:1/-1;font-size:14px;margin-top:6px}
  .home-verification-link{grid-column:1/-1;justify-self:start;margin-top:4px}
  .home-hero-actions{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:12px;margin-top:18px}
  .home-sheet-link{justify-content:center;min-height:48px;padding:12px;font-size:14px}
  .home-calculator-link{width:48px;min-height:48px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink)}
  .home-calculator-link span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .home-calculator-link .icon{width:20px;height:20px}
  .home-content .welcome-cards{grid-template-columns:minmax(0,1fr);padding:8px 0}
  .home-content .welcome-card,.home-content .welcome-card:first-child,.home-content .welcome-card:last-child{padding:12px 0;gap:12px;border:0;border-bottom:1px solid var(--line);flex-basis:auto}
  .home-content .welcome-card:last-child{border-bottom:0}
  .home-content .welcome-card h2{font-size:16px}
  .home-content .welcome-card p{display:none}
  .home-content .welcome-card>div{min-width:0}
  .home-catalog{padding-block:24px 32px}
  .home-catalog-head{align-items:flex-start;flex-direction:column;gap:8px;margin-bottom:16px}
  .home-catalog-head h2{font-size:25px}
  .home-catalog-head p{font-size:14px;margin-top:6px}
  .home-catalog-head>.catalog-sheet-link{min-height:44px;align-self:flex-start}
  .home-category-sidebar{margin-bottom:16px}
  .home-category-sidebar.has-mobile-picker .home-category-tabs{display:none}
  .home-category-sidebar .mobile-category-picker{margin:0}
  .home-category-sidebar .mobile-category-picker span{font-size:14px;line-height:1.5;margin-bottom:0}
  .home-catalog .home-category-tabs{gap:4px 8px;padding-bottom:12px;margin-bottom:0}
  .home-catalog .catalog-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}
  .home-catalog .catalog-controls>.select-control{padding-right:34px}
  .home-catalog .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .home-catalog .product-grid:not(.is-table) .product-content{padding:10px}
  .home-catalog .product-grid:not(.is-table) .price-row{margin-top:auto;padding-top:10px}
  .home-catalog .results-meta{margin-bottom:16px}
 }
 @media(max-width:380px){
  .home-hero-layout{grid-template-columns:minmax(0,1fr) 76px;gap:0 10px}
  .home-title-keyword{font-size:34px}
  .home-title-purpose{font-size:14px;gap:6px}
  .home-visual{width:76px;height:96px}
  .home-sheet-mascot{width:76px}
  .home-sheet-link{padding:10px 8px;gap:6px;font-size:13px}
  .home-catalog-head h2{font-size:24px}
 }
 @media(forced-colors:active){.home-hero a:focus-visible,.home-calculator-link:focus-visible,.home-category-sidebar a:focus-visible{outline-color:Highlight}.home-catalog .home-category-tabs a.active::after{background:Highlight}}
}
