/* Custom site styles. Edit this file directly. */

:root {
    color-scheme: light;
    --canvas: #fff;
    --panel: #fff;
    --ink: #101a2c;
    --muted: #485a73;
    --subtle: #63748b;
    --reading-ink: #283b55;
    --accent: #1d56dd;
    --link: #1547bb;
    --primary: #1d56dd;
    --primary-hover: #1547bb;
    --focus: #5282f4;
    --border: #d7e0ed;
    --field-border: #bfccde;
    --field-placeholder: #60758e;
    --surface: #f5f8fc;
    --home-surface: #f8fafd;
    --blue-surface: #edf3fb;
    --accent-surface: #eaf2ff;
    --media-surface: #eff4fa;
    --control-hover: #e8f0fd;
    --control-hover-border: #a7bce7;
    --danger: #9b302c;
    --danger-border: #bf4c49;
    --danger-surface: #fff0f0;
    --success: #145a31;
    --success-surface: #edf9f1;
    --hero-base: #f4f8fc;
    --hero-wash-wide: linear-gradient(90deg, rgb(247 249 252 / 65%), rgb(247 249 252 / 36%) 52%, rgb(242 248 253 / 10%));
    --hero-wash-mobile: linear-gradient(180deg, rgb(247 249 252 / 76%), rgb(247 249 252 / 50%) 65%, rgb(242 248 253 / 34%));
    --radius: 16px;
    --shadow: 0 2px 3px rgb(32 56 92 / 4%), 0 12px 28px rgb(32 56 92 / 4%);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --canvas: #0d1626;
    --panel: #162238;
    --ink: #f1f5ff;
    --muted: #becbe1;
    --subtle: #a2b1c9;
    --reading-ink: #d3dded;
    --accent: #9bbdff;
    --link: #b7ceff;
    --primary: #2659d2;
    --primary-hover: #1d4cb8;
    --focus: #a3beff;
    --border: #34455f;
    --field-border: #657d9d;
    --field-placeholder: #a2b1c9;
    --surface: #101c2f;
    --home-surface: #0f192a;
    --blue-surface: #111e33;
    --accent-surface: #213754;
    --media-surface: #17263d;
    --control-hover: #253a57;
    --control-hover-border: #637da7;
    --danger: #ffaaa7;
    --danger-border: #d87976;
    --danger-surface: #38202a;
    --success: #9ce6b7;
    --success-surface: #183128;
    --hero-base: #101a2d;
    --hero-wash-wide: linear-gradient(90deg, rgb(13 22 38 / 97%), rgb(16 28 48 / 92%) 55%, rgb(20 43 66 / 82%));
    --hero-wash-mobile: linear-gradient(180deg, rgb(13 22 38 / 97%), rgb(16 28 48 / 91%) 60%, rgb(20 43 66 / 82%));
    --shadow: 0 3px 5px rgb(0 0 0 / 12%), 0 14px 30px rgb(0 0 0 / 20%);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--canvas);
    color: var(--ink);
}
main {
    flex: 1 0 auto;
}
a {
    text-underline-offset: 4px;
}
button:not(:disabled), summary {
    cursor: pointer;
}
:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 4px;
}
[hidden] {
    display: none !important;
}
.shell {
    width: min(100% - 2 * clamp(20px, 4.25vw, 60px), 1240px);
    margin-inline: auto;
}
.reading-width {
    max-width: 820px;
}
.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.skip-link {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    width: max-content;
    color: #fff;
    background: var(--primary);
    border-radius: 8px;
    z-index: 10;
    transform: translateY(-150%);
}
.skip-link:focus {
    transform: translateY(0);
}
.site-header, .site-footer {
    background: var(--panel);
}
.site-header {
    border-bottom: 1px solid var(--border);
}
.site-footer {
    border-top: 1px solid var(--border);
}
.header-row, .footer-row {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 30px;
}
.footer-row {
    min-height: 92px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: clamp(17px, 2.1vw, 24px);
    line-height: 1.1;
    font-weight: 790;
    letter-spacing: -.035em;
}
.brand img {
    flex: none;
}
[data-theme="dark"] .brand img {
    filter: brightness(1.35) saturate(.85);
}
.site-footer .brand {
    font-size: 18px;
}
.header-actions {
    display: flex;
    flex: none;
    align-items: center;
    gap: clamp(12px, 2.3vw, 28px);
}
.theme-toggle, .menu-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    color: var(--link);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.theme-toggle:hover, .menu-toggle:hover {
    background: var(--control-hover);
    border-color: var(--control-hover-border);
}
.theme-toggle .theme-sun, [data-theme="dark"] .theme-toggle .theme-moon {
    display: none;
}
[data-theme="dark"] .theme-toggle .theme-sun {
    display: inline-block;
}
.menu-toggle, .menu-toggle .menu-close, .menu-toggle[aria-expanded="true"] .menu-bars {
    display: none;
}
.menu-toggle[aria-expanded="true"] .menu-close {
    display: inline-block;
}
.top-links, .footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px clamp(14px, 3vw, 36px);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}
.top-links a, .footer-links a {
    padding-block: 8px;
}
.top-links a:hover, .footer-links a:hover, .top-links a[aria-current], .footer-links a[aria-current] {
    color: var(--accent);
    text-decoration: underline;
}

