/* The homepage, "The Cut" (scripts/home-sections.js, home-feed.js), and
   /builds. CuratedAI's own minimal language, taken from the briefing page:
   narrow column, serif italic titles, mono labels, hairlines, no boxes.
   Only the site's theme tokens; nothing new to keep in sync. */
.hp { --hp-gap: 20px; }
.m { max-width: 960px; margin: 0 auto; padding: 0 0 40px; }
.m:first-child { padding-top: 96px; }
.m-front + .m, .m + .m { padding-top: 0; }
.m a { color: inherit; }
.m .mono { font-family: var(--mono); }

/* front page */
.m-dateline { margin: 0 0 18px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--page-muted); }
.m-title { text-align: left; margin: 0 0 18px; font-size: clamp(56px, 9vw, 120px); line-height: .9; }
.m-lede { margin: 0 0 26px; max-width: 600px; font-family: var(--mono); font-size: 15px; line-height: 1.7; color: var(--page-muted); }
.m-search { display: flex; align-items: center; gap: 12px; max-width: 600px; padding: 12px 0; border-bottom: 1px solid var(--page-text); margin-bottom: 0; }
.m-search span { color: var(--page-muted); }
.m-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--page-text); font-family: var(--mono); font-size: 15px; outline: none; }

.m-issue { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; border-top: 1px solid var(--line); padding-top: 28px; }
.m-label { margin: 0 0 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--page-muted); }
.m-lead h2 { margin: 0 0 10px; font-family: ui-serif, Georgia, serif; font-style: italic; font-weight: 900; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.02; letter-spacing: -.035em; }
.m-lead h2 a { text-decoration: none; }
.m-src { display: block; font-size: 12px; color: var(--page-muted); margin-top: 4px; }
.m-sum { margin: 14px 0 0; font-size: 15px; line-height: 1.65; color: var(--page-text); opacity: .85; }
.m-list { list-style: none; margin: 0; padding: 0; }
.m-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.m-list li:first-child { padding-top: 0; }
.m-n { font-size: 12px; color: var(--page-muted); padding-top: 2px; }
.m-list a { font-weight: 700; font-size: 15px; line-height: 1.35; text-decoration: none; }
.m-list a:hover, .m-lead h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.m-more { margin: 20px 0 0; font-size: 12px; }

/* section heads, shared */
.m-section, .m .fd { margin-top: 88px; }
.m-head, .m .hp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.m-h, .m .hp-head h2 { margin: 0; font-family: ui-serif, Georgia, serif; font-style: italic; font-weight: 900; font-size: 36px; letter-spacing: -.035em; color: var(--page-text); }
.m .hp-head p { margin: 6px 0 0; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--page-muted); max-width: 640px; }
.m-head a { font-size: 12px; color: var(--page-muted); }

