/* Homepage v2 (scripts/home_page.py, public/hub/home.js). Mobile first: one column at 390 px, no sideways scroll.
   Brand: Midnight #0B0A1A, Saffron #FF8A1F, light saffron #FFB766, Ivory #F7F5F0, tints #FFF8F0 #FFF0DF #FFE1BF #FFCC94,
   amber #D97706 only for focus rings and borders. Contrast checked: Ivory on Midnight 18:1, Saffron on Midnight 8.3:1,
   #C9C6DA on Midnight 11:1, Midnight on Saffron 8.3:1, #4D4A63 on #FFF8F0 8.4:1, #57546a on white 7.4:1. */
.home-hero,.home-who,.home-int,.home-cats,.home-trust{overflow-x:clip}
.home-who :focus-visible,.home-int :focus-visible,.home-cats :focus-visible{outline:3px solid #D97706;outline-offset:2px}

/* ---------- 1. hero (v3, owner mockup 30 Nov 2026) ----------
   Fraunces (SIL OFL, /fonts/LICENSE-OFL-Fraunces.txt) for the big serif headings; scripts it lacks fall back to the
   site fonts. Contrast on Midnight #0B0A1A: Ivory 18:1, #C9C6DA 11:1, Saffron #FF8A1F 8.3:1, #FFB766 11:1;
   cards #15142B: Ivory 16:1, #FFB766 9.9:1; Midnight on Saffron button 8.3:1; Midnight on Ivory search 18:1. */
@font-face{font-family:'Fraunces';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/fraunces-latin-600.woff) format('woff');unicode-range:U+0000-017F,U+0218-021B,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+1E9E,U+2000-206F,U+2074,U+20AC,U+2122,U+2212}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/fraunces-latin-700.woff) format('woff');unicode-range:U+0000-017F,U+0218-021B,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+1E9E,U+2000-206F,U+2074,U+20AC,U+2122,U+2212}
.home-hero{--serif:'Fraunces',Georgia,'Times New Roman',var(--display),serif;background:#0B0A1A;color:#F7F5F0;padding:28px 0 40px;text-align:start;position:relative}
.home-hero::before{content:none}
.home-hero-in{display:flex;flex-direction:column;gap:30px}
.home-top{position:relative;display:grid;grid-template-columns:minmax(0,1fr);align-items:center;gap:24px}
.home-copy{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0;position:relative;z-index:1}
.home-hero .tagline{font-family:var(--body);font-weight:700;font-size:.74rem;letter-spacing:.32em;color:#F7F5F0;margin:0;text-transform:uppercase}
.home-hero .tagline-hi{margin:-4px 0 0;color:#F7F5F0;font-size:1.3rem;font-weight:600;line-height:1.4}
.home-hero h1{hyphens:manual;-webkit-hyphens:manual;overflow-wrap:normal;font-family:var(--serif);color:#F7F5F0;font-size:clamp(2.5rem,10vw,5rem);font-weight:700;line-height:1.02;letter-spacing:-.02em;margin:4px 0 0;max-width:none}
.home-hero h1 .hl-s{color:#FF8A1F;white-space:nowrap}
.home-hero .home-sub{margin:0;color:#F7F5F0;font-family:var(--serif);font-weight:600;font-size:clamp(1.05rem,2.6vw,1.3rem);line-height:1.4;max-width:none}
.home-hero .hub{width:100%;max-width:640px;margin:10px 0 0;text-align:start}
.home-search{position:relative;display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;background:#FBF4E8;border:2px solid transparent;border-radius:16px;padding:6px;padding-inline-start:48px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.home-search:focus-within{border-color:#FFB766;box-shadow:0 0 0 4px rgba(255,183,102,.35)}
.home-search .hs-ic{position:absolute;inset-inline-start:15px;width:24px;height:24px;color:#0B0A1A;pointer-events:none}
.home-search input{flex:1 1 auto;min-width:0;border:0;background:transparent;font:inherit;font-size:1rem;color:#0B0A1A;padding:12px 0;min-height:48px}
.home-search input:focus{outline:none}
.home-search input::placeholder{color:#57546a}
.home-go{flex:none;min-height:48px;padding:0 18px;border:0;border-radius:12px;background:#FF8A1F;color:#0B0A1A;font:700 1rem var(--body);cursor:pointer}
.home-go:hover{background:#FFB766}
.home-hero .hub-count{color:#C9C6DA;margin:8px 0 0;min-height:0}
.home-hero .hub-count:empty{display:none}
.home-hero .hub-results{margin-top:12px;grid-template-columns:1fr}
.home-hero .hub-results .tool-card{color:#0B0A1A;text-align:start}
.home-hero .home-count{margin:2px 0 0;color:#C9C6DA;font-size:1rem}
/* Siddhio Cricket / Siddhio Music */
.home-extras{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.hx{display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:6px 14px;border-radius:14px;background:#15142B;border:1px solid #3A3757;color:#F7F5F0!important;text-decoration:none!important;font-weight:600;font-size:.98rem}
.hx:hover{border-color:#FFB766;background:#1C1A33}
.hx-ic{width:22px;height:22px;color:#FF8A1F;flex:none}
.hx-badge{font-size:.72rem;font-weight:700;letter-spacing:.04em;padding:3px 8px;border-radius:999px;background:#2A1D12;color:#FFB766;border:1px solid #5A3A1A;white-space:nowrap}
.hx .chev,.pop-card .chev,.bt-pill .chev{width:18px;height:18px;flex:none;color:#C9C6DA}
/* golden orbit: decorative, hidden on small screens */
.home-orbit{display:none}
.home-orbit img{width:100%;height:auto;display:block;-webkit-mask-image:radial-gradient(closest-side,#000 86%,transparent 100%);mask-image:radial-gradient(closest-side,#000 86%,transparent 100%)}
[dir="rtl"] .home-orbit img{transform:scaleX(-1)}
/* Popular in <country> | Change location */
.home-hero .home-pop,.home-hero .home-browse{padding:0}
.home-pop-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px}
.home-pop h2,.home-browse h2{font-family:var(--serif);font-weight:600;font-size:clamp(1.5rem,4.6vw,2.2rem);line-height:1.15;color:#F7F5F0;margin:0}
.pop-sep{display:none;width:1px;height:1.4em;background:#4A4766}
.home-change{font:500 1rem var(--body);color:#FFB766;background:none;border:0;padding:8px 0;min-height:44px;cursor:pointer;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.home-change:hover{color:#F7F5F0}
.home-pick{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#15142B;border:1px solid #2E2C4A;border-radius:14px;padding:10px 12px;margin-top:12px;max-width:100%;box-sizing:border-box;width:fit-content}
.home-pick[hidden]{display:none}
.home-pick label{color:#C9C6DA;font-size:.9rem}
.home-pick select{min-height:44px;max-width:100%;border-radius:10px;border:1px solid #D97706;background:#F7F5F0;color:#0B0A1A;font:inherit;padding:0 10px}
.home-pick-done{min-height:44px;padding:0 16px;border-radius:10px;border:1px solid #FFB766;background:transparent;color:#F7F5F0;font:600 .92rem var(--body);cursor:pointer}
.pop-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-top:16px}
.pop-card,.bt-pill{display:flex;align-items:center;gap:14px;min-height:56px;padding:12px 16px;border-radius:16px;background:#15142B;border:1px solid #2A2846;color:#F7F5F0!important;text-decoration:none!important;font-weight:500;min-width:0;box-sizing:border-box}
.pop-card:hover,.bt-pill:hover{border-color:#FFB766;background:#1C1A33}
.pop-ic{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:34px;color:#FF8A1F;font:700 .95rem var(--display)}
.pop-ic svg,.pop-ic .pop-svg{width:30px;height:30px}
.pop-l{flex:1 1 auto;min-width:0;font-size:1.05rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* no jump when the visitor's country arrives: every card has room for its longest name (two lines on phones, three on wide screens),
   and on phones the heading keeps room for two lines (text sits at the bottom), so "Popular worldwide" -> "Popular in
   <country>" and the new cards never move what follows */
.pop-card{min-height:72px}
/* Browse tools */
.bt-pills{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.bt-pill{display:inline-flex;min-height:50px;padding:8px 14px;font-size:.98rem}
.bt-ic{width:24px;height:24px;color:#FF8A1F;flex:none}
.home-hero :focus-visible{outline:3px solid #FFB766;outline-offset:3px}
[dir="rtl"] .home-hero .chev{transform:scaleX(-1)}
@media (min-width:600px){
  .home-hero{padding:40px 0 56px}
  .home-go{padding:0 26px}
  .pop-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pop-sep{display:inline-block}
}
@media (max-width:599px){.home-pop h2{min-height:2.3em;display:flex;align-items:flex-end}.bt-pills{gap:8px}.bt-pill{padding:8px 12px;gap:8px;font-size:.92rem;min-height:46px}.bt-pill .chev{display:none}.home-go{padding:0 14px}}
@media (min-width:900px){
  .home-hero{padding:28px 0 72px}
  .home-hero-in{gap:36px}
  .home-top{margin-bottom:0}
  .home-top{grid-template-columns:minmax(0,1fr) 420px;gap:0;align-items:center}
  .home-orbit{display:block;width:600px;margin:-40px -150px 0 -30px;align-self:start}
  [dir="rtl"] .home-orbit{margin:-40px -30px 0 -150px}
  .home-search input{font-size:1.1rem}
  .home-hero .hub-results{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pop-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
  .pop-card{min-height:88px;padding:14px 18px;gap:12px}
  .pop-l{font-size:1rem;line-height:1.25;-webkit-line-clamp:3}
  .bt-pills{gap:18px}
  .bt-pill{min-height:64px;padding:10px 22px}
}
@media (min-width:900px){.home-hero h1{font-size:clamp(3.6rem,5.3vw,4.7rem)}}

/* ---------- shared tool cards on the homepage ---------- */
.home-who .tool-card,.home-int .tool-card,.home-cats .tool-card{color:#0B0A1A;text-decoration:none}
.tool-card .tool-svg{width:20px;height:20px}
.home-cats .tool-card .tool-ic,.home-who .tool-card .tool-ic,.home-int .tool-card .tool-ic{background:#FFE1BF;color:#0B0A1A;font-family:var(--display)}

/* ---------- 2. who are you ---------- */
.home-who{background:#FFF8F0;padding:36px 0}
.who-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
.who-main{min-width:0}
.home-who h2{font-family:var(--display);font-size:clamp(1.5rem,4.5vw,2.1rem);margin:0 0 6px}
.home-who .who-sub{margin:0 0 14px;color:#4D4A63}
.who-btns{display:flex;flex-wrap:wrap;gap:8px}
.who-b{min-height:46px;padding:0 16px;border-radius:14px;border:1px solid #FFCC94;background:#fff;color:#0B0A1A;font:600 .95rem var(--body);cursor:pointer}
.who-b:hover{border-color:#D97706}
.who-b[aria-pressed="true"]{background:#0B0A1A;border-color:#0B0A1A;color:#F7F5F0}
/* "What are you interested in?" (#95): continues the persona block, own panel below its chips */
.home-int{background:#FFF8F0;padding:0 0 36px}
.home-int .int-h{font-family:var(--display);font-size:1.15rem;margin:0 0 10px}
.sec-card{border-color:#FFCC94!important;background:#FFF8EF!important}
.sec-card .tool-ic{color:#D97706}
@media (min-width:1000px){.home-who .who-btns,.home-int .who-btns{gap:6px}.home-who .who-b,.home-int .who-b{white-space:nowrap;padding:0 13px;font-size:.92rem}}
.who-panel{margin-top:18px;background:#fff;border:1px solid #FFE1BF;border-radius:20px;padding:18px}
.who-title{font-family:var(--display);font-size:1.15rem;margin:0}
.who-cards{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:12px}
.who-cards .tool-card{flex-direction:row;flex-wrap:wrap;align-items:center;column-gap:12px;row-gap:2px;min-height:0;padding:12px 14px;background:#FFF8F0;border-color:transparent;border-radius:14px}
.who-cards .tool-card .tool-ic{flex:none;width:40px;height:40px}
.who-cards .tool-card b{flex:1 1 calc(100% - 60px);min-width:0}
.who-cards .tool-card span:last-child{flex:1 1 100%;padding-left:52px}
.who-cards .tool-card:hover{border-color:#FFCC94}

/* right-side card: Coming up (or the daily word game) */
.home-side{background:#0B0A1A;color:#F7F5F0;border-radius:22px;padding:20px;min-width:0}
.home-side h2{display:flex;align-items:center;gap:8px;font-family:var(--display);font-size:.82rem;letter-spacing:.18em;text-transform:uppercase;color:#FFB766;margin:0}
.home-side h2 .h-ic{width:18px;height:18px}
.home-side .side-date{margin:6px 0 0;color:#C9C6DA;font-size:.92rem}
.side-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
.side-list li[hidden]{display:none}
.side-list a{display:flex;gap:12px;align-items:flex-start;padding:10px;border-radius:14px;background:#15142B;border:1px solid #2A2846;color:#F7F5F0!important;text-decoration:none!important}
.side-list a:hover{border-color:#FFB766}
.side-ic{flex:none;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;background:#FF8A1F;color:#0B0A1A;font:700 .78rem var(--display)}
.side-ic svg{width:18px;height:18px}
.side-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.side-t b{font-size:.95rem}
.side-t small{color:#C9C6DA;font-size:.84rem;line-height:1.4}
.home-side .side-txt{color:#C9C6DA}
.side-btn{display:flex;align-items:center;justify-content:center;gap:8px;background:#FF8A1F;color:#0B0A1A}

/* ---------- 3. category tabs + grid ---------- */
.home-cats{background:#fff;padding:36px 0 40px}
.home-cats .hub-row{margin-bottom:24px}
.home-cats .hub-row h2{font-size:1.15rem;margin:0 0 10px}
.cats-head h2{font-family:var(--display);font-size:clamp(1.5rem,4.5vw,2.1rem);margin:0 0 14px}
.cat-tabs{display:flex;flex-wrap:wrap;gap:8px}
.cat-tab{min-height:44px;max-width:100%;padding:6px 14px;border-radius:18px;border:1px solid #EEE9DF;background:#fff;color:#0B0A1A;font:600 .9rem var(--body);cursor:pointer}
.cat-tab:hover{border-color:#D97706}
.cat-tab[aria-pressed="true"]{background:#0B0A1A;border-color:#0B0A1A;color:#F7F5F0}
.home-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}
.home-grid .tool-card{min-height:0;padding:14px;gap:8px;border-color:#EEE9DF;border-radius:16px;min-width:0}
.home-grid .tool-card .tool-ic{width:40px;height:40px;border-radius:12px}
.home-grid .tool-card b{font-size:.95rem;overflow-wrap:anywhere}
.home-grid .tool-card span:last-child{font-size:.84rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.home-all{text-align:center;margin:24px 0 0}

/* ---------- 4. trust strip ---------- */
.home-trust{background:#0B0A1A;color:#F7F5F0;padding:28px 0}
.trust-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.trust-list li{display:flex;gap:12px;align-items:flex-start;min-width:0}
.tr-ic{flex:none;width:38px;height:38px;padding:8px;box-sizing:border-box;border-radius:12px;background:#2A1D12;color:#FF8A1F}
.trust-list b{display:block;font-family:var(--display);color:#FFB766;font-size:1rem}
.trust-list small{display:block;color:#C9C6DA;font-size:.88rem;line-height:1.45;margin-top:2px}

/* ---------- wider screens ---------- */
@media (min-width:600px){
  .who-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .trust-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:900px){
  .who-grid{grid-template-columns:minmax(0,1fr) 360px;gap:28px}
  .who-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
  .who-cards .tool-card{flex-direction:column;flex-wrap:nowrap;align-items:flex-start;gap:6px}
  .who-cards .tool-card b,.who-cards .tool-card span:last-child{flex:none;padding-left:0}
  .trust-list{grid-template-columns:repeat(5,minmax(0,1fr))}
  .home-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .home-grid .tool-card{padding:20px}
}
@media (min-width:1180px){.home-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:380px){.home-grid{grid-template-columns:minmax(0,1fr)}}

/* ---------- compact "Free guides & resources" row (the full list is on /resources) ---------- */
.home-guides{background:#FFF8F0;padding:32px 0}
.guides-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 16px}
.guides-head h2{font-family:var(--display);font-size:clamp(1.4rem,4vw,1.9rem);margin:0}
.guides-all{font-weight:600;color:#0B0A1A;text-decoration:underline;text-decoration-color:#FF8A1F;text-decoration-thickness:2px;text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center}
.guides-grid{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:14px}
.guides-grid .tool-card{color:#0B0A1A;text-decoration:none;min-height:0;padding:14px;border-color:#FFE1BF}
.guides-grid .tool-card .tool-ic{background:#0B0A1A;color:#FFB766}
.guides-grid .tool-card span:last-child{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media (min-width:600px){.guides-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:900px){.guides-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}}
/* Tools by country, language and worldwide (owner 30 Nov 07:51): three rows of 8 cards with a one-line description;
   4 cards on phones, then "Show more". "Made for <country>" chips and the link to the country page. */
.pop-group{margin-top:28px}
.pop-group:first-child{margin-top:0}
.pop-group[hidden]{display:none}
.pop-h2{font-family:var(--serif);font-weight:600;font-size:clamp(1.3rem,3.8vw,1.8rem);line-height:1.15;color:#F7F5F0;margin:0}
.pop-t{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:2px}
.pop-t .pop-l{flex:none;-webkit-line-clamp:2}
.pop-d{color:#C9C6DA;font-size:.86rem;line-height:1.3;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pop-more{display:none;margin-top:10px;min-height:44px;padding:0 16px;border-radius:12px;border:1px solid #4A4766;background:transparent;color:#FFB766;font:600 .95rem var(--body);cursor:pointer}
.pop-own{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 0}
.pop-own[hidden]{display:none}
.pop-own-l{color:#C9C6DA;font-size:.92rem;font-weight:600;margin-right:2px}
.pop-chip{display:inline-flex;align-items:center;min-height:36px;padding:4px 12px;border-radius:999px;background:#2A1D12;border:1px solid #5A3A1A;color:#FFE2BF!important;text-decoration:none!important;font-size:.9rem}
.pop-chip:hover{border-color:#FFB766}
.pop-own-all{color:#FFB766!important;font-weight:600;font-size:.92rem;padding:6px 4px;text-underline-offset:4px}
.pop-all{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;margin:26px 0 0}
.pop-all-btn{display:inline-flex;align-items:center;min-height:48px;padding:0 20px;border-radius:14px;background:#FF8A1F;color:#0B0A1A!important;font-weight:700;text-decoration:none!important}
.pop-all-btn:hover{background:#FFB766}
.pop-all-link{color:#FFB766!important;font-weight:600;text-underline-offset:4px}
@media (max-width:599px){
  .pop-group:not(.open) .pop-cards .pop-card:nth-child(n+5){display:none}
  .pop-more{display:inline-flex;align-items:center}
  .pop-group:has(.pop-cards .pop-card:nth-child(5)) .pop-more{display:inline-flex}
}
@media (min-width:900px){ .pop-d{font-size:.84rem} .pop-t .pop-l{-webkit-line-clamp:2} .pop-card{min-height:92px} }
/* Who are you?: 9 cards (6 on phones), then "Show all N tools" */
.who-more{margin:14px 0 0}
.who-more[hidden]{display:none}
.who-all{min-height:46px;padding:0 18px;border-radius:12px;border:1px solid #0B0A1A;background:#0B0A1A;color:#F7F5F0;font:600 .95rem var(--body);cursor:pointer}
.who-all:hover{background:#2A2846}
@media (max-width:599px){ .who-cards:not(.open) .tool-card:nth-child(n+7){display:none} }