.hero {
    --hero-wash: var(--hero-wash-wide);
    background: var(--hero-wash), var(--hero-base) url("/static/images/hero-background.webp") right center / cover no-repeat;
    padding-block: clamp(36px, 5.3vw, 76px);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.13fr 1fr;
    align-items: center;
    gap: clamp(30px, 5.2vw, 72px);
}
.hero-copy h1 {
    max-width: 620px;
    font-size: clamp(34px, 3.75vw, 52px);
    font-weight: 780;
    letter-spacing: -.04em;
    line-height: 1.12;
}
.hero-copy h1 span {
    color: var(--accent);
}
.hero-lead {
    margin: 23px 0 24px;
    color: var(--muted);
    font-size: clamp(16px, 1.45vw, 20px);
    line-height: 1.55;
    max-width: 45ch;
}
.hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 24px;
    color: var(--muted);
    font-weight: 650;
    font-size: 14px;
}
.hero-benefits i {
    color: var(--accent);
    margin-right: 5px;
}
.viewer-card {
    background: var(--panel);
    padding: clamp(22px, 3vw, 38px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.viewer-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 21px;
    margin-bottom: 23px;
    border-bottom: 1px solid var(--border);
}
.viewer-heading h2 {
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 790;
    letter-spacing: -.035em;
}
.icon-tile {
    display: grid;
    place-items: center;
    width: 55px;
    height: 55px;
    flex: none;
    background: var(--accent-surface);
    color: var(--accent);
    font-size: 21px;
    border-radius: 15px;
}
.field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 680;
    font-size: 14px;
    color: var(--ink);
}
.field {
    width: 100%;
    min-width: 0;
    min-height: 49px;
    padding: 11px 13px;
    border: 1px solid var(--field-border);
    border-radius: 10px;
    background: var(--panel);
    color: var(--ink);
}
.field::placeholder {
    color: var(--field-placeholder);
}
.field:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 1px;
    border-color: transparent;
}
.field[aria-invalid="true"] {
    border-color: var(--danger-border);
}
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-wrap i {
    position: absolute;
    left: 16px;
    color: var(--subtle);
    pointer-events: none;
}
.input-wrap .field {
    padding-left: 43px;
    min-height: 56px;
}
textarea.field {
    display: block;
    resize: vertical;
}