/* feed filters: plain text, active underlined */
.m .fd-filters { display: grid; gap: 6px; padding: 10px 0; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.m .fd-chips { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.m .fd-chips button { font-family: var(--mono); font-size: 12px; padding: 4px 0; border: 0; background: none; color: var(--page-muted); cursor: pointer; }
.m .fd-chips button i { font-style: normal; opacity: .6; margin-left: 3px; }
.m .fd-chips button.on { color: var(--page-text); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.m .fd-chips[data-group="topic"] button { font-size: 11px; }

/* feed rows: the briefing's numbered list, in two columns */
.m .fc-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.m .fc { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.m .fc[hidden], .m .fc.fc-more { display: none; }
.m .fc-thumb { display: none; }
.m .fc-body { display: grid; gap: 6px; }
.m .fc-top { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--page-muted); }
.m .fc-type::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--tc)); margin-right: 8px; vertical-align: 1px; }
.m .fc-date { margin-left: auto; }
.m .fc h3 { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.35; font-weight: 700; }
.m .fc h3 a { color: var(--page-text); text-decoration: none; }
.m .fc:hover h3 a { text-decoration: underline; text-underline-offset: 3px; }
.m .fc p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--page-text); opacity: .75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* A build's line is our whole write-up, so it is never cut off. */
.m .fc-build p { display: block; -webkit-line-clamp: unset; overflow: visible; }
.m .fc-foot { display: flex; justify-content: space-between; gap: 12px; }
.m .fc-meta { font-family: var(--mono); font-size: 12px; color: var(--page-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m .fc-open { font-family: var(--mono); font-size: 11px; color: var(--page-muted); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.m .fc:hover .fc-open { opacity: 1; }
.m .fd-more { display: block; margin: 24px auto 0; font-family: var(--mono); font-size: 12px; padding: 0; border: 0; background: none; color: var(--page-text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.m .fd-more[hidden] { display: none; }
.m .fd-end { margin-top: 36px; text-align: center; display: grid; gap: 6px; }
.m .fd-end b { font-family: ui-serif, Georgia, serif; font-style: italic; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.m .fd-end span { font-family: var(--mono); font-size: 12px; color: var(--page-muted); }
.m .fd-end-links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }

/* directory: a typographic list with hairline bars */
/* The directory: each category, its top three tools, a bar in its family's
   colour and its count. Rows rise in, bars grow and counts run up once, when
   the list scrolls into view (script adds .m-anim, then .m-in). */
.m-cats { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 56px; }
.m-cats li { break-inside: avoid; }
.m-cats a { position: relative; display: grid; grid-template-columns: 10px minmax(0, 1fr) 90px 36px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--page-text); }
.m-dot, .m-cats .m-dot { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--c)); }
.m-cats .m-dot { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s; }
.m-cat-txt { display: grid; gap: 2px; min-width: 0; }
.m-cat { font-size: 14px; font-weight: 700; transition: transform .25s ease; }
.m-cat-top { font-size: 12px; line-height: 1.45; color: var(--page-muted); transition: color .2s, transform .25s ease; }
.m-bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.m-bar i { display: block; height: 100%; width: var(--w); border-radius: 2px; background: rgb(var(--c)); opacity: .85; transform-origin: left; transition: opacity .2s; }
.m-count { font-size: 12px; color: var(--page-muted); text-align: right; font-variant-numeric: tabular-nums; }
.m-cats a:hover .m-cat, .m-cats a:focus-visible .m-cat { transform: translateX(3px); }
.m-cats a:hover .m-cat-top, .m-cats a:focus-visible .m-cat-top { color: var(--page-text); transform: translateX(3px); }
.m-cats a:hover .m-dot, .m-cats a:focus-visible .m-dot { transform: scale(1.8); box-shadow: 0 0 0 4px rgba(var(--c), .18); }
.m-cats a:hover .m-bar i { opacity: 1; }
.m-cats.m-anim li { opacity: 0; transform: translateY(14px); }
.m-cats.m-anim .m-bar i { transform: scaleX(0); }
.m-cats.m-anim.m-in li { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 45ms); }
.m-cats.m-anim.m-in .m-bar i { transform: scaleX(1); transition: transform 1s cubic-bezier(.2, .7, .2, 1), opacity .2s; transition-delay: calc(120ms + var(--i) * 45ms); }

/* The build map: one dot per build. Filled = we cut a reel of it; ring =
   written up from the maker's post. Months fill in left to right. */
.bm-map { display: grid; overflow-x: auto; }
.bm-row { display: grid; grid-template-columns: minmax(170px, 1.4fr) repeat(var(--cols, 8), minmax(64px, 1fr)) 44px; align-items: stretch; border-bottom: 1px solid var(--line); }
.bm-headrow { border-bottom: 1px solid var(--page-text); }
.bm-headrow span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--page-muted); padding: 8px 4px; }
.bm-kind { display: flex; align-items: center; gap: 10px; padding: 10px 8px 10px 0; font-size: 14px; font-weight: 600; color: var(--page-text); text-decoration: none; line-height: 1.25; }
.bm-kind:hover span { text-decoration: underline; text-underline-offset: 3px; }
.bm-kind .m-dot { flex-shrink: 0; }
.bm-cell { display: flex; flex-wrap: wrap; align-content: center; gap: 3px; padding: 10px 4px; border-left: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.bm-cell:hover { background: rgba(var(--c), .07); }
.bm-cell i { width: 7px; height: 7px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid rgb(var(--c)); transition: transform .15s ease; }
.bm-cell i.r { background: rgb(var(--c)); }
.bm-cell i.on { transform: scale(1.9); box-shadow: 0 0 0 2px var(--page-bg); position: relative; z-index: 1; }
.bm-total { align-self: center; text-align: right; font-size: 12px; color: var(--page-muted); }
.bm.m-anim .bm-cell i { opacity: 0; transform: scale(0); }
.bm.m-anim.m-in .bm-cell i { opacity: 1; transform: none; transition: opacity .3s ease, transform .45s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--m, 0) * 110ms + var(--i) * 9ms); }
.bm.m-anim.m-in .bm-cell i.on { transform: scale(1.9); transition-delay: 0s; }
.bm-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap; margin-top: 14px; }
.bm-cap { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-height: 1.5em; }
.bm-cap .m-dot { align-self: center; flex-shrink: 0; }
.bm-cap-meta { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--page-muted); }
.bm-cap-t { font-size: 14px; font-weight: 600; }
.bm-key { margin: 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 11px; color: var(--page-muted); }
.bm-key span { display: inline-flex; align-items: center; gap: 6px; }
.bm-k { width: 7px; height: 7px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--page-text); }
.bm-k.r { background: var(--page-text); }
@media (max-width: 720px) {
  .bm-row { grid-template-columns: 116px repeat(var(--cols, 8), minmax(58px, 1fr)) 36px; }
  .bm-kind { position: sticky; left: 0; z-index: 2; background: var(--page-bg); font-size: 12px; }
  .bm-headrow > :first-child { position: sticky; left: 0; z-index: 2; background: var(--page-bg); }
  .bm-foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .m-cats li, .m-bar i, .bm-cell i { transition: none !important; } }

