/* the tier list, drawn as HTML so every word is real text */
.sr-tier { margin: 0; border-radius: 16px; overflow: hidden; background: #fbfaf7; border: 1px solid rgba(23, 22, 26, 0.14); color: #17161a; }
.sr-tier__row { display: grid; grid-template-columns: clamp(64px, 17vw, 168px) minmax(0, 1fr); min-height: 64px; border-bottom: 2px solid #fbfaf7; }
.sr-tier__row:last-child { border-bottom: 0; }
.sr-tier__label { margin: 0; display: flex; align-items: center; justify-content: center; padding: 10px 6px; font-weight: 700; font-size: clamp(1.0625rem, 0.85rem + 1.2vw, 1.75rem); line-height: 1.15; text-align: center; color: #17161a; overflow-wrap: anywhere; min-width: 0; }
.sr-tier__label--pool { padding: 10px 2px; font-size: clamp(0.6875rem, 0.55rem + 0.6vw, 1rem); font-weight: 600; overflow-wrap: normal; }
.sr-tier__items { margin: 0; padding: 8px; background: #f1efe9; min-width: 0; }
.sr-tier__items ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sr-chip { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; max-width: 100%; padding: 8px 12px; background: #ffffff; color: #17161a; border: 1px solid rgba(23, 22, 26, 0.16); border-radius: 10px; font-size: 0.9375rem; font-weight: 600; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }

/* the headcanons */
.sr-lines { list-style: none; counter-reset: sr-n; display: grid; gap: 12px; max-width: 46rem; margin: 0; padding: 0; }
.sr-lines li { counter-increment: sr-n; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 10px; padding: 16px 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; font-size: 1.0625rem; line-height: 1.55; color: var(--text-1); overflow-wrap: anywhere; }
.sr-lines li::before { content: counter(sr-n); font-weight: 700; color: var(--accent); }

/* a picture on its own (the embed; the page uses the tool page's stage) */
.sr-pic { margin: 0; display: grid; justify-items: center; gap: 12px; }
.sr-pic img { width: auto; max-width: 100%; height: auto; max-height: 70vh; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--border); }
.sr-words { margin: 0; max-width: 40rem; font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); text-align: center; overflow-wrap: anywhere; }
.sr-words b { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.sr { max-width: 1120px; margin: 0 auto; padding: 20px 16px 72px; }
@media (min-width: 720px) { .sr { padding: 32px 40px 96px; } }
.sr .seo-breadcrumb { flex-wrap: wrap; margin-bottom: 18px; }
.sr .seo-breadcrumb [aria-current] { overflow-wrap: anywhere; }
.sr-h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.375rem); line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 14px; text-wrap: balance; overflow-wrap: anywhere; }
.sr-lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.5; max-width: 38rem; color: var(--text-2); text-wrap: pretty; }
.sr-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 14px; font-size: 0.875rem; color: var(--text-3); }
.sr-meta a { color: var(--text-2); font-weight: 500; text-decoration: none; }
.sr-meta a:hover { text-decoration: underline; }
.sr-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }
.sr-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.sr-make { height: 56px; padding: 0 32px; font-size: 1.0625rem; }
.sr-quiet { color: var(--text-2); font-size: 0.9375rem; text-underline-offset: 3px; }
.sr-quiet:hover { color: var(--text-1); }
.sr-result { margin-top: 32px; }
.sr-result--text { max-width: 46rem; }
.sr-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.sr-facts li { padding: 6px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; font-size: 0.875rem; color: var(--text-2); overflow-wrap: anywhere; }
.sr-facts b { color: var(--text-1); font-weight: 600; margin-right: 4px; }

/* a picture page uses the tool page's first screen; the words that made it are never cut */
.sr-pichero { --stage-h: min(calc(100svh - 200px), 560px); padding-bottom: 8px; }
.sr-pichero .tp-hero__text { align-self: center; }
.sr-pichero .tp-made__v { display: block; -webkit-line-clamp: unset; overflow-wrap: anywhere; }
.sr-pichero .sr-cta { margin-top: 22px; }
.sr-pichero .sr-meta { margin-top: 12px; }
@media (min-width: 900px) {
  .sr-pichero { grid-template-areas: "text stage"; grid-template-rows: auto; align-items: center; }
}
.sr-main-wide { max-width: 1320px; margin: 0 auto; padding: 0 16px 72px; }
@media (min-width: 640px) { .sr-main-wide { padding: 0 40px 96px; } }