.recent-searches {
    margin-top: 14px;
}
.recent-searches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.recent-searches-header h3 {
    font-size: 13px;
    font-weight: 700;
}
.recent-searches-toggle {
    min-height: 28px;
    color: var(--link);
    font-size: 12px;
    font-weight: 700;
}
.recent-searches-toggle:hover, .recent-searches-note a:hover {
    text-decoration: underline;
}
.recent-search-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}
.recent-searches:has(.recent-searches-toggle[aria-expanded="true"]) .recent-search-list {
    max-height: 206px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.recent-search-chip {
    display: flex;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.recent-search-chip button {
    min-height: 32px;
    border-radius: 6px;
}
.recent-search-chip button:focus-visible {
    outline-offset: -2px;
}
.recent-search-open {
    min-width: 0;
    flex: 1;
    padding-inline: 7px 2px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 630;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}
.recent-search-remove {
    width: 30px;
    flex: none;
    color: var(--subtle);
    font-size: 12px;
}
.recent-search-open:hover, .recent-search-remove:hover {
    background: var(--control-hover);
    color: var(--link);
}
.recent-searches-note {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}
.recent-searches-note a {
    color: var(--link);
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
}
.btn-primary {
    color: #fff;
    background: var(--primary);
}
.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
}
.btn-secondary {
    color: var(--link);
    background: var(--panel);
    border-color: var(--border);
}
.btn-secondary:hover:not(:disabled) {
    background: var(--control-hover);
    border-color: var(--control-hover-border);
}
.btn:disabled {
    opacity: .65;
}
.viewer-submit {
    display: flex;
    width: 100%;
    margin-top: 12px;
    min-height: 54px;
    border-radius: 11px;
    font-size: 16px;
}
.form-help, .viewer-status {
    margin-top: 13px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}
.form-help[data-tone="success"] {
    color: var(--success);
}
.form-help[data-tone="error"] {
    color: var(--danger);
}
.viewer-status[data-kind="error"] {
    color: var(--danger);
}
.viewer-status[data-kind="error"], .viewer-status[data-kind="loading"] {
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.results-band {
    border-block: 1px solid var(--border);
    background: var(--blue-surface);
    padding-block: clamp(20px, 3vw, 36px);
}
.profile-header {
    overflow: hidden;
}
.profile-cover {
    height: clamp(140px, 20vw, 252px);
    background: var(--accent-surface);
}
.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-identity {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 17px 24px;
}
.profile-avatar, .post-avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    color: var(--link);
    background: var(--accent-surface);
    font-weight: 800;
    flex: none;
}
.profile-avatar {
    width: 76px;
    height: 76px;
    border: 3px solid var(--panel);
    font-size: 24px;
}
.profile-cover:not([hidden]) + .profile-identity .profile-avatar {
    margin-top: -43px;
    width: 91px;
    height: 91px;
}
.profile-avatar img, .post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-title {
    min-width: 0;
}
.profile-title h2 {
    overflow-wrap: anywhere;
    font-size: clamp(23px, 3.1vw, 36px);
    line-height: 1.15;
    letter-spacing: -.035em;
    font-weight: 810;
    scroll-margin-top: 125px;
}
.profile-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 10px;
    margin-top: 2px;
}
.profile-meta p {
    min-width: 0;
    color: var(--muted);
    overflow-wrap: anywhere;
}
.profile-source {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
    flex: none;
    color: var(--subtle);
    font-size: 13px;
    font-weight: 600;
}
.profile-source:hover {
    color: var(--link);
    text-decoration: underline;
}
.profile-source i {
    font-size: 10px;
}
.profile-grid {
    display: grid;
    grid-template-columns: minmax(210px, .31fr) minmax(0, .69fr);
    align-items: start;
    gap: 18px;
    margin-top: 18px;
}
.profile-sidebar {
    display: grid;
    gap: 18px;
    min-width: 0;
}
.profile-about, .profile-photos {
    min-width: 0;
    padding: 21px;
}
.profile-about h3, .profile-photos h3 {
    font-size: 20px;
    font-weight: 790;
    letter-spacing: -.024em;
    line-height: 1.2;
}
.profile-photos .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 13px;
}
.profile-about p {
    color: var(--muted);
    margin-top: 11px;
    line-height: 1.55;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.profile-facts {
    display: grid;
    gap: 10px;
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.profile-facts:not(:empty) {
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid var(--border);
}
.profile-facts > div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: baseline;
}
.profile-facts dt {
    font-weight: 700;
}
.profile-facts dd {
    color: var(--muted);
    text-align: right;
    max-width: 17ch;
}
.profile-tabs {
    display: flex;
    min-width: 0;
    gap: 7px;
    padding-inline: 16px;
    border-bottom: 1px solid var(--border);
}
.profile-tabs button {
    padding: 13px 18px;
    margin-bottom: -1px;
    color: var(--muted);
    border-bottom: 3px solid transparent;
    font-weight: 700;
}
.profile-tabs button[aria-selected="true"] {
    color: var(--link);
    border-color: var(--accent);
}
.profile-tabs button:hover {
    color: var(--link);
}
.profile-pane {
    min-width: 0;
    padding: 16px;
}
.profile-pane:focus-visible {
    outline-offset: -4px;
    border-radius: var(--radius);
}
.pane-status {
    padding: 15px 3px;
    color: var(--muted);
}
.pane-status[data-error="true"] {
    color: var(--danger);
}
.pane-more {
    display: flex;
    margin: 16px auto 2px;
}
.post-feed {
    display: grid;
    gap: 12px;
}
.post-card {
    display: grid;
    gap: 12px;
    padding: clamp(12px, 2vw, 19px);
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--panel);
}
.post-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.post-avatar {
    width: 39px;
    height: 39px;
    font-size: 13px;
}
.post-meta {
    flex: 1;
    min-width: 0;
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}
.post-meta strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
}
.post-card .text-link {
    font-size: 13px;
}
.post-text {
    color: var(--ink);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.6;
}
.post-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border-radius: 10px;
}
.post-media:not([data-tiles]) :is(img, video) {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: var(--media-surface);
}
.post-media[data-tiles] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 3px;
}
.post-media-tile {
    position: relative;
    display: grid;
    grid-column: span 3;
    place-items: center;
    min-width: 0;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--media-surface);
}
.post-media[data-tiles="3"] .post-media-tile, .post-media[data-tiles="5"] .post-media-tile:nth-child(n + 3) {
    grid-column: span 2;
}
.post-media[data-tiles="3"] .post-media-tile:first-child {
    grid-column: span 4;
    grid-row: span 2;
    aspect-ratio: auto;
}
.post-media-tile > :is(img, .media-unavailable) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}
.post-media-tile:hover img {
    filter: brightness(.93);
}
.post-media-tile:focus-visible {
    outline-offset: -4px;
}
.post-media-play, .post-media-extra {
    display: grid;
    place-items: center;
    color: #fff;
    background: rgb(12 22 41 / 72%);
}
.post-media-play {
    position: relative;
    width: clamp(28px, 6vw, 44px);
    aspect-ratio: 1;
    border-radius: 50%;
    font-size: clamp(11px, 2vw, 16px);
}
.post-media-extra {
    position: absolute;
    inset: 0;
    font-size: clamp(19px, 4vw, 34px);
    font-weight: 800;
}
.video-placeholder {
    padding: 5px;
    color: #f1f5ff;
    background: radial-gradient(ellipse at 50% 40%, #294564, #131f31 76%);
    text-align: center;
}
.video-placeholder-button {
    display: grid;
    width: 100%;
    min-height: 124px;
    max-height: 380px;
    aspect-ratio: 16 / 9;
    place-items: center;
    border-radius: 9px;
}
.video-placeholder:focus-visible {
    outline-offset: -4px;
}
.video-placeholder-copy {
    display: grid;
    max-width: 100%;
    justify-items: center;
    gap: 5px;
    font-size: 15px;
    line-height: 1.2;
}
.video-placeholder-copy .post-media-play {
    margin-bottom: 3px;
    border: 1px solid #9aafc5;
}
.video-placeholder-action {
    color: #d4e2f2;
    font-size: 13px;
}
.video-placeholder:hover .post-media-play {
    border-color: #fff;
    background: #365778;
}
.post-media-tile .video-placeholder-copy {
    gap: 3px;
}
.post-media-tile .video-placeholder-copy, .post-media-tile .video-placeholder-action {
    font-size: clamp(10px, 2.6vw, 13px);
}
.post-media:not([data-tiles]) video:not([poster]), .photo-dialog video:not([poster]) {
    aspect-ratio: auto 16 / 9;
}
.post-metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px clamp(16px, 2.3vw, 26px);
    font-size: 14px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
.post-metric {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    color: var(--ink);
    white-space: nowrap;
}
.post-metric i {
    color: var(--subtle);
    font-size: 16px;
}
.post-comment-toggle {
    margin-inline-start: -7px;
    padding-inline: 7px;
    border-radius: 7px;
    color: var(--link);
}
.post-comment-toggle i {
    color: inherit;
}
.post-comment-toggle:is(:hover, [aria-expanded="true"]) {
    background: var(--accent-surface);
}
.post-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 13px;
    color: var(--muted);
}
.post-link, .shared-post {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
}
.post-card .post-link {
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    text-decoration: none;
}
.post-link:hover strong {
    text-decoration: underline;
}
.post-link img {
    width: clamp(72px, 14%, 110px);
    aspect-ratio: 1;
    flex: none;
    object-fit: cover;
}
.post-link-copy, .shared-post {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    overflow-wrap: anywhere;
}
.post-link-copy span {
    color: var(--muted);
    font-weight: 400;
}
.shared-post > .post-media {
    margin-block: 6px 2px;
}
.shared-post .text-link {
    justify-self: start;
}
.post-comments {
    min-width: 0;
    border-top: 1px solid var(--border);
    padding-top: 8px;
}
.post-comments-status {
    color: var(--muted);
    font-size: 13px;
}
.post-comments-status:not(:empty) {
    margin-bottom: 8px;
}
.post-comments-status[data-error="true"] {
    color: var(--danger);
}
.post-comment-list {
    display: grid;
    gap: 8px;
}
.post-comment {
    display: grid;
    gap: 5px;
    padding: 10px 12px;
    border-radius: 9px;
    background: var(--surface);
}
.comment-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 10px;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.comment-meta time {
    color: var(--muted);
}
.post-comment .post-text {
    font-size: 14px;
}
.photo-grid, .reel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.photo-button {
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: var(--media-surface);
    text-align: left;
}
.photo-grid .photo-button {
    aspect-ratio: 1;
}
.photo-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.reel-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
}
.reel-media {
    display: grid;
    place-items: center;
    aspect-ratio: 9 / 14;
    background: #152338;
}
.reel-media video, .reel-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.reel-media .video-placeholder-button {
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
}
.reel-media .video-poster-button {
    position: relative;
    overflow: hidden;
    padding: 0;
}
.reel-media .video-poster-button img {
    position: absolute;
    inset: 0;
    object-fit: cover;
}
.video-poster-button .post-media-play {
    width: 46px;
    border: 1px solid rgb(255 255 255 / 68%);
    font-size: 16px;
}
.reel-card p {
    padding: 11px;
    overflow-wrap: anywhere;
    font-size: 13px;
}
.results-band--home .reel-grid {
    align-items: start;
}
.reel-caption {
    padding: 10px 11px;
}
:is(.reel-card, .reel-dialog) .reel-caption-text {
    max-height: 3lh;
    overflow: hidden;
    padding: 0;
    line-height: 1.45;
    white-space: pre-line;
}
.reel-caption.is-expanded .reel-caption-text {
    max-height: none;
}
.reel-caption-toggle {
    min-height: 36px;
    color: var(--link);
    font-size: 13px;
    font-weight: 700;
}
.reel-caption-toggle:hover {
    text-decoration: underline;
}
.reel-card .text-link {
    padding: 0 11px 12px;
    font-size: 13px;
}
.media-unavailable {
    display: grid;
    place-items: center;
    min-height: 64px;
    padding: 9px;
    color: var(--muted);
    background: var(--surface);
    text-align: center;
    font-size: 13px;
}
.photo-dialog {
    margin: auto;
    width: min(720px, 100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--ink);
    background: var(--panel);
    overflow: auto;
}
.photo-dialog::backdrop {
    background: rgb(12 22 41 / 72%);
}
.photo-dialog-toolbar {
    display: flex;
    align-items: start;
    gap: 10px;
    margin-bottom: 8px;
}
.photo-dialog-toolbar form {
    flex: none;
    margin-inline-start: auto;
}
.media-download-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
}
.media-download-actions .btn {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 13px;
}
.media-download-actions .text-link {
    font-size: 13px;
}
.media-download-status {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}
.media-download-status:empty {
    margin-top: 0;
}
.photo-dialog :is(img, video) {
    max-height: 65dvh;
    margin-inline: auto;
    object-fit: contain;
}
.photo-dialog video {
    width: 100%;
    background: var(--media-surface);
}
.photo-dialog .video-placeholder-button {
    max-height: min(380px, 65dvh);
}
.photo-dialog-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
}
.photo-dialog-caption {
    display: grid;
    gap: 7px;
    margin-top: 10px;
    color: var(--muted);
    overflow-wrap: anywhere;
}
.reel-dialog .photo-dialog-toolbar {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--panel);
}
.reel-dialog .reel-caption {
    padding: 0;
    color: var(--ink);
}
.reel-dialog .reel-caption-text {
    font-size: 15px;
    font-weight: 650;
}
.icon-button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.home-example {
    padding-block: clamp(30px, 4.8vw, 60px);
    border-top: 1px solid var(--border);
    background: var(--canvas);
}
.home-example-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(22px, 4.2vw, 58px);
    align-items: start;
}
.home-example-intro h2 {
    color: var(--ink);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
    font-weight: 790;
    letter-spacing: -.036em;
}
.example-account {
    margin-top: 16px;
    overflow: hidden;
}
.example-cover {
    aspect-ratio: 3 / 1;
    overflow: hidden;
    background: var(--media-surface);
}
.example-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.example-account-body {
    padding: 13px 14px;
}
.example-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}
.example-profile .post-avatar {
    width: 45px;
    height: 45px;
}
.example-profile strong {
    display: block;
    font-size: 17px;
}
.example-bio {
    margin-top: 10px;
    color: var(--reading-ink);
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.example-profile p, .example-date {
    color: var(--muted);
    font-size: 14px;
}
.example-date {
    margin-top: 12px;
    line-height: 1.5;
}
.example-date time {
    font-weight: 650;
}
.home-example-intro .btn {
    margin-top: 17px;
}
.example-status {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}
.example-retry {
    margin-top: 10px;
}
.home-example-preview {
    min-width: 0;
    box-shadow: var(--shadow);
}
.home-example-preview .example-status {
    margin: 0;
    padding: 16px;
}
.home-example-preview .example-retry {
    margin: 0 16px 16px;
}
.home-example-preview .post-card {
    padding: 0;
    border: 0;
    background: transparent;
}
.home-example-preview .post-card > .post-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.home-example-preview .post-media[data-tiles="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home-example-preview .post-media[data-tiles="3"] .post-media-tile {
    grid-column: auto;
    grid-row: auto;
    max-height: 172px;
    aspect-ratio: 4 / 3;
}
.home-example-preview .reel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-example-preview .reel-media {
    max-height: 220px;
}
.home-example-preview .photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.features {
    background: var(--home-surface);
    padding-block: clamp(48px, 6.5vw, 88px);
    border-top: 1px solid var(--border);
}
.feature-rows {
    display: grid;
    gap: clamp(34px, 5vw, 74px);
}
.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    gap: clamp(22px, 4.7vw, 70px);
    align-items: center;
}
.feature-row--reverse {
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
}
.feature-row--reverse .feature-visual {
    grid-column: 1;
    grid-row: 1;
}
.feature-copy {
    max-width: 38ch;
}
.feature-copy h2 {
    font-size: clamp(24px, 3vw, 39px);
    line-height: 1.15;
    letter-spacing: -.036em;
    font-weight: 790;
}
.feature-copy p {
    margin-top: 14px;
    color: var(--muted);
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.62;
}
.feature-visual {
    min-width: 0;
    aspect-ratio: 3 / 2;
}
.feature-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.section-title {
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 790;
    letter-spacing: -.036em;
    line-height: 1.15;
    margin-bottom: 16px;
}
.text-link {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    color: var(--link);
    font-weight: 660;
    text-decoration: underline;
}
.text-link i {
    font-size: .75em;
}

