/* Topic hub page (Owner-approved design 2026-11-22). The site header, nav and footer are the theme's own.
   Phones: everything wraps or stacks; nothing scrolls sideways except the approved theme strip, which
   can be switched to a still grid in the template screen. */
.cd-hub { --ink: #3a3a46; --muted: #6b7280; --line: #e9e6e1; --soft: #f6f5f3; --cream: #fbf8f3; --magenta: #ec008c; --turquoise: #00a99d; --orange: #f7941d; --green: #96c24e; --thin: 'Heebo', 'Rubik', sans-serif; color: var(--ink); background: #fff; }
.cd-hub img { display: block; max-width: 100%; }
.cd-hub__crumbs { font-size: 13px; color: var(--muted); padding: 22px 0 0; }
.cd-hub__crumbs a { color: inherit; text-decoration: none; }

.cd-hub__hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; min-height: 400px; margin: 14px 0 26px; }
.cd-hub__hero-txt { padding-inline-start: 8px; }
.cd-hub__hero h1 { font-family: var(--thin); font-weight: 200; font-size: clamp(42px, 4.6vw, 76px); line-height: 1.05; margin: 0; letter-spacing: -.01em; color: var(--ink); }
.cd-hub__bars { display: flex; gap: 6px; margin: 26px 0 22px; }
.cd-hub__bars i { width: 34px; height: 3px; border-radius: 3px; display: block; background: var(--magenta); }
.cd-hub__bars i:nth-child(2) { background: var(--orange); }
.cd-hub__bars i:nth-child(3) { background: var(--green); }
.cd-hub__bars i:nth-child(4) { background: var(--turquoise); }
.cd-hub__hero p { font-size: 19px; font-weight: 300; color: #4b5160; margin: 0 0 30px; max-width: 30ch; }
.cd-hub__btn { display: inline-flex; align-items: center; gap: 10px; background: var(--magenta); color: #fff; text-decoration: none; border-radius: 999px; padding: 14px 30px; font: inherit; font-weight: 500; font-size: 16px; min-height: 48px; border: 0; cursor: pointer; }
.cd-hub__btn:hover { background: #cf007b; color: #fff; }
.cd-hub__btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.cd-hub__btn--ghost:hover { background: var(--ink); color: #fff; }
.cd-hub__btn--green { background: var(--green); color: #1f2430; }
.cd-hub__btn--green:hover { background: #86b13f; color: #1f2430; }
.cd-hub__hero-media { height: 400px; border-radius: 26px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 93% 100%, 0 100%); }
.cd-hub__hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }

.cd-hub__cats { list-style: none; margin: 0; padding: 0 0 34px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cd-hub__cat { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s; }
.cd-hub__cat:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(31,36,48,.08); }
.cd-hub__cat-img { display: block; height: 96px; overflow: hidden; }
.cd-hub__cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cd-hub__cat:hover .cd-hub__cat-img img { transform: scale(1.05); }
.cd-hub__cat-name { display: flex; justify-content: center; gap: 8px; align-items: baseline; padding: 9px 14px 10px; font-weight: 500; font-size: 16px; border-top: 1px solid var(--line); }
.cd-hub__cat-name small { color: var(--muted); font-weight: 400; font-size: 12px; }

.cd-hub__looks { position: relative; border-radius: 24px; overflow: hidden; height: 440px; background: var(--cream); }
.cd-hub__look { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.cd-hub__look.is-on { opacity: 1; pointer-events: auto; }
.cd-hub__look > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.cd-hub__look-name { position: absolute; bottom: 18px; right: 22px; background: rgba(255,255,255,.88); backdrop-filter: blur(6px); border-radius: 999px; padding: 6px 16px; font-size: 14px; }
.cd-hub__pin { position: absolute; transform: translate(50%, 0); width: 44px; height: 56px; display: flex; justify-content: center; text-decoration: none; z-index: 2; }
.cd-hub__swing { display: block; transform-origin: 50% 0; animation: cd-hub-sway 3.4s ease-in-out infinite; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.cd-hub__pin:hover .cd-hub__swing, .cd-hub__pin:focus-visible .cd-hub__swing { animation-play-state: paused; filter: drop-shadow(0 6px 10px rgba(236,0,140,.35)); }
.cd-hub__pin:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; border-radius: 8px; }
@keyframes cd-hub-sway { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
.cd-hub__card { position: absolute; width: 250px; background: #fff; border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.2); padding: 9px; z-index: 4; display: none; grid-template-columns: 64px 1fr; gap: 11px; align-items: center; text-decoration: none; color: var(--ink); }
.cd-hub__card.is-open { display: grid; }
.cd-hub__card img { width: 64px; height: 64px; object-fit: contain; background: var(--soft); border-radius: 10px; }
.cd-hub__card b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 500; line-height: 1.3; margin-bottom: 2px; }
.cd-hub__price { display: block; font-size: 14px; font-weight: 600; }
.cd-hub__go { display: block; font-size: 12px; color: var(--magenta); }
.cd-hub__dots { display: flex; justify-content: center; gap: 10px; padding: 18px 0 64px; }
.cd-hub__dot-hit { padding: 14px 4px; background: none; border: 0; cursor: pointer; }
.cd-hub__dot { display: block; width: 9px; height: 9px; border-radius: 9px; background: #d6d2cb; transition: width .3s, background .3s; }
.cd-hub__dot.is-on { width: 26px; background: var(--magenta); }
.cd-hub__looks-wrap:not(:has(.cd-hub__dots)) { padding-bottom: 64px; }

.cd-hub__sec-title { display: flex; align-items: center; gap: 26px; justify-content: center; margin: 0 0 24px; }
.cd-hub__sec-title h2 { font-family: var(--thin); font-weight: 200; font-size: clamp(30px, 3.2vw, 44px); margin: 0; text-align: center; color: var(--ink); }
.cd-hub__sec-title::before, .cd-hub__sec-title::after { content: ''; height: 2px; border-radius: 2px; flex: 1; max-width: 240px; }
.cd-hub__sec-title::before { background: linear-gradient(to left, var(--magenta), var(--orange) 45%, rgba(247,148,29,0)); }
.cd-hub__sec-title::after { background: linear-gradient(to right, var(--turquoise), var(--green) 45%, rgba(150,194,78,0)); }
.cd-hub__chips { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.cd-hub__chip { --c: var(--magenta); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 20px; cursor: pointer; font: inherit; font-size: 15px; min-height: 46px; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); transition: border-color .2s, background .2s; }
.cd-hub__chip--1 { --c: var(--green); } .cd-hub__chip--2 { --c: var(--turquoise); } .cd-hub__chip--3 { --c: var(--orange); }
.cd-hub__chip:hover { border-color: var(--c); }
.cd-hub__chip[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.cd-hub__chip .n { font-size: 12px; color: var(--muted); }

.cd-hub__finder { position: relative; }
.cd-hub__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: 0 6px 20px rgba(31,36,48,.12); display: grid; place-items: center; cursor: pointer; font-size: 26px; line-height: 1; }
.cd-hub__arrow:hover { border-color: var(--magenta); color: var(--magenta); }
.cd-hub__arrow--right { right: 16px; } .cd-hub__arrow--left { left: 16px; }
.cd-hub__marquee { position: relative; overflow: hidden; padding: 6px 0; cursor: grab; touch-action: pan-y; user-select: none; direction: ltr; }
.cd-hub__marquee.is-drag { cursor: grabbing; }
.cd-hub__marquee::before, .cd-hub__marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none; }
.cd-hub__marquee::before { right: 0; background: linear-gradient(to left, #fff, rgba(255,255,255,0)); }
.cd-hub__marquee::after { left: 0; background: linear-gradient(to right, #fff, rgba(255,255,255,0)); }
.cd-hub__track { display: flex; gap: 22px; width: max-content; will-change: transform; direction: ltr; }
.cd-hub__col { display: flex; flex-direction: column; gap: 18px; padding-top: 10px; }
/* Still: a small group, or the grid view. Centred, read right to left, no fades, no arrows. */
.cd-hub__finder.is-static .cd-hub__marquee { cursor: default; touch-action: auto; user-select: auto; }
.cd-hub__finder.is-static .cd-hub__marquee::before, .cd-hub__finder.is-static .cd-hub__marquee::after, .cd-hub__finder.is-static .cd-hub__arrow { display: none; }
.cd-hub__finder.is-static .cd-hub__track { direction: rtl; margin: 0 auto; }
.cd-hub__finder.is-grid .cd-hub__track { display: grid; grid-template-columns: repeat(auto-fill, 118px); justify-content: center; width: min(100% - 32px, 1600px); gap: 18px 22px; transform: none !important; }
.cd-hub__theme { display: block; width: 118px; text-decoration: none; text-align: center; direction: rtl; color: var(--ink); }
.cd-hub__theme-img { --ring: #f4c9dc; --bg: var(--cream); --shape: var(--blob, 50%); position: relative; width: 104px; height: 104px; margin: 0 auto 10px; border-radius: var(--shape); border: 4px solid var(--ring); padding: 5px; box-sizing: border-box; background: linear-gradient(var(--bg), var(--bg)) content-box, #fff; overflow: hidden; display: grid; place-items: center; isolation: isolate; box-shadow: 0 6px 14px -8px rgba(58,58,70,.25); transition: transform .25s, box-shadow .25s, border-color .25s; }
.cd-hub__theme:hover .cd-hub__theme-img, .cd-hub__theme:focus-visible .cd-hub__theme-img { transform: translateY(-4px); border-color: var(--magenta); box-shadow: 0 14px 22px -10px rgba(236,0,140,.35); }
.cd-hub__theme-img > img { border-radius: var(--shape); width: 80%; height: 80%; object-fit: contain; pointer-events: none; }
.cd-hub__theme-img.is-icon > img { width: 100%; height: 100%; object-fit: cover; }
.cd-hub__theme-img.is-photo > img { width: 74%; height: 74%; mix-blend-mode: multiply; }
.cd-hub__theme-img > span { font-size: 30px; font-weight: 200; color: var(--muted); }
.cd-hub__theme-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.cd-hub__actions { display: flex; justify-content: center; padding: 30px 0 0; }
.cd-hub__all { padding: 34px 0 0; }
.cd-hub__group { margin-bottom: 26px; }
.cd-hub__group h3 { font-weight: 500; font-size: 17px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.cd-hub__group h3::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.cd-hub__group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cd-hub__group a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; color: var(--ink); }
.cd-hub__group a:hover { border-color: var(--magenta); color: var(--magenta); }

.cd-hub__ins-wrap { padding-top: 64px; }
.cd-hub__ins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 0 0 56px; }
.cd-hub__ins article { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.cd-hub__ins img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.cd-hub__ins div { padding: 16px 18px 20px; }
.cd-hub__ins h3 { margin: 0 0 6px; font-weight: 500; font-size: 18px; }
.cd-hub__ins p { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.cd-hub__more { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; color: var(--ink); }
.cd-hub__more:hover { border-color: var(--ink); }
.cd-hub__news { background: var(--soft); border-radius: 24px; margin: 48px 0; padding: 34px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cd-hub__news h2 { margin: 0; font-weight: 300; font-size: 24px; }
.cd-hub__news p { margin: 4px 0 0; color: var(--muted); }

@media (max-width: 980px) {
  .cd-hub__hero { grid-template-columns: minmax(0, 1fr); gap: 22px; min-height: 0; }
  .cd-hub__hero-media, .cd-hub__hero-txt { min-width: 0; }
  .cd-hub__hero-media { order: -1; height: auto; aspect-ratio: 16 / 10; clip-path: none; }
  .cd-hub__cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cd-hub__looks { height: auto; aspect-ratio: 4 / 3; }
  .cd-hub__arrow { width: 40px; height: 40px; }
  .cd-hub__ins { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cd-hub__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cd-hub__cats li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cd-hub__cat-img { height: 84px; }
  .cd-hub__chips { gap: 8px; }
  .cd-hub__chip { min-height: 40px; padding: 6px 14px; font-size: 14px; }
  .cd-hub__looks { aspect-ratio: 3 / 4; border-radius: 20px; }
  .cd-hub__look > img { object-position: 35% 50%; }
  .cd-hub__card { left: 12px !important; right: 12px !important; top: auto !important; bottom: 12px; width: auto; }
  .cd-hub__swing svg { width: 26px; height: 40px; }
  .cd-hub__theme { width: 92px; }
  .cd-hub__theme-img { width: 82px; height: 82px; }
  .cd-hub__finder.is-grid .cd-hub__track { grid-template-columns: repeat(auto-fill, 92px); gap: 14px 12px; }
  .cd-hub__marquee::before, .cd-hub__marquee::after { width: 36px; }
  .cd-hub__news { padding: 26px 20px; }
  .cd-hub__news .cd-hub__btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-hub__look { transition: none; }
  .cd-hub__swing { animation: none; }
}

/* Owner 2026-11-22 pass: tighter rhythm, no dead space; phone title on one line, chips in two rows. */
.cd-hub__crumbs { padding-top: 14px; }
@media (min-width: 981px) { .cd-hub__hero { min-height: 340px; margin: 8px 0 20px; } .cd-hub__hero-media { height: 340px; } }
.cd-hub__bars { margin: 18px 0 16px; }
.cd-hub__hero p { margin-bottom: 22px; }
.cd-hub__cats { padding-bottom: 22px; }
@media (min-width: 981px) { .cd-hub__looks { height: 400px; } }
.cd-hub__dots { padding: 8px 0 26px; }
.cd-hub__looks-wrap:not(:has(.cd-hub__dots)) { padding-bottom: 30px; }
.cd-hub__sec-title { margin-bottom: 16px; }
.cd-hub__chips { margin-bottom: 18px; }
.cd-hub__actions { padding-top: 18px; }
.cd-hub__all { padding-top: 22px; }
.cd-hub__ins-wrap { padding-top: 40px; }
.cd-hub__ins { padding-bottom: 30px; }
.cd-hub__news { margin: 28px 0; padding: 26px 32px; }
@media (max-width: 980px) {
  .cd-hub__hero { gap: 14px; margin-bottom: 16px; }
  .cd-hub__hero-media { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .cd-hub__br { display: none; }
  .cd-hub__hero h1 { font-size: clamp(28px, 8.4vw, 36px); line-height: 1.15; white-space: nowrap; }
  .cd-hub__bars { margin: 10px 0 10px; }
  .cd-hub__bars i { width: 26px; }
  .cd-hub__hero p { font-size: 16px; margin-bottom: 14px; max-width: none; }
  .cd-hub__btn { padding: 10px 22px; min-height: 44px; font-size: 15px; }
  .cd-hub__cats { padding-bottom: 16px; }
  .cd-hub__dots { padding: 4px 0 14px; }
  .cd-hub__sec-title { gap: 12px; margin-bottom: 12px; }
  .cd-hub__sec-title h2 { font-size: 26px; }
  .cd-hub__chips { gap: 6px; margin-bottom: 12px; }
  .cd-hub__chip { min-height: 34px; padding: 4px 10px; font-size: 13px; gap: 5px; }
  .cd-hub__chip .n { font-size: 11px; }
  .cd-hub__col { gap: 12px; }
  .cd-hub__theme-img { margin-bottom: 6px; }
  .cd-hub__theme-name { font-size: 14px; }
  .cd-hub__ins-wrap { padding-top: 28px; }
  .cd-hub__ins { gap: 14px; padding-bottom: 20px; }
  .cd-hub__news { margin: 20px 0; }
}
@media (max-width: 400px) {
  .cd-hub__chips { gap: 5px; }
  .cd-hub__chip { padding: 4px 9px; font-size: 12.5px; gap: 4px; }
  .cd-hub__chip .n { display: none; }
}

/* Nothing inside a hub may widen the page on a phone. */
.cd-hub { overflow-x: clip; }

/* Owner 2026-11-24 phone pass: short hero (text right, picture left), first tile wide and the rest
   two per row, the look shown as a 3:2 frame with each picture's own focus, tighter gaps. */
@media (max-width: 640px) {
  .cd-hub__crumbs { padding-top: 8px; }
  .cd-hub__hero { grid-template-columns: minmax(0, .5fr) minmax(0, 1fr); gap: 4px; align-items: center; margin: 6px 0 20px; }
  .cd-hub__hero-txt { padding-inline-start: 2px; }
  /* The slanted edge of the desktop hero, kept on phones; the whole picture shows, with the air
     around the gift box, inside the page margins with rounded corners as on the home page. */
  .cd-hub__hero-media { order: 0; aspect-ratio: 1303 / 724; height: auto; border-radius: 18px; clip-path: polygon(0 0, 100% 0, 91% 100%, 0 100%); }
  .cd-hub__hero-media img { object-position: 50% 50%; }
  .cd-hub__hero h1 { font-size: 22px; line-height: 1.1; white-space: normal; }
  .cd-hub__bars { margin: 7px 0; gap: 4px; }
  .cd-hub__bars i { width: 20px; }
  .cd-hub__hero p { font-size: 12.5px; line-height: 1.3; margin-bottom: 8px; }
  .cd-hub__hero-txt { display: flex; flex-direction: column; }
  .cd-hub__hero .cd-hub__btn { align-self: center; padding: 4px 14px; white-space: nowrap; min-height: 36px; font-size: 13px; gap: 5px; }
  .cd-hub__cats { gap: 8px; padding-bottom: 10px; }
  .cd-hub__cats li:last-child:nth-child(odd) { grid-column: auto; }
  .cd-hub__cats li:first-child { grid-column: 1 / -1; }
  .cd-hub__cats li:first-child .cd-hub__cat-img { height: 96px; }
  .cd-hub__cats li:first-child .cd-hub__cat-name { font-size: 19px; padding-block: 8px 9px; }
  .cd-hub__cat-name small, .cd-hub__chip .n { display: none; }
  .cd-hub__cat-img { height: 76px; }
  .cd-hub__cat-name { padding: 6px 10px 7px; font-size: 15px; }
  .cd-hub__looks { aspect-ratio: 3 / 2; border-radius: 18px; }
  .cd-hub__look > img { object-position: var(--cd-look-x, 50%) 50%; }
  .cd-hub__look-name { bottom: 8px; right: 8px; padding: 3px 11px; font-size: 12px; }
  .cd-hub__card { bottom: 8px; left: 8px !important; right: 8px !important; }
  .cd-hub__dots { padding: 0 0 4px; }
  .cd-hub__looks-wrap:not(:has(.cd-hub__dots)) { padding-bottom: 12px; }
  .cd-hub__sec-title { margin-bottom: 8px; }
  .cd-hub__sec-title h2 { font-size: 23px; }
  .cd-hub__chips { margin-bottom: 8px; }
  .cd-hub__actions { padding-top: 8px; }
  .cd-hub__actions.is-desk-only, .cd-hub__actions.is-desk-only + .cd-hub__all { display: none; }
  .cd-hub__track { gap: 10px; }
  .cd-hub__marquee { padding: 2px 0; }
  .cd-hub__col { gap: 6px; padding-top: 4px; }
  .cd-hub__theme-img { margin-bottom: 3px; }
  .cd-hub__theme-name { font-size: 13.5px; line-height: 1.15; min-height: 2.3em; }
  .cd-hub__ins-wrap { padding-top: 18px; }
  .cd-hub__ins { gap: 10px; padding-bottom: 12px; }
  .cd-hub__ins article { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: stretch; border-radius: 14px; }
  .cd-hub__ins img { aspect-ratio: auto; height: 100%; min-height: 104px; }
  .cd-hub__ins div { padding: 10px 12px; }
  .cd-hub__ins h3 { font-size: 15.5px; line-height: 1.25; margin-bottom: 4px; }
  .cd-hub__ins p { font-size: 13px; line-height: 1.35; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cd-hub__ins .cd-hub__more { min-height: 34px; padding: 3px 14px; font-size: 13px; }
  .cd-hub__news { margin: 12px 0; padding: 18px 16px; }
}
