:root{--cream:#fff8f0;--ink:#142a38;--muted:#5d7181;--line:#e8e5de;--blue:#286fbc;--light-blue:#edf5fc;--green:#216a42;--light-green:#e7f2eb;--shadow:0 8px 28px rgba(38,54,70,.055)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:radial-gradient(circle at 55% 0,#fffefd 0,var(--cream) 50%,#fff5e9 100%);font:16px/1.5 Roboto,system-ui,-apple-system,'Segoe UI',sans-serif}
a{color:var(--blue)}
button,input{font:inherit}
button,a,input{ -webkit-tap-highlight-color:transparent }
:focus-visible{outline:3px solid #4a90d3;outline-offset:3px}
svg{width:22px;height:22px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}
.site-shell{max-width:1020px;padding:0 20px 0;margin:auto}
.site-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:24px 6px 10px}
.brand{display:flex;align-items:center;gap:9px;text-decoration:none;color:#12315b;min-width:0}
.brand-text{display:flex;flex-direction:column;min-width:0;gap:1px}
.brand strong{font-size:27px;font-weight:700;letter-spacing:-.045em;line-height:1.1}
.brand small{font-size:10px;color:#617a94;font-weight:700;letter-spacing:.09em;line-height:1.25;text-transform:uppercase;white-space:nowrap}
.brand img{display:block;object-fit:contain;width:46px;height:46px}
.nav-link{display:inline-flex;align-items:center;gap:7px;font-size:15px;font-weight:700;text-decoration:none;color:#174b81;background:#e9f3fe;padding:8px 13px;border-radius:14px}
.nav-link svg{width:18px;height:18px}
.intro{display:flex;justify-content:space-between;align-items:center;padding:12px 14px 20px;gap:16px;position:relative}
.intro-copy{max-width:650px;min-width:0}
h1{text-wrap:balance;font-weight:700;font-size:clamp(29px,4.5vw,49px);letter-spacing:-.045em;line-height:1.12;color:#0e315f;margin:0 0 10px}
.intro-copy>p:last-child{font-size:clamp(14px,1.8vw,17px);color:var(--muted);line-height:1.45;margin:0;max-width:620px;text-wrap:pretty}
.intro-decoration{width:182px;flex:none;opacity:.98}
.intro-decoration svg{width:100%;height:auto;stroke:none;display:block}
.panel{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}
.advice-card{overflow:hidden;border-color:#dce8f2}
.source-bar{border:none;background:#e9f3fe;color:#174b81;font-size:13px;font-weight:700;display:flex;align-items:center;gap:10px;width:100%;padding:13px 20px;text-align:left;cursor:pointer;min-height:49px}
.source-bar span{flex:1}.source-bar svg{height:18px;width:18px}.source-bar .chevron{width:16px}
.source-bar:hover{background:#dceeff}
.advice-body{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(220px,.88fr);grid-template-areas:'copy image' 'actions image';column-gap:25px;row-gap:15px;padding:24px}
.advice-copy{grid-area:copy;min-width:0}.advice-image{grid-area:image;min-width:0}
.advice-image img{display:block;width:100%;height:100%;min-height:280px;max-height:460px;object-fit:cover;object-position:center 32%;border-radius:17px}
.advice-copy h2{text-wrap:balance;font-size:clamp(19px,2.8vw,28px);letter-spacing:-.035em;line-height:1.2;margin:0 0 11px}
.tog-value{display:inline-block;font-size:clamp(39px,6vw,63px);line-height:1.04;letter-spacing:-.045em;font-weight:700;color:var(--green);background:var(--light-green);padding:8px 15px;border-radius:18px;min-width:150px}
.tog-value.loading{background:#eff2f4;color:#81909a}
.clothing-heading{font-size:19px;font-weight:700;margin:12px 0 5px;letter-spacing:-.02em}
.clothing-detail{color:#425c70;font-size:16px;line-height:1.45;margin:0}
.advice-explanation{color:var(--muted);font-size:12px;margin:13px 0 0}
.advice-actions{grid-area:actions;display:flex;flex-direction:column;align-items:stretch;gap:11px;min-width:0}
.affiliate-links:empty{display:none}
.cta-link{display:flex;align-items:center;justify-content:center;text-decoration:none;text-align:center;gap:8px;border-radius:14px;background:#2876c9;color:white;font-weight:700;padding:13px 16px;min-height:48px;box-shadow:0 7px 17px #276eb51f;font-size:15px}
.cta-link:hover{background:#1768b9}
.cta-link[hidden]{display:none!important}
.text-link{font-weight:700;font-size:14px;text-underline-offset:3px}
.advice-actions>.text-link{align-self:center}
.disclosure{font-size:11px;line-height:1.4;color:var(--muted);margin:5px 0 0;text-align:center;border-top:1px solid var(--line);padding-top:12px}
.settings{margin-top:18px;padding:22px}
.section-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px}
.icon-circle{height:44px;width:44px;border-radius:15px;display:inline-flex;align-items:center;justify-content:center;flex:none}
.icon-circle.blue{background:#e6f2ff;color:#297bc6}.icon-circle.amber{background:#fff1db;color:#e18d20}
.section-heading h2,.safety h2{text-wrap:balance;margin:0 0 3px;font-size:21px;line-height:1.2;letter-spacing:-.03em}
.section-heading p,.safety p{margin:0;color:var(--muted);font-size:14px}
.place-form label,.room-controls label{display:block;font-size:13px;font-weight:700;margin:0 0 6px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.place-input-row{display:flex;gap:8px}
.place-input-row input,.room-entry input{border:1px solid #cfd9e4;border-radius:12px;background:white;color:var(--ink);padding:10px 12px;min-height:46px;min-width:0;font-size:16px}
.place-input-row input{flex:1;width:100%}
.secondary-button{background:#e8f3ff;color:#1965ac;border:0;border-radius:12px;padding:10px 18px;min-height:46px;font-size:15px;font-weight:700;cursor:pointer}
.secondary-button:hover{background:#d9ecff}.secondary-button:disabled{opacity:.6;cursor:wait}
.helper-text{font-size:12px;color:var(--muted);margin:7px 0 0;line-height:1.4;min-height:15px}
.settings-divider{height:1px;background:var(--line);margin:19px 0}
.toggle-row{display:flex;align-items:center;gap:13px;cursor:pointer}
.toggle-copy{flex:1}.toggle-copy strong,.toggle-copy small{display:block}.toggle-copy strong{font-size:15px;line-height:1.3}.toggle-copy small{font-size:12px;color:var(--muted);margin-top:3px}
.toggle-row input{position:absolute;opacity:0;width:1px;height:1px}
.toggle-track{width:42px;height:25px;border-radius:99px;background:#ccd5dd;position:relative;transition:background .15s;flex:none}
.toggle-track:before{content:'';position:absolute;top:3px;left:3px;background:#fff;border-radius:50%;width:19px;height:19px;box-shadow:0 1px 3px #0003;transition:transform .15s}
.toggle-row input:checked+.toggle-track{background:#2678c3}
.toggle-row input:checked+.toggle-track:before{transform:translateX(17px)}
.toggle-row input:focus-visible+.toggle-track{outline:3px solid #4a90d3;outline-offset:3px}
.room-controls{margin-top:17px;padding:16px;border-radius:15px;background:#f5f9fd}
.room-controls[hidden]{display:none}
.room-entry{display:flex;align-items:stretch;gap:10px;width:100%;margin-top:7px}
.room-number{position:relative;flex:1;min-width:0;max-width:205px}
.room-number input{width:100%;padding-right:42px}
.room-number span{position:absolute;right:13px;top:50%;transform:translateY(-50%);font-weight:700;pointer-events:none}
.room-apply{border:0;border-radius:12px;padding:10px 16px;background:#2876c9;color:white;font-size:14px;font-weight:700;cursor:pointer;min-height:46px;white-space:nowrap}
.room-apply:hover{background:#1768b9}
@media(max-width:350px){.room-entry{gap:7px}.room-apply{padding:9px 11px}.room-number{max-width:none}}
.safety{display:flex;gap:15px;align-items:center;margin-top:16px;padding:17px 22px}.safety h2{font-size:18px}
.faq{margin-top:16px;padding:21px 22px}.faq .section-heading{margin-bottom:13px}
.faq details{border:1px solid #dfe5ea;border-radius:11px;margin-top:8px;overflow:hidden}
.faq summary{font-size:14px;font-weight:700;list-style:none;cursor:pointer;padding:13px 38px 13px 13px;position:relative;line-height:1.45}
.faq summary::-webkit-details-marker{display:none}
.faq summary:after{content:'+';color:#276fb4;position:absolute;right:13px;top:9px;font-size:21px;font-weight:400}
.faq details[open] summary:after{content:'−'}
.faq details p{padding:0 13px 13px;margin:0;color:#49606d;font-size:13px;line-height:1.55}
.faq-all{display:inline-block;margin-top:14px}
.site-footer{position:relative;isolation:isolate;padding:19px 0 144px;margin-top:21px;text-align:center;font-size:12px;color:#415e77;text-shadow:0 1px 0 rgba(255,255,255,.72)}
.site-footer p{margin:4px 0;position:relative;z-index:1}.site-footer a{color:inherit}
/* The SVG tile is seamless at both horizontal edges. Repeating at intrinsic
   proportions works for any viewport width without cutting or distorting it. */
.footer-sky{position:absolute;z-index:-1;left:50%;bottom:-1px;transform:translateX(-50%);width:100vw;height:161px;pointer-events:none;background-image:url('res/footer-sky.svg');background-repeat:repeat-x;background-size:auto 160px;background-position:center bottom}
.mission{display:flex;align-items:center;gap:7px;color:#4e7197;font-size:13px;line-height:1.4;font-weight:500;margin:0 0 16px}
.mission svg{width:15px;height:15px;stroke:none;color:#72a7e4}
@media (max-width:640px){
  .site-shell{padding:0 13px 0}
  .site-header{padding:13px 3px 10px;gap:8px}.brand{gap:7px}.brand strong{font-size:22px}.brand small{font-size:9px;letter-spacing:.035em}.brand img{width:39px;height:39px}.nav-link{font-size:13px;padding:8px 10px}.nav-link svg{width:16px;height:16px}
  .intro{padding:8px 6px 17px;align-items:flex-start}.intro-copy{min-width:0;flex:1}h1{font-size:clamp(25px,6.8vw,30px);margin-bottom:6px;line-height:1.15}.intro-copy>p:last-child{font-size:13px;line-height:1.42;max-width:345px}.intro-decoration{display:none}.mission{font-size:12.5px;gap:5px;line-height:1.4;margin-bottom:15px}.mission svg{height:14px;width:14px}
  .panel{border-radius:18px}.source-bar{padding:12px 14px;font-size:12px;gap:8px}
  .advice-body{display:flex;flex-direction:column;gap:0;padding:17px}
  .advice-copy h2{font-size:21px;margin-bottom:8px}
  .tog-value{font-size:44px;border-radius:14px;padding:7px 14px}.clothing-heading{font-size:18px;margin-top:10px}.clothing-detail{font-size:14px;line-height:1.48}.advice-explanation{font-size:11px;margin-top:8px}
  .advice-image{margin-top:15px}.advice-image img{width:100%;height:auto;aspect-ratio:6 / 5;min-height:0;max-height:none;object-fit:cover;object-position:center center;border-radius:12px}
  .advice-actions{padding-top:15px;gap:9px}.cta-link{font-size:14px;min-height:46px}.disclosure{font-size:10px;margin-top:2px}.text-link{font-size:13px}
  .settings{padding:16px;margin-top:13px}.section-heading{gap:11px;margin-bottom:15px}.section-heading h2{font-size:clamp(16px,4.2vw,17px)}.section-heading p{font-size:12px;text-wrap:pretty;line-height:1.4}.icon-circle{width:39px;height:39px;border-radius:12px}.icon-circle svg{height:21px;width:21px}.place-input-row input{font-size:16px}.secondary-button{padding:10px 14px}
  .safety{margin-top:12px;padding:14px 16px;align-items:start;gap:11px}.safety h2{font-size:16px}.safety p{font-size:12px}
  .faq{margin-top:12px;padding:16px}.faq .section-heading{margin-bottom:10px}.faq summary{font-size:13px;line-height:1.35;padding-top:11px;padding-bottom:11px}.faq summary:after{top:7px}
  .site-footer{padding:19px 0 120px}.footer-sky{height:121px;background-size:auto 120px}
}
@media (max-width:350px){.source-bar{font-size:11px}.brand strong{font-size:20px}.brand small{font-size:8px;letter-spacing:0}.nav-link{padding:7px 8px;font-size:12px}.site-header{gap:5px}.advice-body{padding:14px}.mission{font-size:12px}}
@media (min-width:641px) and (max-width:790px){.intro-decoration{display:none}.intro-copy{flex:1}.intro{gap:8px}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* v1.9: mobile-first compact homepage; desktop layouts remain unchanged. */
@media (max-width:640px){
  .homepage .intro{padding:8px 0 11px;justify-content:center}
  .homepage .intro-copy{max-width:100%;width:100%}
  .homepage .intro h1{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;margin:-1px!important;padding:0!important;border:0!important}
  .homepage .intro-copy>p:last-child:not(.mission){display:none}
  .homepage .intro .mission{justify-content:center;text-align:center;margin:6px 0 8px;font-size:12px;white-space:normal}
  .homepage .advice-image{display:none}
  .homepage .advice-body{padding:16px 17px 17px}
  .homepage .advice-copy h2{font-size:19px;margin-bottom:8px}
  .homepage .advice-actions{padding-top:14px}
  .homepage .source-bar{min-height:47px}
}