.home-faq {
    padding-block: clamp(44px, 6.5vw, 88px);
    border-top: 1px solid var(--border);
}
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: clamp(26px, 6vw, 88px);
}
.faq-intro h2 {
    max-width: 15ch;
    font-size: clamp(32px, 4.4vw, 54px);
    line-height: 1.08;
    font-weight: 790;
    letter-spacing: -.043em;
}
.faq-intro .text-link {
    margin-top: clamp(14px, 2vw, 24px);
}
.faq-list {
    min-width: 0;
    border-top: 1px solid var(--border);
}
.faq-list details {
    border-bottom: 1px solid var(--border);
}
.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: clamp(16px, 1.7vw, 24px);
    list-style: none;
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 700;
    line-height: 1.4;
}
.faq-list summary::-webkit-details-marker {
    display: none;
}
.faq-list summary:hover {
    color: var(--link);
}
.faq-toggle {
    position: relative;
    flex: 0 0 18px;
    height: 18px;
    color: var(--link);
}
.faq-toggle::before, .faq-toggle::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    content: '';
    transform: translate(-50%, -50%);
}
.faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}
.faq-list details[open] .faq-toggle::after {
    display: none;
}
.faq-answer {
    max-width: 65ch;
    padding: 0 24px clamp(18px, 1.9vw, 25px) 0;
    color: var(--muted);
    font-size: clamp(15px, 1.35vw, 17px);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.page-intro {
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    padding-block: clamp(36px, 6vw, 76px);
}
.page-intro h1, .article-heading h1 {
    font-size: clamp(33px, 4.5vw, 56px);
    font-weight: 810;
    letter-spacing: -.047em;
    line-height: 1.12;
    overflow-wrap: anywhere;
}
.page-intro p {
    margin-top: 13px;
    max-width: 66ch;
    color: var(--muted);
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.6;
}
.page-body {
    padding-block: clamp(28px, 5vw, 65px);
}
.prose-copy {
    color: var(--reading-ink);
    font-size: 16px;
    line-height: 1.74;
    overflow-wrap: anywhere;
}
.prose-copy > * + * {
    margin-top: 15px;
}
.prose-copy h2, .prose-copy h3 {
    color: var(--ink);
    font-weight: 790;
    line-height: 1.2;
    letter-spacing: -.024em;
}
.prose-copy h2 {
    font-size: clamp(21px, 2.6vw, 29px);
}
.prose-copy h3 {
    font-size: 19px;
}
.prose-copy * + h2 {
    margin-top: 33px;
}
.prose-copy * + h3 {
    margin-top: 23px;
}
.prose-copy a {
    color: var(--link);
    text-decoration: underline;
}
.prose-copy ol, .prose-copy ul {
    padding-left: 24px;
}
.prose-copy ol {
    list-style: decimal;
}
.prose-copy ul {
    list-style: disc;
}
.prose-copy li + li {
    margin-top: 8px;
}
.prose-copy pre, .prose-copy blockquote, .prose-copy table {
    background: var(--surface);
    padding: 10px 13px;
    border-radius: 8px;
}
.prose-copy pre, .prose-copy table {
    overflow: auto;
}
.prose-copy table {
    display: block;
    border-collapse: collapse;
}
.prose-copy td, .prose-copy th {
    border: 1px solid var(--border);
    padding: 6px 9px;
    text-align: left;
}
.prose-copy img {
    height: auto;
    max-width: 100%;
    border-radius: 8px;
}
.page-note {
    padding: 17px;
    background: var(--blue-surface);
    border: 1px solid var(--border);
    border-radius: 11px;
}

.info-shell {
    max-width: 1160px;
}
.info-hero {
    padding-block: clamp(23px, 3vw, 38px) clamp(40px, 6vw, 76px);
    border-bottom: 1px solid var(--border);
    background: radial-gradient(ellipse at 92% 0%, var(--accent-surface), transparent 65%), var(--home-surface);
}
.info-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(25px, 4vw, 50px);
    color: var(--muted);
    font-size: 13px;
    font-weight: 640;
}
.info-breadcrumb a {
    color: var(--link);
}
.info-breadcrumb a:hover {
    text-decoration: underline;
}
.info-breadcrumb i {
    color: var(--subtle);
    font-size: 9px;
}
.info-hero h1 {
    max-width: 20ch;
    color: var(--ink);
    font-size: clamp(38px, 5.5vw, 70px);
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1.06;
    text-wrap: balance;
}
.info-lead {
    max-width: 58ch;
    margin-top: 17px;
    color: var(--muted);
    font-size: clamp(17px, 1.7vw, 21px);
    line-height: 1.58;
}
.info-page-nav {
    border-bottom: 1px solid var(--border);
    background: var(--panel);
}
.info-page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px clamp(4px, 1vw, 12px);
    padding-block: 7px;
}
.info-page-links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding-inline: clamp(9px, 1.35vw, 17px);
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}
.info-page-links a:hover {
    background: var(--control-hover);
    color: var(--link);
}
.info-page-links a[aria-current="page"] {
    background: var(--accent-surface);
    color: var(--link);
}
.info-page-links a:focus-visible {
    outline-offset: 1px;
}
.example-hero {
    padding-bottom: clamp(25px, 3.6vw, 43px);
}
.example-hero .info-breadcrumb {
    margin-bottom: 23px;
}
.example-hero h1 {
    font-size: clamp(32px, 4.5vw, 54px);
}
.example-hero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px 24px;
}
.about-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(24px, 4.5vw, 64px);
    align-items: center;
}
.about-hero-image {
    display: block;
    width: 100%;
    height: auto;
}
.about-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 21px;
    margin-top: 24px;
}
.about-content {
    display: grid;
    gap: clamp(35px, 5vw, 64px);
    padding-block: clamp(34px, 5vw, 64px);
}
.info-section-heading, .prose-copy .info-section-heading {
    color: var(--ink);
    font-size: clamp(25px, 3vw, 35px);
    line-height: 1.16;
    font-weight: 780;
    letter-spacing: -.035em;
}
.about-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.about-capability {
    padding: clamp(16px, 2.35vw, 27px);
}
.about-capability .icon-tile {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    font-size: 17px;
}
.about-capability h3, .info-note h2 {
    margin-top: 14px;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.3;
    font-weight: 760;
    letter-spacing: -.02em;
}
.about-capability p, .info-note p {
    margin-top: 7px;
    color: var(--muted);
    line-height: 1.58;
}
.about-source-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(24px, 5vw, 65px);
    padding-top: clamp(28px, 4.4vw, 58px);
    border-top: 1px solid var(--border);
}
.info-note {
    min-width: 0;
    padding: clamp(15px, 2.2vw, 24px);
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--blue-surface);
}
.info-note h2 {
    margin-top: 0;
}
.info-note p + a {
    margin-top: 14px;
}