.m-studio { padding-top: 24px; border-top: 1px solid var(--line); text-align: center; }
.m-studio p { margin: 0 auto 10px; max-width: 620px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--page-muted); }

/* quick look: same panel, without the boxes */
.qd { position: fixed; inset: 0; z-index: 2147483000; }
.qd-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .2s ease; }
.qd-panel { box-sizing: border-box; position: absolute; top: 0; right: 0; bottom: 0; width: min(500px, 100%); background: var(--page-bg); border-left: 1px solid var(--line); overflow-y: auto; padding: 28px 32px 40px; transform: translateX(104%); transition: transform .22s cubic-bezier(.2,.8,.2,1); overscroll-behavior: contain; }
.qd.open .qd-scrim { opacity: 1; }
.qd.open .qd-panel { transform: none; }
.qd-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: var(--page-bg); color: var(--page-text); font-size: 18px; line-height: 1; cursor: pointer; }
.qd-close:hover { border-color: var(--page-text); }
.qd-top { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--page-muted); padding-right: 48px; }
.qd-top .fc-type::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--tc)); margin-right: 8px; vertical-align: 1px; }
.qd-top .fc-date { margin-left: auto; }
.qd h4 { margin: 16px 0 16px; font-family: ui-serif, Georgia, serif; font-style: italic; font-size: 30px; line-height: 1.05; font-weight: 900; letter-spacing: -.03em; color: var(--page-text); }
.qd-content { display: grid; gap: 20px; color: var(--page-text); }
.qd-lede { margin: 0; font-size: 15px; line-height: 1.7; }
.qd-content .qd-lede + .qd-lede { margin-top: -8px; }
.qd-q { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--page-muted); }
.qd h5, .qd .qd-sub { margin: 0 0 8px; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--page-muted); }
.qd-why { padding-left: 16px; border-left: 2px solid rgb(var(--tc)); }
.qd-why p { margin: 0; font-size: 14.5px; line-height: 1.65; }
.qd-facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.qd-facts > div { padding: 10px 0; border-top: 1px solid var(--line); }
.qd-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--page-muted); }
.qd-facts dd { margin: 3px 0 0; font-size: 14px; font-weight: 600; }
.qd-facts dd small { display: block; font-weight: 400; font-size: 12px; color: var(--page-muted); }
.qd-muted { color: var(--page-muted); font-weight: 400; }
.qd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.qd-list ul { margin: 0; padding-left: 16px; font-size: 14px; line-height: 1.55; }
.qd-list li { margin-bottom: 4px; }
.qd-chips { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.qd-chips a, .qd-chips span { font-family: var(--mono); font-size: 13px; }
.qd-chips a { text-decoration: underline; text-underline-offset: 4px; }
.qd-chips span { color: var(--page-muted); }
.qd-shot { display: block; }
.qd-shot img { display: block; width: 100%; height: auto; border-radius: 4px; }
.qd-video { position: relative; aspect-ratio: 16 / 9; background: #111; border-radius: 4px; overflow: hidden; }
.qd-video button { position: absolute; inset: 0; border: 0; background: transparent; color: #fff; font-family: var(--mono); font-size: 13px; cursor: pointer; }
.qd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.qd-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; padding-top: 6px; border-top: 1px solid var(--line); }
.qd-actions a { font-family: var(--mono); font-size: 13px; color: var(--page-text); }
.qd-actions .qd-primary { background: var(--btn-bg); color: var(--btn-text); padding: 11px 18px; border-radius: 999px; text-decoration: none; }

@media (max-width: 900px) {
  .m:first-child { padding-top: 72px; }
  .m-issue { grid-template-columns: 1fr; gap: 28px; }
  .m .fc-grid { grid-template-columns: 1fr; }
  .m-cats { columns: 1; }
}
@media (max-width: 720px) {
  .m .fd-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .m .fd-chips::-webkit-scrollbar { display: none; }
  .m .fd-chips button { flex-shrink: 0; }
  .m .fc-open { opacity: 1; }
  .m-cats a { grid-template-columns: 10px minmax(0, 1fr) 60px 32px; }
  .qd-panel { top: auto; left: 0; width: 100%; max-height: 88vh; border-left: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; transform: translateY(104%); padding: 22px 20px 32px; }
  .qd h4 { font-size: 24px; }
  .qd-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .qd-panel, .qd-scrim, .m .fc-open { transition: none; } }
.qd a { color: inherit; } .qd-actions .qd-primary { color: var(--btn-text); }
.m .fd-noticed { margin: 0 0 28px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.m .fd-noticed h3 { margin: 0 0 10px; font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--page-muted); }
.m .fd-noticed ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.m .fd-noticed li { font-size: 15px; line-height: 1.55; padding-left: 18px; position: relative; }
.m .fd-noticed li::before { content: "—"; position: absolute; left: 0; color: var(--page-muted); }
.m-sub { margin: -8px 0 22px; font-size: 13px; color: var(--page-muted); }
/* Shown by script only while the map overflows sideways (phones). */
.m-map-hint { margin: 8px 0 0; font-size: 11px; color: var(--page-muted); text-align: left; }
.m-map-hint[hidden] { display: none; }

/* Front page: the lead, the numbered list beside it, and the signup under
   the lead, where the left column had empty space. On a phone it follows
   the list, right after the top 10. */
.m-issue { grid-template-areas: "lead list" "signup list"; grid-template-rows: auto 1fr; row-gap: 32px; }
.m-lead { grid-area: lead; }
.m-list { grid-area: list; }
.m-signup { grid-area: signup; align-self: start; padding: 20px 0 0; border-top: 1px solid var(--line); }
.m-signup-copy { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--page-text); opacity: .85; }
.m-signup-form { display: flex; gap: 8px; max-width: 440px; }
.m-signup-form input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--page-text); font-family: var(--mono); font-size: 13px; }
.m-signup-form input:focus { outline: none; border-color: var(--page-text); }
.m-signup-form button { height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--btn-bg); color: var(--btn-text); font-family: var(--mono); font-size: 13px; cursor: pointer; }
.m-signup-form button:disabled { opacity: .6; cursor: default; }
.m-signup-status { margin: 10px 0 0; font-size: 12px; color: var(--page-muted); min-height: 1em; }
.m-signup-status:empty { display: none; }