.sr-sec { margin-top: 64px; }
@media (min-width: 900px) { .sr-sec { margin-top: 88px; } }
.sr-h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; color: var(--text-1); margin-bottom: 24px; }
.sr-h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; color: var(--text-1); margin: 0; overflow-wrap: anywhere; }
.sr-h3 a { text-decoration: none; }
.sr-h3 a:hover { text-decoration: underline; }
.sr-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .sr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sr-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; text-decoration: none; color: var(--text-1); min-width: 0; transition: background 0.15s, border-color 0.15s; }
.sr-card:hover { background: var(--surface-3); border-color: var(--border-strong); text-decoration: none; }
.sr-card:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sr-card__thumb { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--surface-3); margin-bottom: 6px; }
.sr-card__t { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; overflow-wrap: anywhere; }
.sr-card__d { font-size: 0.875rem; line-height: 1.45; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.sr-more { margin-top: 20px; font-size: 0.9375rem; }
.sr-more a { color: var(--text-1); font-weight: 500; text-underline-offset: 3px; }

.sr-sec ol { padding-left: 1.5em; list-style: decimal; color: var(--text-2); }
.sr-sec ol li { margin-bottom: 6px; padding-left: 4px; }

/* embed and report */
.sr-tools { margin-top: 56px; display: grid; gap: 12px; max-width: 46rem; }
.sr-tools details { background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; padding: 0 20px; }
.sr-tools summary { display: flex; align-items: center; min-height: 56px; cursor: pointer; font-size: 1rem; font-weight: 600; color: var(--text-1); list-style: none; }
.sr-tools summary::-webkit-details-marker { display: none; }
.sr-tools summary::after { content: '+'; margin-left: auto; font-weight: 500; font-size: 1.5rem; color: var(--text-3); transition: transform 0.15s; }
.sr-tools details[open] summary::after { transform: rotate(45deg); }
.sr-tools summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 10px; }
.sr-tools .sr-body { padding: 0 0 20px; display: grid; gap: 12px; }
.sr-tools p { margin: 0; font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); }
.sr-tools a { color: var(--text-1); text-underline-offset: 3px; }
.sr-code { width: 100%; min-height: 128px; padding: 12px 14px; font: 0.8125rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-1); background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: 8px; resize: vertical; }
.sr-code:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sr-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; font: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--text-1); background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 8px; cursor: pointer; text-decoration: none; justify-self: start; }
.sr-btn:hover { background: var(--surface-3); text-decoration: none; }
.sr-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sr-btn[hidden], .sr-tools form[hidden] { display: none; }
.sr-tools form { display: grid; gap: 10px; max-width: 26rem; }
.sr-tools select, .sr-tools textarea.sr-note { font: inherit; font-size: 1rem; padding: 10px 12px; color: var(--text-1); background: var(--surface-1); border: 1px solid var(--border-strong); border-radius: 8px; width: 100%; }
.sr-tools select:focus-visible, .sr-tools textarea.sr-note:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sr-status { font-size: 0.9375rem; color: var(--text-1); }
.sr-brand { margin-top: 32px; font-size: 0.875rem; color: var(--text-3); }
.sr-brand a { color: var(--text-2); }

/* a page that is gone or not found */
.sr-gone { max-width: 640px; margin: 0 auto; padding: 96px 20px; text-align: center; }
.sr-gone__code { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 8px; }
.sr-gone h1 { font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.sr-gone p { color: var(--text-2); margin-bottom: 28px; }

/* the template gallery */
.sr-hub { max-width: 1320px; margin: 0 auto; padding: 20px 16px 0; }
@media (min-width: 640px) { .sr-hub { padding: 32px 40px 0; } }
.sr-hub .sr-lead { max-width: 42rem; }
.sr-groups { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.sr-groups a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-1); font-size: 0.9375rem; text-decoration: none; }
.sr-groups a:hover { background: var(--surface-3); text-decoration: none; }
.sr-groups a:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sr-gal { max-width: 1320px; margin: 0 auto; padding: 0 16px 24px; }
@media (min-width: 640px) { .sr-gal { padding: 0 40px 24px; } }
.sr-gal section { margin-top: 56px; scroll-margin-top: 72px; }
.sr-tpl { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; min-width: 0; }
.sr-tpl__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sr-tpl__chips li { padding: 4px 10px; background: var(--surface-3); border-radius: 999px; font-size: 0.8125rem; line-height: 1.4; color: var(--text-2); overflow-wrap: anywhere; }
.sr-tpl__act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: auto; padding-top: 4px; }
.sr-tpl__act .btn-ink { height: 44px; padding: 0 20px; font-size: 0.9375rem; }
.sr-empty { padding: 32px 24px; text-align: center; color: var(--text-2); background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 16px; }
.sr-empty a { color: var(--text-1); font-weight: 500; }