.policy-updated {
    margin-top: 16px;
    color: var(--subtle);
    font-size: 13px;
    font-weight: 650;
}
.policy-layout {
    display: grid;
    grid-template-columns: minmax(195px, 230px) minmax(0, 720px);
    gap: clamp(33px, 6vw, 82px);
    align-items: start;
    padding-block: clamp(31px, 5vw, 63px);
}
.policy-nav {
    position: sticky;
    top: 24px;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--home-surface);
}
.policy-nav h2 {
    margin: 2px 0 9px;
    padding-inline: 9px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 760;
}
.policy-nav ul {
    display: grid;
    gap: 2px;
}
.policy-nav a {
    display: block;
    padding: 8px 9px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 630;
    line-height: 1.4;
}
.policy-nav a:hover {
    color: var(--link);
    background: var(--control-hover);
    text-decoration: underline;
}
.policy-copy {
    min-width: 0;
}
.policy-section {
    padding-bottom: clamp(22px, 3vw, 36px);
    scroll-margin-top: 24px;
}
.policy-section + .policy-section {
    padding-top: clamp(22px, 3vw, 36px);
    border-top: 1px solid var(--border);
}
.policy-section:last-child {
    padding-bottom: 0;
}
.policy-section h2 {
    font-size: clamp(22px, 2.6vw, 31px);
}
.policy-section:target h2 {
    color: var(--link);
}
.policy-section > p {
    max-width: 71ch;
}
.policy-details {
    padding-inline: clamp(14px, 2.15vw, 22px);
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
}
.policy-details > div {
    display: grid;
    grid-template-columns: minmax(0, 128px) minmax(0, 1fr);
    gap: 6px 14px;
    padding-block: 12px;
}
.policy-details > div + div {
    border-top: 1px solid var(--border);
}
.policy-details dt {
    color: var(--ink);
    font-weight: 730;
}
.policy-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 18px;
}
.policy-contact a {
    max-width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
    gap: clamp(22px, 4vw, 56px);
    align-items: start;
}
.contact-form, .contact-aside, .blog-aside, .blog-empty, .article-body {
    padding: clamp(18px, 3vw, 33px);
    min-width: 0;
}
.contact-form {
    display: grid;
    gap: 18px;
}
.form-two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.contact-note, .form-feedback {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}
.form-feedback {
    border-radius: 9px;
    margin-top: 14px;
    padding: 13px;
    background: var(--success-surface);
    color: var(--success);
}
.form-feedback.error {
    background: var(--danger-surface);
    color: var(--danger);
}
.contact-aside .text-link {
    margin-top: 18px;
    font-size: 14px;
    overflow-wrap: anywhere;
}
.blog-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(230px, .65fr);
    gap: clamp(20px, 4vw, 45px);
    align-items: start;
}
.blog-list {
    display: grid;
    gap: 13px;
}
.blog-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 20px;
    padding: clamp(15px, 2.3vw, 24px);
}
.blog-card img {
    width: clamp(85px, 14vw, 150px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}
.blog-card:has(> :only-child) {
    grid-template-columns: 1fr;
}
.blog-card h3, .related-list h3 {
    color: var(--ink);
    font-size: 21px;
    font-weight: 780;
    letter-spacing: -.024em;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.blog-card h3 a:hover, .related-list h3 a:hover {
    color: var(--link);
    text-decoration: underline;
}
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 14px;
    color: var(--muted);
    font-size: 13px;
    margin-block: 7px;
}
.blog-card p, .blog-empty p, .blog-aside p {
    color: var(--muted);
    line-height: 1.6;
}
.blog-empty h3, .blog-aside h2 {
    font-size: 21px;
    font-weight: 780;
    letter-spacing: -.025em;
}
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding-top: 18px;
    color: var(--muted);
    font-size: 14px;
}
.article-heading > p {
    font-size: 18px;
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.55;
}
.article-heading .blog-meta {
    margin-block: 13px 19px;
}
.article-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 14px;
}
.article-feedback {
    margin-top: 16px;
}
.author-avatar {
    width: 58px;
    height: 58px;
    background: var(--blue-surface);
    border-radius: 50%;
    object-fit: cover;
}
.related-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}
.related-list h3 {
    font-size: 16px;
}

