/* "Know why it fits." Each guide is shown by a working piece of itself, resting on one shelf:
   the worked example, the first checks, and the widening search from Sydney. The titles keep the guides' own serif. */
.kw { width:min(100% - 48px,1120px); margin:0 auto; padding:clamp(72px,10svh,112px) 0 clamp(64px,9svh,100px); color:#292530; font-family:Manrope,sans-serif; text-align:left; --kw-gap:clamp(20px,2.4vw,32px); --kw-row:clamp(324px,26.5vw,368px); --kw-ease:cubic-bezier(.16,1,.3,1); }

.kw-head { display:flex; align-items:flex-end; justify-content:space-between; gap:40px; margin-bottom:clamp(28px,3.4vw,40px); }
html[data-awaya-theme] body .kw-head h2 { margin:0; color:inherit; font-size:clamp(36px,3.6vw,50px); font-weight:600; line-height:1.1; letter-spacing:-.035em; text-align:left; }
html[data-awaya-theme] body .kw-head p { max-width:360px; margin:0; color:#514959; font-size:16px; line-height:1.6; text-align:left; }
.kw-head .text-action { margin-top:8px; }

/* The panel sits behind the first row, and each guide's object and words share that row and the next. */
.kw-shelf { position:relative; display:grid; grid-template-columns:.86fr .98fr 1.16fr; grid-template-rows:var(--kw-row) auto; column-gap:var(--kw-gap); padding-inline:var(--kw-gap); }
.kw-shelf::before { content:""; grid-column:1 / -1; grid-row:1; margin-inline:calc(var(--kw-gap) * -1); border-radius:24px; background:#eee9f6; }
.kw-guide { position:relative; grid-row:1 / span 2; display:grid; grid-template-rows:subgrid; grid-template-columns:minmax(0,1fr); }
.kw-guide:nth-of-type(1) { grid-column:1; }
.kw-guide:nth-of-type(2) { grid-column:2; }
.kw-guide:nth-of-type(3) { grid-column:3; }
.kw-words { grid-row:2; grid-column:1; }

/* Words. The title is the link, stretched over the whole guide, so the anchor text is the article's own title. */
html[data-awaya-theme] body .kw-guide h3 { margin:clamp(20px,2vw,26px) 0 0; color:#292530; font-family:Georgia,"Times New Roman",serif; font-size:clamp(22px,1.95vw,27px); font-weight:400; line-height:1.18; letter-spacing:-.022em; text-align:left; text-wrap:balance; }
.kw-guide h3 a { color:inherit; text-decoration:none; }
.kw-guide h3 a::after { content:""; position:absolute; z-index:3; inset:0; border-radius:24px; }
html[data-awaya-theme] body .kw-guide h3 a:focus-visible { outline:none; }
.kw-guide h3 a:focus-visible::after { outline:3px solid #82659b; outline-offset:6px; }
.kw-guide:hover h3 a { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:.16em; }
html[data-awaya-theme] body .kw-words p { margin:10px 0 0; color:#514959; font-size:15px; line-height:1.55; text-align:left; }
.kw-action { display:inline-flex; align-items:center; gap:8px; margin-top:14px; color:#292530; font-size:14px; font-weight:650; }
.kw-action svg { fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; transition:transform .35s var(--kw-ease); }
.kw-action small { margin-left:6px; color:#68616f; font-size:13px; font-weight:500; font-variant-numeric:tabular-nums; }
.kw-guide:hover .kw-action svg { transform:translateX(4px); }

/* The objects stand on the panel's bottom edge, which crops them, so each reads as continuing past what's shown. */
.kw-object { grid-row:1; grid-column:1; min-width:0; margin:0; display:flex; flex-direction:column; justify-content:flex-end; clip-path:inset(-60px -60px 0 -60px); }
.kw-tilt { transform:rotate(var(--tilt,0deg)) translateY(0); transform-origin:50% 100%; margin-bottom:-26px; transition:transform .55s var(--kw-ease); }
.kw-guide:hover .kw-tilt { transform:rotate(0deg) translateY(-8px); }
.kw-guide:nth-of-type(n+2) .kw-object { justify-content:flex-start; padding-top:clamp(18px,2vw,26px); }
.kw-guide:nth-of-type(1) { --tilt:-1.6deg; }
.kw-guide:nth-of-type(2) { --tilt:1.1deg; }
.kw-guide:nth-of-type(3) { --tilt:-.7deg; }

/* The receipt: torn along the top, printed up out of the shelf. */
.kw-receipt-rise { filter:drop-shadow(0 14px 22px rgba(48,38,64,.14)); transition:transform 1.1s var(--kw-ease); }
.kw-receipt { --tooth:12px; padding:calc(var(--tooth) + 18px) 20px 44px; background:#fffdfb; font-variant-numeric:tabular-nums; -webkit-mask:conic-gradient(from 135deg at top,#0000,#000 1deg 89deg,#0000 90deg) top / var(--tooth) calc(var(--tooth) / 2) repeat-x, linear-gradient(#000 0 0) 0 calc(var(--tooth) / 2) / 100% 100% no-repeat; mask:conic-gradient(from 135deg at top,#0000,#000 1deg 89deg,#0000 90deg) top / var(--tooth) calc(var(--tooth) / 2) repeat-x, linear-gradient(#000 0 0) 0 calc(var(--tooth) / 2) / 100% 100% no-repeat; }
.kw-receipt > strong { display:block; margin-bottom:14px; font-size:13px; font-weight:650; }
.kw-receipt dl { margin:0; }
.kw-receipt dl > div { display:flex; justify-content:space-between; gap:12px; padding:6px 0; font-size:13px; line-height:1.35; }
.kw-receipt dt { color:#514959; }
.kw-receipt dd { margin:0; flex:none; font-weight:600; }
.kw-receipt dl > .kw-receipt-rule { margin-top:6px; padding-top:12px; border-top:1px dashed #b4a9c4; }
html[data-awaya-theme] body .kw-receipt-total { display:flex; align-items:baseline; gap:8px; margin:12px 0 0; padding-top:12px; border-top:1px dashed #b4a9c4; color:#292530; font-size:13px; line-height:1; text-align:left; }
.kw-receipt-total b { font-size:clamp(40px,3.7vw,52px); font-weight:600; letter-spacing:-.04em; }
.kw-receipt-total span { color:#514959; font-weight:500; }

/* The checklist. */
.kw-list { padding:20px 20px 40px; border-radius:16px 16px 0 0; background:#fff; box-shadow:0 14px 34px rgba(48,38,64,.13); }
.kw-list > strong { display:block; margin-bottom:12px; font-size:13px; font-weight:650; }
.kw-list ul { margin:0; padding:0; list-style:none; }
.kw-list li { display:grid; grid-template-columns:22px minmax(0,1fr); column-gap:11px; align-items:start; padding:9px 0; border-top:1px solid #eee9f4; color:#292530; font-size:14px; font-weight:500; line-height:1.35; }
.kw-list li:not(.is-done) { color:#514959; }
.kw-list svg { display:block; fill:none; stroke:#b4a9c4; stroke-width:1.4; }
.kw-list .is-done circle { fill:#40364e; stroke:#40364e; }
.kw-list .is-done path { fill:none; stroke:#fff; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:1; stroke-dashoffset:0; transition:stroke-dashoffset .5s var(--kw-ease); }
.kw-list .is-done circle { transition:fill .3s ease, stroke .3s ease; }
.kw-list li:nth-child(1) * { transition-delay:.55s; }
.kw-list li:nth-child(2) * { transition-delay:.8s; }
.kw-list li:nth-child(3) * { transition-delay:1.05s; }

/* The map: the page's own dotted land, centred on Sydney, with the search widening out from it. */
.kw-map { overflow:hidden; border-radius:16px 16px 0 0; background:linear-gradient(90deg,#0000 calc(33.333% - 1px),rgba(64,54,78,.06) 33.333%,#0000 calc(33.333% + 1px),#0000 calc(66.666% - 1px),rgba(64,54,78,.06) 66.666%,#0000 calc(66.666% + 1px)),#fffdfb; box-shadow:0 14px 34px rgba(48,38,64,.13); }
.kw-map svg { display:block; width:100%; height:var(--kw-row); }
.kw-rings circle { fill:rgba(118,92,188,.1); stroke:rgba(84,64,140,.22); stroke-width:1; transform-box:fill-box; transform-origin:center; transition:transform 1s var(--kw-ease) calc(.5s + var(--i) * .12s); }
.kw-map text { fill:#292530; font-size:17px; font-weight:600; letter-spacing:-.01em; text-anchor:middle; paint-order:stroke; stroke:rgba(255,253,251,.72); stroke-width:3px; stroke-linejoin:round; }
.kw-rings text { transition:opacity .45s ease calc(.75s + var(--i) * .12s); }
.kw-map-centre { fill:#40364e; }
.kw-map .kw-map-start { fill:#fff; stroke:none; font-size:17px; }

/* Until the shelf is in view: the receipt hasn't printed, nothing is ticked, the search hasn't widened. */
.kw.is-waiting .kw-receipt-rise { transform:translateY(62%); }
.kw.is-waiting .kw-list .is-done path { stroke-dashoffset:1; }
.kw.is-waiting .kw-list .is-done circle { fill:#fff; stroke:#b4a9c4; }
.kw.is-waiting .kw-rings circle { transform:scale(.18); }
.kw.is-waiting .kw-rings text { opacity:0; }

@media (max-width:1040px) {
  .kw-shelf { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .kw-list li { font-size:13px; padding:8px 0; }
  .kw-receipt dl > div { font-size:12px; }
}
@media (max-width:860px) {
  .kw { width:100%; padding:64px 0 58px; }
  .kw-head { display:block; margin-bottom:28px; padding-inline:20px; }
  html[data-awaya-theme] body .kw-head p { margin-top:14px; }
  .kw-shelf { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:none; row-gap:36px; padding-inline:16px; }
  .kw-shelf::before { display:none; }
  .kw-guide, .kw-guide:nth-of-type(n) { grid-column:1; grid-row:auto; display:flex; flex-direction:column; }
  .kw { --kw-row:280px; }
  .kw-object { height:var(--kw-row); padding-inline:clamp(20px,9vw,48px); border-radius:20px; background:#eee9f6; clip-path:inset(0 round 20px); }
  .kw-object { order:-1; }
  .kw-map text, .kw-map .kw-map-start { font-size:19px; }
  html[data-awaya-theme] body .kw-guide h3 { margin-top:18px; font-size:24px; }
  .kw-words { padding-inline:4px; }
  .kw-tilt { width:min(100%,400px); align-self:center; }
  .kw-receipt { padding-top:calc(var(--tooth) + 10px); padding-bottom:36px; }
  .kw-guide h3 a::after { border-radius:20px; }
}
@media (prefers-reduced-motion:reduce) {
  .kw-tilt, .kw-receipt-rise, .kw-action svg, .kw-rings circle, .kw-rings text, .kw-list * { transition:none; }
}

/* On a phone the three guides sit in a row you swipe, each with its own piece, the next one peeking in.
   Only the row scrolls sideways; it snaps to each guide. */
@media (max-width:760px) {
  .kw { --kw-row:220px; }
  .kw-shelf { display:flex; gap:14px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scroll-padding-inline:20px; padding:0 20px 8px; scrollbar-width:none; }
  .kw-shelf::-webkit-scrollbar { display:none; }
  .kw-guide, .kw-guide:nth-of-type(n) { flex:0 0 min(80vw,320px); scroll-snap-align:start; }
  .kw-object { padding-inline:18px; }
  html[data-awaya-theme] body .kw-guide h3 { margin-top:16px; font-size:21px; }
  html[data-awaya-theme] body .kw-words p { font-size:14.5px; }
}