/* In the directory: two typographic lists of real tools. */
.m-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.m-tools h3.m-label { margin: 0 0 4px; padding-bottom: 10px; border-bottom: 1px solid var(--page-text); font-weight: 400; }
.m-tool-list { list-style: none; margin: 0; padding: 0; }
.m-tool-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.m-tool-name { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; text-decoration: none; }
.m-tool-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.m-tool-tag { margin: 0 0 0 16px; font-size: 14px; line-height: 1.45; color: var(--page-text); opacity: .75; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.m-tool-meta { margin: 0 0 0 16px; font-size: 11px; letter-spacing: .04em; color: var(--page-muted); }
.m-tools .m-more { margin-top: 14px; }
.m-note { margin: 14px 0 0; font-size: 12px; color: var(--page-muted); }
.m-reach { white-space: nowrap; }

/* The search block, restyled to the same column and heading as the rest. */
#search { max-width: 960px; margin-left: auto; margin-right: auto; }
#search .hp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
#search .hp-head h2 { margin: 0; font-family: ui-serif, Georgia, serif; font-style: italic; font-weight: 900; font-size: 36px; letter-spacing: -.035em; color: var(--page-text); }
#search .hp-head p { margin: 6px 0 0; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--page-muted); }

@media (max-width: 900px) {
  .m-issue { grid-template-areas: "lead" "list" "signup"; grid-template-rows: auto; }
  .m-tools { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  /* styles.css pins every .title to 28px !important on phones; the
     masthead is the one title that should stay big. */
  .m .m-title { font-size: clamp(56px, 17vw, 96px) !important; }
  .m-h, .m .hp-head h2, #search .hp-head h2 { font-size: 30px; }
  .m-head { flex-wrap: wrap; }
}


/* Search results on the homepage: compact cards. The full "Why" lives on the
   tool page; here a card is a name, a line and its tags, so a phone screen
   shows several tools instead of most of one. */
#search .card { padding: 18px !important; min-height: 0 !important; }
#search .card-why, #search .card-preview { display: none !important; }
#search .card-tagline { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#search .card-foot { margin-top: 10px !important; padding-top: 10px !important; }
#search .visit-btn { padding: 8px 16px !important; min-height: 0 !important; min-width: 0 !important; font-size: 12px !important; margin: 0 !important; }
#search .filter-bar { margin-top: 0; }
@media (max-width: 720px) {
  /* A phone result is a name and a line; the card itself opens the tool. */
  #search .card-meta, #search .card-foot { display: none !important; }
  #search .card { padding: 14px 16px !important; }
}

/* Type stays visible; the other five filter groups fold behind one line. */
.hp-filters-more { margin-top: 6px; }
.hp-filters-more > summary {
  cursor: pointer; list-style: none; font-size: 12px; color: var(--page-muted);
  padding: 10px 0; display: inline-flex; align-items: center; gap: 8px;
}
.hp-filters-more > summary::-webkit-details-marker { display: none; }
.hp-filters-more > summary::before { content: "+"; display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 50%; font-size: 12px; }
.hp-filters-more[open] > summary::before { content: "−"; }
.hp-filters-more[open] > summary { color: var(--page-text); }
@media (max-width: 720px) {
  .hp-pulse .hp-story:nth-child(n+4), .hp-pulse .hp-panel:last-child li:nth-child(n+4) { display: none; }
  #search .chips { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  #search .chips::-webkit-scrollbar { display: none; }
  #search .chips > * { flex-shrink: 0; }
}

/* The search block repeats nothing the sections above already say. */
#search .micro, #search .pill-interactive.shiny-btn { display: none !important; }
#search .command { box-sizing: border-box; max-width: 100%; }
@media (max-width: 720px) {
  #search .command-palette-trigger { display: none !important; }
  #search .examples { gap: 8px !important; }
  #search .examples .pill { font-size: 11px; padding: 7px 12px; }
}

/* Search results in the page's own language: hairline rows in two columns,
   not boxed cards. Scoped to #search; tool cards elsewhere are untouched.
   !important because app.js and the pre-render set inline grid styles. */
#search .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 56px !important; row-gap: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; }
#search .card { text-align: left; font: inherit; color: inherit; width: 100%; cursor: pointer; }
#search .card-meta .new-badge[style] { background: none !important; }
#search .card { position: relative; background: none !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; padding: 14px 0 !important; transform: none !important; }
#search .card::before, #search .card::after { display: none !important; }
#search .card-header { margin: 0 0 4px !important; }
#search .card-name, #search .card-name a { font-family: var(--sans) !important; font-size: 15px !important; font-weight: 700 !important; letter-spacing: 0 !important; color: var(--page-text) !important; }
#search .card:hover .card-name a { text-decoration: underline; text-underline-offset: 3px; }
#search .card-tagline { font-family: var(--sans) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 14px !important; font-weight: 400 !important; line-height: 1.45 !important; color: var(--page-text) !important; opacity: .75; -webkit-line-clamp: 1 !important; margin: 2px 0 0 !important; }
#search .card-meta { margin: 6px 0 0 !important; gap: 0 !important; }
#search .card-meta .new-badge, #search .card-meta .freshness-pill { all: unset; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--page-muted); }
#search .card-meta .new-badge { color: var(--page-text); margin-right: 8px; }
#search .card-meta .new-badge::after { content: " ·"; color: var(--page-muted); }
#search .card-foot { border: 0 !important; margin: 4px 0 0 !important; padding: 0 !important; display: flex !important; justify-content: space-between; align-items: center; }
#search .card-foot .price-pill { all: unset; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--page-muted); }
#search .card-foot .bestfor-tag { display: none !important; }
#search .visit-btn { all: unset; position: relative; z-index: 2; font-family: var(--mono); font-size: 11px; color: var(--page-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#search .visit-btn::after { content: " ↗"; }
#search .visit-btn:hover { color: var(--page-text); }
@media (max-width: 720px) {
  #search .grid { grid-template-columns: 1fr !important; }
  #search .card-meta, #search .card-foot { display: flex !important; }
}

/* Masthead: title and search on the left, the issue's cut on the right,
   so the space beside "The Cut." carries the one number the name promises. */
.m-masthead { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: end; margin-bottom: 48px; }
.m-masthead--solo { grid-template-columns: 1fr; }
.m-cutviz { padding-bottom: 4px; }
.m-cutviz .m-label { margin-bottom: 6px; }
.m-cut-big { margin: 0 0 14px; display: flex; align-items: baseline; gap: 10px; }
.m-cut-big b { font-family: ui-serif, Georgia, serif; font-style: italic; font-weight: 900; font-size: 64px; line-height: .9; letter-spacing: -.04em; }
.m-cut-big span { font-family: var(--mono); font-size: 13px; color: var(--page-muted); }
.m-dots { display: grid; grid-template-columns: repeat(auto-fill, 9px); gap: 5px; margin-bottom: 18px; }
.m-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--page-text); opacity: .16; }
.m-dots i.on { opacity: 1; box-shadow: 0 0 0 2px var(--page-bg), 0 0 0 3px var(--page-text); }
/* Motion: every story starts in, then the ones that did not run fall away. */
.m-dots.m-cutting i:not(.on) { opacity: 1; }
.m-dots.m-cut i:not(.on) { opacity: .16; transition: opacity .9s ease; transition-delay: calc(var(--d, 0) * 1ms); }
.m-cut-stats { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.m-cut-stats div { padding: 8px 0; border-top: 1px solid var(--line); }
.m-cut-stats dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--page-muted); }
.m-cut-stats dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.m-stats-inline { color: var(--page-muted); }
@media (max-width: 900px) {
  .m-masthead { grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
  .m-cutviz { max-width: 520px; }
}
@media (max-width: 520px) {
  .m-dots { grid-template-columns: repeat(auto-fill, 7px); gap: 4px; }
  .m-dots i { width: 7px; height: 7px; }
  .m-cut-big b { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) { .m-dots.m-cut i { transition: none; } }

/* Phones, measured at 390px. The example searches wrapped into a centred
   stack with "+ more" squeezed into a circle; they scroll as one row like
   the type chips below. Result meta sat centred under a left-aligned name:
   styles.css makes the card a column flexbox with align-items: center. */
@media (max-width: 720px) {
  #search .examples { flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #search .examples::-webkit-scrollbar { display: none; }
  #search .examples > * { flex-shrink: 0; white-space: nowrap; }
  #search .examples .pill-more { width: auto !important; height: auto !important; min-height: 0 !important; border-radius: 999px !important; }
  #search .card { align-items: stretch !important; }
  #search .card-meta { justify-content: flex-start !important; text-align: left !important; }
  #search .card-foot { justify-content: space-between !important; }
}

/* The masthead's door to /start, for readers new to the field. */
.m-lede .m-start { display: inline-block; margin-top: 8px; color: var(--page-text); text-underline-offset: 4px; white-space: nowrap; }

/* First-visit welcome (js/welcome.js): one card, once per browser, pointing
   at /start. The orange is /start's own accent, so the card reads as a door
   to that page rather than another homepage panel. */
.welcome { box-sizing: border-box; position: fixed; z-index: 60; right: 24px; bottom: 24px; width: min(380px, calc(100vw - 32px)); padding: 22px 22px 20px; border: 1px solid var(--page-text); border-radius: 14px; background: var(--page-bg); color: var(--page-text); box-shadow: 6px 6px 0 var(--page-text); opacity: 0; transform: translateY(24px); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }
.welcome.is-in { opacity: 1; transform: none; }
.welcome-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--page-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.welcome-x:hover { background: rgba(var(--page-text-rgb), .08); color: var(--page-text); }
.welcome-dots { display: grid; grid-template-columns: repeat(14, 8px); gap: 6px; margin-bottom: 16px; }
.welcome-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--page-text-rgb), .28); transform: translate(var(--x), var(--y)) scale(.4); opacity: 0; }
.welcome-dots i.on { background: #e4572e; }
.welcome.is-in .welcome-dots i { animation: welcome-sort .9s cubic-bezier(.2, .8, .2, 1) var(--d) forwards; }
@keyframes welcome-sort { to { transform: none; opacity: 1; } }
.welcome-kick { margin: 0 0 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--page-muted); }
.welcome-title { margin: 0 34px 10px 0; font-family: ui-serif, Georgia, serif; font-weight: 900; font-size: 27px; line-height: 1.08; letter-spacing: -.03em; }
.welcome-title em { font-style: italic; }
.welcome-title em::after { content: ""; display: inline-block; width: .2em; height: .2em; margin-left: .06em; border-radius: 50%; background: #e4572e; }
.welcome-text { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: var(--page-muted); }
.welcome-actions { display: flex; align-items: center; gap: 16px; }
.welcome-go { display: inline-block; padding: 11px 18px; border-radius: 999px; background: var(--page-text); color: var(--page-bg) !important; font-size: 13px; text-decoration: none; transition: transform .15s ease; }
.welcome-go:hover { transform: translate(-1px, -1px); }
.welcome-no { border: 0; background: none; padding: 8px 0; color: var(--page-muted); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.welcome-no:hover { color: var(--page-text); }
.welcome-go:focus-visible, .welcome-no:focus-visible, .welcome-x:focus-visible { outline: 2px solid var(--page-text); outline-offset: 2px; }
@media (max-width: 560px) {
  .welcome { right: 16px; bottom: 16px; padding: 18px 18px 16px; box-shadow: 4px 4px 0 var(--page-text); }
  .welcome-dots { grid-template-columns: repeat(14, 6px); gap: 5px; }
  .welcome-dots i { width: 6px; height: 6px; }
  .welcome-title { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .welcome { transition: none; transform: none; }
  .welcome-dots i { transform: none; opacity: 1; }
  .welcome.is-in .welcome-dots i { animation: none; }
}