@media (max-width: 820px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 24px;
    }
    .hero-copy h1 {
        font-size: clamp(31px, 4.7vw, 41px);
    }
    .hero-benefits {
        gap: 7px 12px;
    }
    .recent-search-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .brand img {
        width: 32px;
        height: 32px;
    }
    .footer-row {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: 17px;
    }
    .footer-links {
        gap: 0 19px;
    }
    .policy-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 29px;
    }
    .policy-nav {
        position: static;
    }
    .policy-nav ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .shell {
        width: calc(100% - 10px);
    }
    .header-row {
        min-height: 60px;
        gap: 10px;
    }
    .brand {
        gap: 4px;
        font-size: 16px;
    }
    .site-header .brand {
        min-width: 0;
        font-size: clamp(14px, 3.8vw, 16px);
    }
    .brand img {
        width: 28px;
        height: 28px;
    }
    .header-actions {
        gap: 9px;
    }
    .theme-toggle, .menu-toggle {
        width: 36px;
        height: 36px;
    }
    .top-links {
        font-size: 12px;
        gap: 0 12px;
        justify-content: flex-end;
    }
    .hero {
        --hero-wash: var(--hero-wash-mobile);
        background-position: center, 72% center;
    }
    .hero-grid, .contact-grid, .blog-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero-copy h1 {
        max-width: 19ch;
        font-size: clamp(32px, 7.8vw, 45px);
    }
    .hero-copy h1 span {
        display: block;
        margin-top: .12em;
    }
    .hero-lead {
        margin-block: 16px;
    }
    .viewer-card {
        border-radius: 19px;
        padding: 10px;
    }
    .viewer-heading {
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    .viewer-heading .icon-tile {
        width: 43px;
        height: 43px;
        border-radius: 11px;
        font-size: 17px;
    }
    .feature-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .feature-row--reverse .feature-visual {
        grid-column: auto;
        grid-row: auto;
    }
    .feature-copy {
        max-width: none;
    }
    .home-example-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .home-example-preview .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .faq-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .faq-answer {
        padding-right: 0;
    }
    .about-hero-grid, .about-feature-grid, .about-source-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .about-hero-image {
        max-width: 440px;
        margin-inline: auto;
    }
    .policy-details > div {
        grid-template-columns: minmax(0, 1fr);
    }
    .profile-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-top: 12px;
    }
    .profile-sidebar, .profile-content {
        width: 100%;
    }
    .profile-sidebar {
        gap: 12px;
    }
    .profile-identity {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        padding: 13px;
        gap: 10px;
    }
    .profile-cover:not([hidden]) + .profile-identity .profile-avatar {
        margin-top: -32px;
        width: 67px;
        height: 67px;
    }
    .profile-avatar {
        width: 58px;
        height: 58px;
    }
    .profile-tabs {
        padding-inline: 8px;
        gap: 0;
    }
    .profile-tabs button {
        flex: 1;
        padding-inline: 8px;
    }
    .profile-pane {
        padding: 10px;
    }
    .photo-grid, .reel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    /* Homepage lookup results */
    .results-band--home {
        padding-block: 10px;
    }
    .results-band--home .profile-cover {
        height: clamp(96px, 28vw, 140px);
    }
    .results-band--home .profile-identity {
        padding: 8px 10px;
        gap: 5px 9px;
    }
    .results-band--home .profile-avatar {
        width: 46px;
        height: 46px;
    }
    .results-band--home .profile-cover:not([hidden]) + .profile-identity .profile-avatar {
        margin-top: -20px;
        width: 54px;
        height: 54px;
    }
    .results-band--home .profile-title h2 {
        font-size: clamp(20px, 5.4vw, 23px);
    }
    .results-band--home .profile-meta p {
        font-size: 14px;
    }
    .results-band--home .profile-grid {
        margin-top: 8px;
    }
    .results-band--home :is(.profile-grid, .profile-sidebar, .post-feed) {
        gap: 8px;
    }
    .results-band--home :is(.profile-about, .profile-photos) {
        padding: 10px;
    }
    .results-band--home :is(.profile-about h3, .profile-photos h3) {
        font-size: 16px;
    }
    .results-band--home .profile-about p {
        margin-top: 5px;
        font-size: 14px;
        line-height: 1.45;
    }
    .results-band--home .profile-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 12px;
        font-size: 13px;
        line-height: 1.35;
    }
    .results-band--home .profile-facts:not(:empty) {
        margin-top: 7px;
        padding-top: 7px;
    }
    .results-band--home .profile-facts > div {
        grid-template-columns: minmax(0, 1fr);
        align-content: start;
        gap: 1px;
    }
    .results-band--home .profile-facts dd {
        max-width: none;
        text-align: start;
    }
    .results-band--home .profile-photos .photo-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: clamp(58px, 19vw, 86px);
        gap: 6px;
        margin-top: 5px;
        padding: 3px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }
    .results-band--home .profile-photos .photo-button {
        scroll-snap-align: start;
    }
    .results-band--home .profile-tabs {
        padding-inline: 6px;
    }
    .results-band--home .profile-tabs button {
        min-height: 44px;
        padding-block: 8px;
        font-size: 14px;
    }
    .results-band--home .profile-pane {
        padding: 6px;
    }
    .results-band--home .post-card {
        padding: 8px;
        gap: 7px;
    }
    .results-band--home :is(.post-header, .post-comment-list) {
        gap: 6px;
    }
    .results-band--home .post-avatar {
        width: 32px;
        height: 32px;
    }
    .results-band--home :is(.post-card, .shared-post) > .post-text {
        font-size: 15px;
        line-height: 1.45;
    }
    .results-band--home .post-media:not([data-tiles]) :is(img, video) {
        max-height: min(400px, 56svh);
    }
    .results-band--home .post-comment-toggle {
        min-height: 44px;
    }
    .results-band--home .post-comments {
        padding-top: 6px;
    }
    .results-band--home .post-comments-status:not(:empty) {
        margin-bottom: 5px;
    }
    .results-band--home .post-comment {
        padding: 7px 8px;
        gap: 3px;
    }
    .results-band--home #pane-photos .photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .results-band--home :is(#pane-photos .photo-grid, .reel-grid) {
        gap: 6px;
    }
    .results-band--home .reel-media {
        position: relative;
        aspect-ratio: 3 / 4;
    }
    .results-band--home .reel-media > :is(video, img, .video-placeholder-button) {
        position: absolute;
        inset: 0;
    }
    .results-band--home .reel-caption {
        padding: 7px 8px;
    }
    .results-band--home .pane-status {
        padding-block: 8px;
    }
    .results-band--home .pane-more {
        margin-top: 8px;
    }

    .form-two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header-row {
        flex-wrap: wrap;
        gap: 0;
        padding-top: 8px;
    }
    .site-header .brand {
        min-height: 36px;
    }
    .header-actions {
        flex: 0 0 100%;
        justify-content: space-between;
    }
    .top-links {
        justify-content: flex-start;
        column-gap: 18px;
    }
    .top-links a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

@media (max-width: 640px) {
    .mobile-menu-ready .header-row {
        position: relative;
        flex-wrap: nowrap;
        gap: 8px;
        padding-top: 0;
    }
    .mobile-menu-ready .header-actions {
        flex: none;
        gap: 7px;
    }
    .mobile-menu-ready .menu-toggle {
        display: grid;
    }
    .mobile-menu-ready .top-links {
        position: absolute;
        z-index: 20;
        top: calc(100% + 4px);
        inset-inline: 0;
        display: grid;
        gap: 2px;
        padding: 5px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--panel);
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-6px);
        transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
    }
    .mobile-menu-ready .menu-toggle[aria-expanded="true"] + .top-links {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        transition-delay: 0s;
    }
    .mobile-menu-ready .top-links a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 8px 11px;
        border-radius: 7px;
        font-size: 14px;
    }
    .mobile-menu-ready .top-links a:hover,
    .mobile-menu-ready .top-links a[aria-current="page"] {
        background: var(--control-hover);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu-ready .top-links {
        transition: none;
    }
}
