@import url('https://fonts.googleapis.com/css2?family=Chiron+GoRound+TC:wght@200..900&display=swap');

:root {
    --color-primary: #c2652a;
    --color-primary-dark: #9e4c1e;
    --color-primary-soft: #f3dfcf;
    --color-background: #faf5ee;
    --color-surface: #fffdf9;
    --color-surface-muted: #f6eee5;
    --color-tertiary: #8c3c3c;
    --color-text: #3a302a;
    --color-text-muted: #756a63;
    --color-border: rgba(216, 208, 200, .60);
    --color-sage: #657969;
    --shadow-soft: 0 2px 16px rgba(58, 48, 42, .04);
    --shadow-float: 0 18px 48px rgba(83, 54, 36, .11);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --content-width: 680px;
    --mobile-bottom-nav-height: 62px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body,
button,
input,
textarea,
select {
    font-family: "Chiron GoRound TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: var(--color-background);
    color: var(--color-text);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
    font-size: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

button:not(:disabled),
select:not(:disabled),
input[type="checkbox"]:not(:disabled) {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

h1,
h2,
h3,
p {
    margin-block: 0;
}

h1,
h2,
h3,
b,
strong {
    text-wrap: balance;
}

input,
textarea,
select {
    min-width: 0;
    color: var(--color-text);
}

textarea {
    resize: vertical;
}

::selection {
    background: #e8c2a4;
    color: var(--color-text);
}

:focus-visible {
    outline: 3px solid rgba(194, 101, 42, .26);
    outline-offset: 2px;
}

.svg-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.rs-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.is-hidden,
[hidden] {
    display: none !important;
}

.push-right {
    margin-left: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
}

.brand img {
    width: 38px;
    height: 38px;
}

.brand span {
    display: grid;
    line-height: 1.08;
}

.brand b {
    font-size: 17px;
    letter-spacing: -.03em;
}

.brand small {
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .22em;
}

.brand--large img {
    width: 48px;
    height: 48px;
}

.brand--large b {
    font-size: 22px;
}

.preview-pill {
    display: inline-flex;
    align-items: center;
    width: max-content;
    min-height: 24px;
    padding: 4px 9px;
    border: 1px solid rgba(194, 101, 42, .22);
    border-radius: 999px;
    background: rgba(255, 253, 249, .66);
    color: var(--color-primary-dark);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .11em;
}

.eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 650;
    line-height: 1;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: wait;
    opacity: .62;
    transform: none;
}

.button-runner {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    vertical-align: -3px;
    flex-shrink: 0;
}

.button--primary .button-runner {
    filter: brightness(0) invert(1);
}

.button.is-loading {
    cursor: wait;
    opacity: .85;
}

.button--primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(194, 101, 42, .16);
}

.button--primary:hover {
    background: var(--color-primary-dark);
}

.button--danger {
    background: var(--color-tertiary);
    color: #fff;
}

.button--danger:hover {
    background: #702f2f;
}

.button--outline {
    border-color: var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
}

.button--outline:hover,
.button--outline.is-following:hover {
    border-color: rgba(194, 101, 42, .35);
    color: var(--color-primary-dark);
}

.button--ghost {
    background: transparent;
    color: var(--color-text-muted);
}

.button--small {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 13px;
}

.button--full {
    width: 100%;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: rgba(255, 253, 249, .86);
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.icon-button:hover {
    background: var(--color-surface-muted);
    color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.icon-button--primary {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.icon-button--quiet {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-color: transparent;
    background: transparent;
    color: var(--color-text-muted);
}

.text-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-primary-dark);
    font-weight: 650;
}

.text-button .rs-icon {
    width: 16px;
    height: 16px;
}

.field {
    display: grid;
    gap: 7px;
}

.field > span:first-child {
    font-size: 13px;
    font-weight: 650;
}

.field > small,
.field-count {
    color: var(--color-text-muted);
    font-size: 11px;
}

.field input,
.field textarea,
.field select,
.search-field,
.comment-composer input,
.composer-text {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.field input,
.field select {
    min-height: 48px;
    padding: 0 14px;
}

.field textarea {
    padding: 12px 14px;
    line-height: 1.65;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.search-field:focus-within,
.comment-composer:focus-within,
.composer-text:focus {
    outline: 0;
    border-color: rgba(194, 101, 42, .54);
    box-shadow: 0 0 0 4px rgba(194, 101, 42, .08);
}

.field input:disabled {
    background: #f3eee8;
    color: var(--color-text-muted);
}

.form-stack {
    display: grid;
    gap: 18px;
}

.form-stack--compact {
    gap: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-row--between {
    justify-content: space-between;
}

.input-prefix {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
}

.input-prefix:focus-within {
    border-color: rgba(194, 101, 42, .54);
    box-shadow: 0 0 0 4px rgba(194, 101, 42, .08);
}

.input-prefix i {
    padding-left: 14px;
    color: var(--color-text-muted);
    font-style: normal;
}

.input-prefix input {
    border: 0;
    background: transparent;
    box-shadow: none !important;
}

.check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.check-label input {
    width: 17px;
    height: 17px;
    accent-color: var(--color-primary);
}

.check-label--terms {
    align-items: flex-start;
}

.field-count {
    justify-self: end;
    margin-top: -31px;
    padding: 0 10px 8px;
    pointer-events: none;
}

/* Welcome page */
.welcome-body {
    background: var(--color-background);
}

.welcome-container {
    width: min(calc(100% - 48px), 1180px);
    margin-inline: auto;
}

.welcome-header {
    position: absolute;
    z-index: 30;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid rgba(216, 208, 200, .32);
    background: rgba(250, 245, 238, .7);
    backdrop-filter: blur(16px);
}

.welcome-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
}

.welcome-nav,
.welcome-header__actions {
    display: flex;
    align-items: center;
    gap: 26px;
}

.welcome-nav a,
.welcome-login-link {
    position: relative;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
}

.welcome-nav a::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 1px;
    background: var(--color-primary);
    content: "";
    transform: scaleX(0);
    transition: transform .18s ease;
}

.welcome-nav a:hover,
.welcome-login-link:hover {
    color: var(--color-primary-dark);
}

.welcome-nav a:hover::after {
    transform: scaleX(1);
}

.welcome-hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 790px;
    padding: 128px 0 72px;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 30%, rgba(237, 206, 174, .35), transparent 31%),
        linear-gradient(90deg, transparent 49.9%, rgba(216, 208, 200, .22) 50%, transparent 50.1%);
}

.welcome-hero::before {
    position: absolute;
    top: 118px;
    left: -80px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(194, 101, 42, .13);
    border-radius: 50%;
    content: "";
}

.welcome-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
    align-items: center;
    gap: clamp(42px, 7vw, 96px);
}

.welcome-hero__copy {
    position: relative;
    z-index: 2;
}

.welcome-hero__copy h1 {
    max-width: 600px;
    margin-top: 8px;
    font-size: clamp(54px, 6.2vw, 86px);
    line-height: .98;
    letter-spacing: -.075em;
}

.welcome-hero__copy h1 em {
    color: var(--color-primary);
    font-style: normal;
}

.welcome-hero__copy > p {
    max-width: 540px;
    margin-top: 26px;
    color: var(--color-text-muted);
    font-size: 17px;
    line-height: 1.9;
}

.welcome-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 34px;
}

.welcome-hero__actions .button {
    min-height: 50px;
}

.welcome-trust {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid var(--color-border);
}

.welcome-avatar-stack {
    display: flex;
    padding-left: 8px;
}

.welcome-avatar-stack .avatar {
    margin-left: -8px;
}

.welcome-trust p {
    display: grid;
    line-height: 1.45;
}

.welcome-trust b {
    font-size: 12px;
}

.welcome-trust span {
    color: var(--color-text-muted);
    font-size: 10px;
}

.welcome-visual {
    position: relative;
    min-height: 570px;
    overflow: hidden;
    border-radius: 42% 42% 24px 24px;
    background: linear-gradient(180deg, #9cb8ba 0%, #e8c89d 56%, #b47a52 100%);
    box-shadow: 0 32px 80px rgba(89, 55, 33, .17);
    isolation: isolate;
}

.welcome-visual::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, rgba(255, 255, 255, .13), transparent 50%);
    content: "";
}

.welcome-visual__sun {
    position: absolute;
    top: 70px;
    right: 66px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #f0bf70;
    box-shadow: 0 0 60px rgba(247, 205, 137, .22);
}

.welcome-visual__ridge {
    position: absolute;
    z-index: 1;
    right: -12%;
    left: -18%;
    height: 56%;
    background: #75856f;
    clip-path: polygon(0 43%, 22% 18%, 43% 48%, 65% 8%, 100% 43%, 100% 100%, 0 100%);
}

.welcome-visual__ridge--back {
    bottom: 18%;
    background: rgba(109, 128, 112, .78);
}

.welcome-visual__ridge--front {
    z-index: 2;
    bottom: -11%;
    height: 57%;
    background: #34493e;
    clip-path: polygon(0 35%, 25% 2%, 51% 42%, 75% 13%, 100% 29%, 100% 100%, 0 100%);
}

.welcome-visual__route {
    position: absolute;
    z-index: 3;
    right: 12%;
    bottom: -8%;
    width: 52%;
    height: 61%;
    border: 4px solid rgba(238, 193, 134, .78);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    transform: rotate(-22deg);
}

.welcome-visual__runner {
    position: absolute;
    z-index: 5;
    right: 36%;
    bottom: 22%;
    width: 56px;
    height: 56px;
    transform: rotate(-10deg);
    filter: drop-shadow(0 8px 18px rgba(40, 58, 51, .25));
}

.welcome-visual__runner img {
    width: 100%;
    height: 100%;
    display: block;
}

.welcome-visual__runner::before,
.welcome-visual__runner::after,
.welcome-visual__runner i {
    display: none;
}

.welcome-float-card {
    position: absolute;
    z-index: 8;
    border: 1px solid rgba(255, 255, 255, .42);
    background: rgba(255, 253, 249, .88);
    box-shadow: 0 18px 36px rgba(42, 39, 35, .14);
    backdrop-filter: blur(16px);
}

.welcome-float-card--run {
    top: 112px;
    left: 18px;
    display: grid;
    min-width: 166px;
    padding: 17px;
    border-radius: 17px;
    line-height: 1.35;
}

.welcome-float-card--run > span,
.welcome-float-card--run em {
    color: var(--color-text-muted);
    font-size: 9px;
    font-style: normal;
}

.welcome-float-card--run b {
    margin: 3px 0;
    color: var(--color-primary-dark);
    font-size: 27px;
}

.welcome-float-card--run b small {
    font-size: 9px;
}

.welcome-float-card--event {
    right: -28px;
    bottom: 58px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    min-width: 285px;
    padding: 13px;
    border-radius: 18px;
}

.welcome-float-card--event .date-block {
    position: static;
    width: 50px;
    height: 56px;
}

.welcome-float-card--event p {
    display: grid;
    line-height: 1.4;
}

.welcome-float-card--event p small,
.welcome-float-card--event p em {
    color: var(--color-text-muted);
    font-size: 9px;
    font-style: normal;
}

.welcome-float-card--event p b {
    font-size: 12px;
}

.welcome-visual__caption {
    position: absolute;
    z-index: 4;
    bottom: 34px;
    left: 30px;
    color: rgba(255, 255, 255, .34);
    font-size: 39px;
    font-weight: 850;
    line-height: .86;
    letter-spacing: -.06em;
}

.welcome-feature-section {
    padding: 110px 0 118px;
    background: var(--color-surface);
}

.welcome-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    align-items: end;
    gap: 60px;
}

.welcome-section-heading h2,
.welcome-journey__copy h2,
.welcome-cta h2 {
    max-width: 680px;
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.18;
    letter-spacing: -.055em;
}

.welcome-section-heading > p {
    padding-bottom: 7px;
    color: var(--color-text-muted);
    line-height: 1.85;
}

.welcome-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 54px;
}

.welcome-feature-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: #f7eee4;
    transition: transform .22s ease, box-shadow .22s ease;
}

.welcome-feature-card:hover {
    box-shadow: var(--shadow-float);
    transform: translateY(-5px);
}

.welcome-feature-card--event {
    background: #e8ece3;
}

.welcome-feature-card--tour {
    background: #efe3d7;
}

.welcome-feature-card::after {
    position: absolute;
    right: -55px;
    bottom: -65px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(194, 101, 42, .15);
    border-radius: 50%;
    content: "";
}

.welcome-feature-card__number {
    position: absolute;
    top: 23px;
    right: 25px;
    color: rgba(58, 48, 42, .28);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .15em;
}

.welcome-feature-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 54px;
    border-radius: 14px;
    background: rgba(255, 253, 249, .75);
    color: var(--color-primary-dark);
}

.welcome-feature-card h3 {
    font-size: 21px;
    letter-spacing: -.03em;
}

.welcome-feature-card p {
    margin-top: 9px;
    color: var(--color-text-muted);
    line-height: 1.75;
}

.welcome-feature-card__meta {
    margin-top: auto;
    padding-top: 26px;
    color: var(--color-primary-dark);
    font-size: 10px;
    font-weight: 650;
}

.welcome-journey-section {
    padding: 118px 0;
    overflow: hidden;
}

.welcome-journey {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(0, .8fr);
    align-items: center;
    gap: clamp(54px, 8vw, 110px);
}

.welcome-journey__visual {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-float);
    isolation: isolate;
}

.welcome-journey__visual::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(43, 31, 25, .74), transparent 60%);
    content: "";
}

.welcome-journey__label {
    position: absolute;
    top: 22px;
    left: 22px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    background: rgba(38, 31, 26, .22);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    backdrop-filter: blur(8px);
}

.welcome-journey__visual > div {
    position: absolute;
    right: 30px;
    bottom: 32px;
    left: 30px;
    display: grid;
    color: #fff;
}

.welcome-journey__visual > div small,
.welcome-journey__visual > div span {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    letter-spacing: .09em;
}

.welcome-journey__visual > div b {
    margin: 5px 0 13px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.03;
    letter-spacing: -.065em;
}

.welcome-steps {
    display: grid;
    gap: 0;
    margin: 34px 0 28px;
    padding: 0;
    list-style: none;
}

.welcome-steps li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 15px;
    padding: 18px 0;
    border-bottom: 1px solid var(--color-border);
}

.welcome-steps li > span {
    display: grid;
    place-items: center;
    align-self: start;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    font-size: 11px;
    font-weight: 750;
}

.welcome-steps li > div {
    display: grid;
    gap: 4px;
}

.welcome-steps p {
    color: var(--color-text-muted);
    font-size: 12px;
}

.welcome-cta-section {
    padding: 0 0 100px;
}

.welcome-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 52px;
    min-height: 310px;
    padding: clamp(36px, 6vw, 72px);
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 5%, rgba(240, 187, 113, .4), transparent 28%),
        #34493e;
    color: #fffaf2;
}

.welcome-cta::after {
    position: absolute;
    right: -60px;
    bottom: -150px;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: "";
}

.welcome-cta .eyebrow {
    color: #eebb85;
}

.welcome-cta p {
    margin-top: 13px;
    color: rgba(255, 255, 255, .68);
}

.welcome-cta > div:last-child {
    position: relative;
    z-index: 2;
    display: grid;
    flex: 0 0 250px;
    gap: 10px;
}

.welcome-cta .button--outline {
    border-color: rgba(255, 255, 255, .26);
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.welcome-footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.welcome-footer .welcome-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.welcome-footer p,
.welcome-footer > div > small {
    color: var(--color-text-muted);
    font-size: 11px;
}

.welcome-footer p {
    justify-self: center;
}

/* Authentication */
.auth-body {
    background: #efe1d0;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(440px, 620px);
    min-height: 100vh;
}

.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: clamp(32px, 5vw, 72px);
    overflow: hidden;
    background:
        radial-gradient(circle at 76% 20%, rgba(255, 227, 173, .78) 0 8%, transparent 8.2%),
        linear-gradient(155deg, #e9c89d 0%, #d4935f 46%, #a6532c 100%);
    color: #fffaf2;
}

.auth-brand::before,
.auth-brand::after {
    position: absolute;
    right: -13%;
    bottom: 7%;
    width: 75%;
    height: 42%;
    border: 1px solid rgba(255, 255, 255, .23);
    border-radius: 50%;
    content: "";
    transform: rotate(-11deg);
}

.auth-brand::after {
    right: -5%;
    bottom: -7%;
    width: 88%;
    height: 48%;
}

.auth-brand .brand {
    position: relative;
    z-index: 1;
}

.auth-brand .brand small {
    color: rgba(255, 255, 255, .75);
}

.auth-brand > p {
    position: relative;
    z-index: 1;
    max-width: 360px;
    font-size: clamp(21px, 2.3vw, 33px);
    font-weight: 650;
    line-height: 1.4;
    letter-spacing: -.03em;
}

.auth-landscape {
    position: absolute;
    inset: 17% 6% 16% 13%;
}

.auth-sun {
    position: absolute;
    top: 6%;
    right: 14%;
    width: clamp(80px, 12vw, 170px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 237, 201, .84);
    box-shadow: 0 0 70px rgba(255, 234, 194, .22);
}

.auth-runner {
    position: absolute;
    left: 2%;
    bottom: 7%;
    color: rgba(255, 250, 242, .82);
    font-size: clamp(44px, 8vw, 108px);
    font-weight: 850;
    line-height: .82;
    letter-spacing: -.075em;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    padding: 48px clamp(28px, 5vw, 76px);
    background: var(--color-surface);
}

.auth-panel > .preview-pill {
    align-self: flex-end;
    margin-bottom: 28px;
}

.auth-card {
    width: min(100%, 430px);
    margin: auto;
}

.auth-card--passwordless {
    min-height: 470px;
}

.auth-card__heading {
    margin-bottom: 28px;
}

.auth-card__heading h1 {
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.22;
    letter-spacing: -.045em;
}

.auth-card__heading p {
    margin-top: 10px;
    color: var(--color-text-muted);
}

.auth-card__heading p b {
    color: var(--color-text);
    overflow-wrap: anywhere;
}

.auth-flow-step {
    animation: auth-step-in .28s ease both;
}

@keyframes auth-step-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-back-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    margin-bottom: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
}

.auth-back-button:hover {
    color: var(--color-primary-dark);
}

.auth-back-button .rs-icon {
    width: 16px;
    height: 16px;
}

.username-availability {
    min-height: 18px;
    transition: color .18s ease;
}

.username-availability.is-checking {
    color: var(--color-text-muted);
}

.username-availability.is-available {
    color: #48614b;
}

.username-availability.is-unavailable {
    color: var(--color-tertiary);
}

.auth-code-field input {
    height: 68px;
    padding-left: 22px;
    font-size: 30px;
    font-weight: 750;
    letter-spacing: .38em;
    text-align: center;
}

.auth-code-field input::placeholder {
    color: #d9d0c7;
}

.auth-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    color: var(--color-text-muted);
    font-size: 11px;
}

.auth-hint .rs-icon {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
}

.auth-resend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    margin-top: 12px;
    color: var(--color-text-muted);
    font-size: 11px;
}

.auth-resend .text-button {
    min-height: 38px;
    font-size: 12px;
}

.auth-resend .text-button:disabled {
    cursor: not-allowed;
    color: #b9afa6;
}

.auth-legal,
.auth-switch {
    margin-top: 22px;
    color: var(--color-text-muted);
    font-size: 12px;
    text-align: center;
}

.auth-switch {
    font-size: 13px;
}

.auth-switch a,
.auth-legal a {
    color: var(--color-primary-dark);
    font-weight: 650;
}

/* Onboarding */
.onboarding-body {
    background:
        radial-gradient(circle at 12% 8%, rgba(224, 182, 138, .23), transparent 34%),
        var(--color-background);
}

.onboarding-shell {
    width: min(100% - 32px, 920px);
    margin-inline: auto;
}

.onboarding-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 84px;
}

.onboarding-card {
    display: grid;
    grid-template-columns: minmax(210px, .7fr) minmax(0, 1.3fr);
    gap: clamp(28px, 6vw, 72px);
    margin: 38px 0 80px;
    padding: clamp(28px, 5vw, 60px);
    border: 1px solid var(--color-border);
    border-radius: 28px;
    background: rgba(255, 253, 249, .86);
    box-shadow: var(--shadow-float);
}

.onboarding-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-bottom: 24px;
}

.onboarding-progress span {
    height: 3px;
    border-radius: 999px;
    background: #dfd5ca;
}

.onboarding-progress .is-done {
    background: var(--color-primary);
}

.onboarding-copy h1 {
    max-width: 330px;
    font-size: clamp(31px, 4vw, 50px);
    line-height: 1.18;
    letter-spacing: -.055em;
}

.onboarding-copy p {
    margin-top: 14px;
    color: var(--color-text-muted);
}

.onboarding-form {
    display: grid;
    gap: 28px;
}

.choice-group {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.choice-group > span,
.choice-group > legend {
    width: 100%;
    margin-bottom: 2px;
    padding: 0;
    font-size: 13px;
    font-weight: 700;
}

.choice-group > legend small {
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 500;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.choice-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-card {
    position: relative;
    display: grid;
    gap: 5px;
    min-height: 86px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
    text-align: left;
}

.choice-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.choice-card::after {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: transparent;
    content: "✓";
    font-size: 10px;
}

.choice-card b {
    font-size: 14px;
}

.choice-card small {
    color: var(--color-text-muted);
    font-size: 11px;
}

.choice-card.is-selected {
    border-color: rgba(194, 101, 42, .5);
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
}

.choice-card.is-selected::after {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
}

.chip-picker,
.filter-row,
.bookmark-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: 600;
}

.filter-chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.filter-chip.is-active,
.filter-chip:has(input:checked) {
    border-color: rgba(194, 101, 42, .28);
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
}

.filter-chip--add {
    border-style: dashed;
}

.onboarding-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
}

.field-note {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
    font-size: 12px;
}

/* Application shell */
.app-body {
    background:
        linear-gradient(90deg, rgba(226, 209, 192, .10) 1px, transparent 1px) 0 0 / 80px 80px,
        var(--color-background);
}

.app-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, var(--content-width)) 220px;
    gap: 32px;
    width: min(calc(100% - 48px), 1200px);
    min-height: 100vh;
    margin-inline: auto;
}

.side-nav__inner {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 34px 0 28px;
}

.side-nav .preview-pill {
    margin-top: 16px;
}

.primary-nav {
    display: grid;
    gap: 7px;
    margin-top: 44px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 48px;
    padding: 0 15px;
    border-radius: 14px;
    color: var(--color-text-muted);
    font-weight: 600;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.nav-item:hover {
    background: rgba(255, 253, 249, .62);
    color: var(--color-text);
    transform: translateX(2px);
}

.nav-item.is-active {
    background: var(--color-surface);
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-soft);
}

.nav-item.is-active .rs-icon {
    stroke-width: 2.2;
}

.side-profile {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 14px;
    transition: background-color .18s ease, border-color .18s ease;
}

.side-profile:hover {
    border-color: var(--color-border);
    background: rgba(255, 253, 249, .68);
}

.side-profile > span:not(.avatar) {
    display: grid;
    min-width: 0;
    line-height: 1.3;
}

.side-profile small {
    color: var(--color-text-muted);
    font-size: 10px;
}

.side-profile .rs-icon {
    width: 18px;
    color: var(--color-text-muted);
}

.main-column {
    position: relative;
    min-width: 0;
    border-inline: 1px solid var(--color-border);
    background: rgba(255, 253, 249, .52);
}

#runscape-app-navigation.appnav {
    position: relative;
    height: 100dvh;
    min-height: 100vh;
    --appnav-background: var(--color-surface);
    --appnav-text: var(--color-text);
}

/* In-Page Initial Loader (僅在首次載入未就緒時於內容欄呈現，就緒後優雅淡出) */
.rs-initial-loader {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface, #FFFDF9);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rs-initial-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.appnav-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 48px 24px;
    text-align: center;
}

.rs-loading-runner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 32px 24px;
    text-align: center;
}

.rs-loading-runner__icon {
    width: 56px;
    height: 56px;
    display: block;
    filter: drop-shadow(0 6px 16px rgba(113, 59, 46, .18));
}

.rs-loading-runner__text {
    color: var(--color-text-muted, #7e6357);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .05em;
    animation: rs-loading-pulse 1.8s ease-in-out infinite;
}

@keyframes rs-loading-pulse {
    0%, 100% { opacity: .65; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1); }
}

.rs-loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 32px;
    text-align: center;
}

.rs-loading-box .rs-loading-runner__icon {
    width: 48px;
    height: 48px;
}

.runscape-page {
    min-height: 100%;
}

.app-body.appnav-enabled {
    overflow: hidden;
}

.top-bar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--color-border);
    background: rgba(255, 253, 249, .88);
    backdrop-filter: blur(18px);
}

.top-bar__leading,
.top-bar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar__leading {
    min-width: 0;
}

.top-bar__actions {
    flex: 0 0 auto;
}

.top-bar__profile-edit {
    white-space: nowrap;
}

.top-bar__leading > div {
    display: grid;
    line-height: 1.15;
}

.top-bar h1 {
    font-size: 18px;
    letter-spacing: -.025em;
}

.top-bar small {
    margin-top: 3px;
    color: var(--color-text-muted);
    font-size: 10px;
}

.page-content {
    min-height: calc(100vh - 66px);
}

.bottom-nav {
    display: none;
}

.avatar {
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, .84);
    border-radius: 50%;
    background: linear-gradient(145deg, #bd7446, #843c29);
    color: #fff;
    box-shadow: 0 3px 10px rgba(58, 48, 42, .12);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .02em;
}

.avatar--sage { background: linear-gradient(145deg, #9bb39c, #536a5a); }
.avatar--sun { background: linear-gradient(145deg, #e5ae57, #bd642d); }
.avatar--sky { background: linear-gradient(145deg, #8db6c1, #446977); }
.avatar--rose { background: linear-gradient(145deg, #ca8e8b, #82494c); }
.avatar--clay { background: linear-gradient(145deg, #c47c50, #834029); }
.avatar--sm { flex-basis: 34px; width: 34px; height: 34px; font-size: 9px; }
.avatar--xl { flex-basis: 92px; width: 92px; height: 92px; font-size: 22px; border-width: 4px; }

.avatar img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

/* Feed and post */
.feed-intro {
    padding: 18px 20px 0;
}

.quick-compose {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.quick-compose > span:not(.avatar) {
    color: var(--color-text-muted);
}

.quick-compose i {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    font-style: normal;
}

.feed-list {
    padding-top: 10px;
}

.post-card {
    padding: 22px 20px;
    border-bottom: 1px solid var(--color-border);
}

.post-card--detail {
    border-bottom: 0;
}

.post-author {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
}

.post-author > div {
    display: grid;
    line-height: 1.35;
}

.post-author b {
    font-size: 14px;
}

.post-author span {
    color: var(--color-text-muted);
    font-size: 11px;
}

.post-menu-wrap {
    position: relative;
}

.post-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    right: 0;
    min-width: 132px;
    padding: 6px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    box-shadow: 0 12px 30px rgba(72, 52, 39, .14);
}

.post-menu[hidden] {
    display: none;
}

.post-menu button,
.post-menu a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--color-text);
    text-align: left;
}

.post-menu button:hover,
.post-menu a:hover {
    background: var(--color-surface-muted);
    color: var(--color-primary-dark);
}

.post-menu button.is-danger {
    color: var(--color-tertiary);
}

.official-badge {
    display: inline-grid;
    place-items: center;
    width: 15px;
    height: 15px;
    margin-left: 3px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 9px;
    vertical-align: 1px;
}

.post-copy {
    margin: 14px 0;
    line-height: 1.75;
    white-space: pre-line;
}

.feed-more {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 10px 18px 22px;
}

.feed-more > span {
    min-height: 18px;
    color: var(--color-text-muted);
    font-size: 12px;
}

.post-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 42px;
    padding-top: 8px;
}

.post-actions button,
.post-actions a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 12px;
}

.post-actions button:hover,
.post-actions a:hover,
.post-actions .is-active {
    color: var(--color-primary);
}

.post-actions [data-toggle-like].is-active .rs-icon,
.post-actions [data-post-like].is-active .rs-icon {
    fill: currentColor;
}

[data-toggle-bookmark].is-active .rs-icon,
[data-post-bookmark].is-active .rs-icon {
    fill: currentColor;
}

.post-note,
.post-metrics {
    color: var(--color-text-muted);
    font-size: 11px;
}

.post-media {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 15px;
}

.post-media--carousel {
    grid-auto-columns: min(86%, 520px);
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.post-media__item {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--color-surface-muted);
    scroll-snap-align: start;
}

.post-media__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card:not(.post-card--detail) .post-media__item {
    display: grid;
    place-items: center;
    width: fit-content;
    max-width: 100%;
    max-height: 256px;
    aspect-ratio: auto;
    border-radius: 15px;
}

.post-card:not(.post-card--detail) .post-media:not(.post-media--carousel) {
    display: flex;
    justify-content: flex-start;
    border-radius: 0;
}

.post-card:not(.post-card--detail) .post-media--carousel {
    grid-auto-columns: max-content;
}

.post-card:not(.post-card--detail) .post-media__item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 256px;
    border-radius: inherit;
}

.post-note b,
.post-metrics b {
    color: var(--color-text);
}

.post-metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 3px;
}

.mock-photo,
.event-card__visual,
.tour-card__visual,
.detail-hero,
.event-inline__visual,
.saved-card__visual,
.profile-cover,
.profile-post > .mock-photo {
    position: relative;
    display: block;
    overflow: hidden;
    background-color: #d8c4af;
    isolation: isolate;
}

.mock-photo::before,
.event-card__visual::before,
.tour-card__visual::before,
.detail-hero::before,
.event-inline__visual::before,
.saved-card__visual::before,
.profile-cover::before,
.profile-post > .mock-photo::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: inherit;
}

.mock-photo {
    aspect-ratio: 4 / 3;
    border-radius: 15px;
}

.mock-photo--detail {
    aspect-ratio: 16 / 11;
}

.mock-photo--mountain {
    background:
        linear-gradient(165deg, transparent 50%, rgba(46, 62, 51, .76) 50.5% 70%, transparent 70.5%),
        linear-gradient(18deg, transparent 34%, rgba(100, 119, 95, .88) 34.5% 67%, transparent 67.5%),
        radial-gradient(circle at 78% 20%, #f2c071 0 8%, transparent 8.4%),
        linear-gradient(#78939a, #d9bd96 56%, #7c8d72);
}

.mock-photo--city,
.mock-photo--city-run {
    background:
        linear-gradient(90deg, transparent 0 12%, rgba(65, 57, 53, .45) 12% 22%, transparent 22% 28%, rgba(82, 68, 61, .62) 28% 44%, transparent 44% 49%, rgba(55, 57, 58, .5) 49% 64%, transparent 64% 70%, rgba(90, 70, 59, .5) 70% 83%, transparent 83%),
        linear-gradient(175deg, transparent 62%, rgba(177, 112, 66, .65) 62.5% 64%, rgba(69, 76, 70, .72) 64.5%),
        linear-gradient(#99acb4, #ebc79b 60%, #80736d);
}

.mock-photo--city-run {
    background:
        radial-gradient(ellipse at 47% 78%, rgba(246, 223, 196, .72) 0 7%, transparent 7.5%),
        linear-gradient(90deg, transparent 0 12%, rgba(65, 57, 53, .38) 12% 22%, transparent 22% 50%, rgba(55, 57, 58, .45) 50% 68%, transparent 68%),
        linear-gradient(170deg, transparent 58%, rgba(80, 75, 69, .67) 58.5%),
        linear-gradient(#8fa4ae, #e5bd8b 58%, #756d68);
}

.mock-photo--coast,
.mock-photo--island {
    background:
        linear-gradient(158deg, transparent 46%, rgba(68, 83, 69, .9) 46.5% 67%, transparent 67.5%),
        linear-gradient(176deg, transparent 57%, rgba(74, 138, 146, .75) 57.5% 76%, rgba(226, 208, 169, .9) 76.5%),
        linear-gradient(#95c2cb, #e7c899);
}

.mock-photo--temple {
    background:
        linear-gradient(90deg, transparent 28%, rgba(117, 52, 40, .8) 28% 34%, transparent 34% 66%, rgba(117, 52, 40, .8) 66% 72%, transparent 72%),
        linear-gradient(165deg, transparent 38%, rgba(152, 60, 39, .88) 38.5% 48%, transparent 48.5%),
        linear-gradient(195deg, transparent 38%, rgba(152, 60, 39, .88) 38.5% 48%, transparent 48.5%),
        linear-gradient(#d6b58e, #efe0c2 68%, #8b735f);
}

.mock-photo--kyoto {
    background:
        radial-gradient(circle at 16% 36%, rgba(153, 59, 42, .86) 0 3%, transparent 3.3%),
        radial-gradient(circle at 27% 24%, rgba(194, 86, 43, .78) 0 5%, transparent 5.3%),
        radial-gradient(circle at 78% 30%, rgba(122, 49, 42, .72) 0 7%, transparent 7.4%),
        linear-gradient(90deg, transparent 42%, rgba(81, 58, 44, .82) 42.5% 48%, transparent 48.5%),
        linear-gradient(169deg, transparent 58%, rgba(102, 85, 66, .72) 58.5%),
        linear-gradient(#d9b788, #edcf9d 60%, #7a6f5a);
}

.mock-photo--forest {
    background:
        repeating-linear-gradient(80deg, transparent 0 12%, rgba(42, 71, 53, .57) 12.5% 16%),
        linear-gradient(170deg, transparent 48%, rgba(72, 91, 59, .86) 48.5%),
        linear-gradient(#8fa89d, #c7bd8d 58%, #54624e);
}

.mock-photo--profile {
    background:
        radial-gradient(circle at 75% 28%, rgba(242, 186, 104, .65) 0 8%, transparent 8.5%),
        linear-gradient(168deg, transparent 60%, rgba(116, 93, 71, .47) 60.5%),
        linear-gradient(135deg, #b9c1a5, #e5b984 55%, #b66d48);
}

.mock-photo--coffee {
    background:
        radial-gradient(ellipse at 50% 56%, #604333 0 18%, #ede2d1 18.5% 28%, transparent 28.5%),
        radial-gradient(ellipse at 50% 58%, rgba(71, 47, 34, .24) 0 37%, transparent 37.5%),
        linear-gradient(145deg, #d8b790, #f0e3ce);
}

.mock-photo__badge,
.mock-photo__caption {
    position: absolute;
    z-index: 2;
    color: #fff;
}

.mock-photo__badge {
    top: 13px;
    left: 13px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    background: rgba(43, 39, 36, .24);
    backdrop-filter: blur(8px);
    font-size: 10px;
    font-weight: 650;
}

.mock-photo__caption {
    right: 14px;
    bottom: 10px;
    font-size: clamp(22px, 5.5vw, 46px);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -.065em;
    opacity: .84;
}

.run-summary-card {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    min-height: 220px;
    padding: 22px;
    overflow: hidden;
    border-radius: 15px;
    background: #263a35;
    color: #f8efe4;
}

.run-summary-card > div:not(.run-route) {
    display: grid;
    align-content: start;
}

.run-summary-card small {
    color: rgba(255, 255, 255, .65);
    font-size: 10px;
    letter-spacing: .08em;
}

.run-summary-card b {
    font-size: 31px;
}

.run-summary-card b i {
    font-size: 12px;
    font-style: normal;
}

.run-route {
    position: absolute;
    inset: 36% 10% 11%;
}

.run-route::before,
.run-route::after,
.run-route span {
    position: absolute;
    height: 3px;
    border-radius: 999px;
    background: #e19a60;
    content: "";
    transform-origin: left;
}

.run-route::before { top: 55%; left: 4%; width: 42%; transform: rotate(-27deg); }
.run-route::after { top: 32%; left: 39%; width: 46%; transform: rotate(34deg); }
.run-route span { top: 59%; left: 76%; width: 22%; transform: rotate(-50deg); }

.post-card--event {
    background: rgba(239, 225, 209, .34);
}

.event-inline {
    display: grid;
    grid-template-columns: 138px 1fr;
    gap: 14px;
    padding: 11px;
    border: 1px solid var(--color-border);
    border-radius: 15px;
    background: var(--color-surface);
}

.event-inline__visual {
    min-height: 105px;
    border-radius: 11px;
}

.event-inline > div:last-child {
    display: grid;
    align-content: center;
    gap: 4px;
}

.event-inline small,
.event-inline p {
    color: var(--color-text-muted);
    font-size: 11px;
}

.event-inline h3 {
    font-size: 15px;
}

.end-note {
    padding: 26px 20px;
    color: var(--color-text-muted);
    font-size: 12px;
    text-align: center;
}

.composer-page {
    padding: 22px 20px 100px;
}

.composer-author {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
}

.composer-author > div {
    display: grid;
    line-height: 1.4;
}

.composer-author small {
    color: var(--color-text-muted);
}

.composer-text {
    display: grid;
    min-height: 140px;
    padding: 15px;
    border-color: transparent;
    background: transparent;
    font-size: 17px;
    line-height: 1.7;
}

.composer-text textarea {
    width: 100%;
    min-height: 118px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    line-height: inherit;
    resize: vertical;
}

.composer-text > small {
    justify-self: end;
    color: var(--color-text-muted);
    font-size: 10px;
}

.media-dropzone {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 210px;
    margin-top: 12px;
    padding: 26px;
    border: 1px dashed rgba(194, 101, 42, .34);
    border-radius: 16px;
    background: rgba(243, 223, 207, .3);
    color: var(--color-text-muted);
    text-align: center;
}

.media-dropzone .rs-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.media-dropzone b {
    color: var(--color-text);
}

.composer-media-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.composer-media-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 12px;
    background: var(--color-surface-muted);
    cursor: grab;
}

.composer-media-item.is-dragging {
    opacity: .5;
}

.composer-media-item__preview {
    display: block;
    width: 100%;
    height: 100%;
}

.composer-media-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.composer-media-item button {
    position: absolute;
    top: 7px;
    right: 7px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: rgba(30, 27, 24, .78);
    color: white;
    font-size: 20px;
}

.composer-media-item > span {
    position: absolute;
    right: 6px;
    bottom: 6px;
    left: 6px;
    padding: 4px 6px;
    border-radius: 7px;
    background: rgba(30, 27, 24, .7);
    color: white;
    font-size: 10px;
    text-align: center;
}

.composer-settings {
    margin-top: 20px;
    border-top: 1px solid var(--color-border);
}

.setting-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 68px;
    padding: 11px 0;
    border: 0;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
    text-align: left;
}

.setting-row > span:not(.setting-row__icon) {
    display: grid;
    line-height: 1.4;
}

.setting-row small,
.setting-row em {
    color: var(--color-text-muted);
    font-size: 11px;
    font-style: normal;
}

.setting-row > .rs-icon {
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
}

.sticky-form-action {
    position: sticky;
    z-index: 10;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding: 12px 0;
    border-top: 1px solid var(--color-border);
    background: rgba(255, 253, 249, .92);
    backdrop-filter: blur(16px);
}

.sticky-form-action > span {
    color: var(--color-text-muted);
    font-size: 11px;
}

.comments-section {
    padding: 0 20px 28px;
    border-top: 8px solid rgba(239, 225, 209, .48);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 0 14px;
}

.section-heading h2 {
    font-size: 17px;
    letter-spacing: -.025em;
}

.section-heading > span {
    color: var(--color-text-muted);
    font-size: 11px;
}

.section-heading--spaced {
    padding-top: 30px;
}

.comment-list {
    display: grid;
}

.comment {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 13px 0;
}

.comment--reply {
    margin-left: 42px;
}

.comment p {
    font-size: 13px;
}

.comment small {
    color: var(--color-text-muted);
    font-size: 10px;
}

.comment-actions {
    display: flex;
    align-items: flex-start;
    gap: 2px;
}

.comment-actions button {
    align-self: start;
    min-width: 34px;
    height: 34px;
    padding: 0 7px;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 10px;
}

.comment-actions button .rs-icon {
    width: 15px;
    height: 15px;
    margin: auto;
}

.comment-actions button:hover,
.comment-actions button.is-active {
    color: var(--color-primary);
}

.comment-actions button.is-active .rs-icon {
    fill: currentColor;
}

.comment-composer {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: rgba(255, 253, 249, .94);
    backdrop-filter: blur(12px);
}

.comment-reply-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 10px 0;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    font-size: 11px;
}

.comment-reply-state button {
    padding: 2px 4px;
    border: 0;
    background: transparent;
    color: inherit;
    font-weight: 700;
}

.comment-composer input {
    min-height: 40px;
    padding: 0 10px;
    border-color: transparent;
    background: transparent;
}

.comment-composer button {
    min-height: 38px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: var(--color-primary-dark);
    font-weight: 700;
}

.comment-more {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 8px 12px 14px;
}

.comment-more > span {
    min-height: 18px;
    color: var(--color-text-muted);
    font-size: 11px;
}

.report-dialog {
    width: min(92vw, 460px);
    max-height: min(88vh, 680px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: 0 24px 80px rgba(54, 36, 25, .28);
}

.report-dialog::backdrop {
    background: rgba(39, 28, 22, .48);
    backdrop-filter: blur(3px);
}

.report-dialog__panel {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.report-dialog__panel > header,
.report-dialog__panel > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.report-dialog__panel > header > div {
    display: grid;
    gap: 3px;
}

.report-dialog__panel > header span {
    color: var(--color-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.report-dialog__panel > header h2 {
    font-size: 20px;
}

.report-dialog__panel .field {
    display: grid;
    gap: 8px;
}

.report-dialog__panel .field > span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
}

.report-dialog__panel .field small {
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 500;
}

.report-dialog__panel select,
.report-dialog__panel textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface-muted);
}

.report-dialog__panel select {
    min-height: 44px;
    padding: 0 12px;
}

.report-dialog__panel textarea {
    min-height: 108px;
    padding: 12px;
    resize: vertical;
}

.report-dialog__panel > footer {
    justify-content: flex-end;
}

.media-lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: max(24px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    overflow: hidden;
    border: 0;
    background: rgba(24, 20, 18, .86);
    color: #fff;
}

.media-lightbox[open] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
}

.media-lightbox::backdrop {
    background: rgba(24, 20, 18, .68);
    backdrop-filter: blur(5px);
}

.media-lightbox img {
    display: block;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-lightbox__close {
    position: fixed;
    z-index: 1;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 50%;
    background: rgba(32, 27, 24, .66);
    color: #fff;
    font-size: 30px;
    line-height: 1;
}

.comment-login {
    margin: 10px 16px 0;
}

/* Discovery */
.discovery-controls {
    padding: 18px 20px 0;
}

.segment {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 4px;
    border-radius: 12px;
    background: var(--color-surface-muted);
}

.segment a {
    display: grid;
    place-items: center;
    min-height: 40px;
    border-radius: 9px;
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 650;
}

.segment a.is-active {
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-soft);
}

.search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    margin-top: 14px;
    padding: 0 13px;
    background: rgba(255, 253, 249, .76);
}

.search-field .rs-icon {
    flex: 0 0 18px;
    width: 18px;
    color: var(--color-text-muted);
}

.search-field input {
    width: 100%;
    height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
}

.filter-row {
    margin-top: 12px;
}

.discovery-section {
    padding: 0 20px 36px;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.event-card__visual {
    aspect-ratio: 16 / 11;
}

.event-card__visual > img,
.tour-card__visual > img,
.detail-hero__image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-cover--empty {
    background: linear-gradient(145deg, #d7c4ae, #8ea39a);
}

.event-cover-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 253, 249, .7);
}

.event-cover-placeholder .rs-icon {
    width: 42px;
    height: 42px;
}

.event-cover-placeholder--hero .rs-icon {
    width: 72px;
    height: 72px;
}

.date-block {
    position: absolute;
    top: 11px;
    left: 11px;
    display: grid;
    place-items: center;
    width: 47px;
    height: 52px;
    border-radius: 10px;
    background: rgba(255, 253, 249, .91);
    box-shadow: var(--shadow-soft);
    line-height: 1;
}

.date-block b {
    color: var(--color-primary-dark);
    font-size: 21px;
}

.date-block small {
    color: var(--color-text-muted);
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .1em;
}

.event-card__visual em,
.tour-card__visual > span,
.detail-hero__tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 253, 249, .88);
    color: var(--color-primary-dark);
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
}

.event-card__visual .badge--dark {
    background: rgba(50, 55, 48, .76);
    color: #fff;
}

.event-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    padding: 13px;
}

.event-card__body small,
.event-card__body p {
    color: var(--color-text-muted);
    font-size: 10px;
}

.event-card__body h3 {
    min-height: 44px;
    margin: 5px 0 4px;
    font-size: 14px;
    line-height: 1.5;
}

.event-card__body p {
    display: flex;
    align-items: center;
    gap: 3px;
}

.event-card__body p .rs-icon {
    width: 13px;
    height: 13px;
}

.event-card__footer {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 13px;
}

.event-card__footer > span {
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
    font-size: 9px;
    font-weight: 650;
}

.event-card__footer .event-type-label {
    background: rgba(194, 101, 42, .1);
    color: var(--color-primary-dark);
}

.event-card__footer [data-discovery-bookmark],
.tour-card__body [data-discovery-bookmark],
.saved-card > [data-discovery-bookmark] {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
}

.event-card__footer [data-discovery-bookmark].is-active,
.tour-card__body [data-discovery-bookmark].is-active,
.saved-card > [data-discovery-bookmark].is-active {
    color: var(--color-primary);
}

[data-discovery-bookmark].is-active .rs-icon {
    fill: currentColor;
}

[data-discovery-bookmark]:disabled {
    cursor: wait;
    opacity: .55;
}

.discovery-bookmark-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.discovery-bookmark-button.is-active {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.tour-stack {
    display: grid;
    gap: 16px;
}

.tour-card {
    display: grid;
    grid-template-columns: 44% 1fr;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-surface);
}

.tour-card__visual {
    min-height: 210px;
}

.tour-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
}

.tour-card__body > small,
.tour-card__body p,
.tour-card__body > div small {
    color: var(--color-text-muted);
    font-size: 10px;
}

.tour-card__body h3 {
    margin: 6px 0 8px;
    font-size: 17px;
    line-height: 1.45;
}

.tour-card__body p {
    line-height: 1.65;
}

.tour-card__body > div {
    display: flex;
    align-items: end;
    margin-top: 15px;
}

.tour-card__body > div > span {
    display: grid;
}

.tour-card__body > div b {
    color: var(--color-primary-dark);
    font-size: 17px;
}

.tour-card__body > div em {
    color: var(--color-text-muted);
    font-size: 9px;
    font-style: normal;
}

.tour-related-event {
    display: flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    margin-bottom: 7px;
    color: var(--color-primary-dark);
    font-size: 10px;
    font-weight: 700;
}

.tour-related-event .rs-icon {
    width: 14px;
    height: 14px;
}

/* Detail pages */
.detail-hero {
    min-height: 410px;
    border-radius: 0;
}

.detail-hero::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(35, 29, 25, .82), rgba(35, 29, 25, .28) 68%, rgba(35, 29, 25, .08));
    content: "";
    pointer-events: none;
}

.detail-hero__overlay {
    position: absolute;
    z-index: 2;
    left: 28px;
    bottom: 30px;
    max-width: 390px;
    color: #fff;
}

.detail-hero__overlay .eyebrow {
    color: #f6c397;
}

.detail-hero__overlay h2 {
    font-size: clamp(36px, 6.5vw, 56px);
    line-height: 1.02;
    letter-spacing: -.065em;
}

.detail-hero__overlay p {
    margin-top: 12px;
    color: rgba(255, 255, 255, .79);
    font-size: 13px;
}

.detail-hero__date {
    position: absolute;
    z-index: 2;
    top: 24px;
    right: 24px;
    display: grid;
    place-items: center;
    width: 84px;
    height: 94px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 16px;
    background: rgba(255, 253, 249, .86);
    color: var(--color-primary-dark);
    backdrop-filter: blur(12px);
    line-height: 1;
}

.detail-hero__date b {
    font-size: 42px;
}

.detail-hero__date small {
    font-size: 9px;
    font-weight: 750;
}

.detail-hero > .detail-hero__tag {
    z-index: 2;
    right: auto;
    left: 24px;
    background: var(--color-tertiary);
    color: #fff;
}

.detail-summary,
.tour-price-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 20px;
    border-bottom: 1px solid var(--color-border);
}

.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.detail-facts > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.detail-facts .rs-icon {
    color: var(--color-primary);
}

.detail-facts span,
.tour-price-bar > div {
    display: grid;
    line-height: 1.4;
}

.detail-facts small,
.tour-price-bar small,
.tour-price-bar span {
    color: var(--color-text-muted);
    font-size: 10px;
}

.detail-facts b {
    font-size: 13px;
}

.content-section {
    padding: 4px 20px 26px;
    border-bottom: 1px solid var(--color-border);
}

.distance-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.distance-card {
    display: grid;
    min-height: 172px;
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 15px;
    background: var(--color-surface);
}

.distance-card > span {
    color: var(--color-text-muted);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .15em;
}

.distance-card > b {
    margin-top: 8px;
    font-size: 34px;
}

.distance-card > b small {
    font-size: 11px;
}

.distance-card p {
    color: var(--color-text-muted);
    font-size: 10px;
}

.distance-card strong {
    align-self: end;
    color: var(--color-primary-dark);
}

.distance-card > small:last-child {
    margin-top: 8px;
    color: var(--color-text-muted);
    font-size: 10px;
}

.distance-card.is-featured {
    border-color: transparent;
    background: var(--color-tertiary);
    color: #fff8ef;
}

.distance-card.is-featured > span,
.distance-card.is-featured p,
.distance-card.is-featured > small:last-child {
    color: rgba(255, 255, 255, .68);
}

.distance-card.is-featured strong {
    color: #f4c097;
}

.prose-section > p {
    margin-bottom: 13px;
    color: #554a43;
    line-height: 1.85;
}

.event-content {
    color: #554a43;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.route-preview {
    display: grid;
    grid-template-columns: 112px 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 16px;
    border-radius: 15px;
    background: #e7eadf;
}

.route-preview__line {
    position: relative;
    height: 52px;
}

.route-preview__line::before,
.route-preview__line::after {
    position: absolute;
    height: 3px;
    border-radius: 999px;
    background: var(--color-sage);
    content: "";
}

.route-preview__line::before { top: 28px; left: 5px; width: 65px; transform: rotate(-19deg); }
.route-preview__line::after { top: 19px; left: 59px; width: 47px; transform: rotate(31deg); }

.route-preview > div {
    display: grid;
}

.route-preview small {
    color: var(--color-sage);
    font-size: 10px;
}

.organizer-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding-top: 22px;
}

.organizer-row > span:not(.avatar) {
    display: grid;
}

.organizer-row small {
    color: var(--color-text-muted);
    font-size: 10px;
}

.detail-cta {
    position: sticky;
    z-index: 10;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 20px;
    border-top: 1px solid var(--color-border);
    background: rgba(255, 253, 249, .94);
    backdrop-filter: blur(16px);
}

.detail-cta > div {
    display: grid;
    line-height: 1.35;
}

.detail-cta small {
    color: var(--color-text-muted);
    font-size: 10px;
}

.detail-cta b {
    color: var(--color-primary-dark);
}

.tour-price-bar > div b {
    color: var(--color-primary-dark);
    font-size: 24px;
}

.departure-list {
    display: grid;
    gap: 10px;
}

.departure-card {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 84px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
    text-align: left;
}

.departure-card > span,
.departure-card > div {
    display: grid;
}

.departure-card small {
    color: var(--color-text-muted);
    font-size: 10px;
}

.departure-card.is-selected {
    border-color: rgba(194, 101, 42, .48);
    background: rgba(243, 223, 207, .45);
}

.departure-card.is-selected > .rs-icon {
    color: var(--color-primary);
}

.tour-departure-card {
    grid-template-columns: minmax(180px, 1fr) minmax(150px, .8fr);
}

.tour-package-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 14px 18px;
}

.tour-package-card {
    display: grid;
    gap: 6px;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 13px;
    background: var(--color-surface-muted);
}

.tour-package-card > span,
.tour-package-card > small {
    color: var(--color-text-muted);
    font-size: 9px;
}

.tour-package-card h3 { font-size: 14px; }
.tour-package-card p { color: var(--color-text-muted); font-size: 11px; line-height: 1.6; }
.tour-package-card > b { color: var(--color-primary-dark); }
.tour-package-card.is-sold-out { opacity: .68; }

.tour-event-callout {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
}

.tour-event-callout > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
}

.tour-event-callout > div { display: grid; }
.tour-event-callout small { color: var(--color-text-muted); font-size: 9px; }
.tour-duration { min-width: 150px; }

.timeline {
    display: grid;
}

.timeline > div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 15px;
}

.timeline > div > span {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    align-self: start;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    font-size: 10px;
    font-weight: 750;
}

.timeline > div:not(:last-child) > span::after {
    position: absolute;
    z-index: -1;
    top: 36px;
    bottom: -100px;
    width: 1px;
    background: var(--color-border);
    content: "";
}

.timeline article {
    padding-bottom: 24px;
}

.timeline article small {
    color: var(--color-primary);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .1em;
}

.timeline article h3 {
    margin: 3px 0 5px;
    font-size: 15px;
}

.timeline article p {
    color: var(--color-text-muted);
    font-size: 12px;
}

.inclusion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 24px;
}

.inclusion-grid > div {
    display: grid;
    gap: 7px;
    padding: 17px;
    border-radius: 14px;
    background: var(--color-surface-muted);
}

.inclusion-grid > div > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #dce5d8;
    color: var(--color-sage);
}

.inclusion-grid .rs-icon {
    width: 16px;
    height: 16px;
}

.inclusion-grid p {
    color: var(--color-text-muted);
    font-size: 11px;
}

.muted-icon {
    background: #e5ddd4 !important;
    color: var(--color-text-muted) !important;
}

/* Profile */
.profile-hero {
    border-bottom: 1px solid var(--color-border);
}

.profile-cover {
    height: 196px;
}

.profile-cover > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-cover__line {
    position: absolute;
    right: 11%;
    bottom: 20%;
    width: 58%;
    height: 48%;
    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    transform: rotate(-9deg);
}

.profile-main {
    position: relative;
    padding: 0 20px 23px;
}

.profile-avatar-wrap {
    height: 48px;
}

.profile-avatar-wrap .avatar {
    position: absolute;
    top: -49px;
}

.profile-actions {
    position: absolute;
    top: 12px;
    right: 20px;
    display: flex;
    gap: 7px;
}

.profile-actions .icon-button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
}

.profile-block-action {
    color: var(--color-tertiary);
}

.profile-identity {
    display: grid;
    line-height: 1.35;
}

.profile-identity h2 {
    font-size: 22px;
    letter-spacing: -.035em;
}

.profile-identity span,
.profile-location {
    color: var(--color-text-muted);
    font-size: 12px;
}

.profile-block-status {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface-muted);
}

.profile-block-status > .rs-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--color-primary);
}

.profile-block-status p {
    display: grid;
    gap: 3px;
}

.profile-block-status b {
    font-size: 12px;
}

.profile-block-status span {
    color: var(--color-text-muted);
    font-size: 10px;
    line-height: 1.5;
}

.profile-bio-wrap,
.profile-bio {
    max-width: 560px;
    margin-top: 13px;
}

.profile-bio-wrap[data-profile-bio-ready] .profile-bio {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.75;
}

.profile-bio-wrap[data-profile-bio-ready] .profile-bio.is-expanded {
    display: block;
    overflow: visible;
}

.profile-bio__toggle {
    margin-top: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}

.profile-bio__toggle:hover {
    text-decoration: underline;
}

.profile-bio__toggle:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.profile-empty-copy {
    color: var(--color-text-muted);
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 9px;
}

.profile-location .rs-icon {
    width: 15px;
    height: 15px;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}

.profile-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
    font-size: 10px;
}

.profile-stats {
    display: flex;
    gap: 28px;
    margin-top: 19px;
}

.profile-stats--own {
    position: absolute;
    top: 12px;
    right: 20px;
    gap: 22px;
    margin-top: 0;
    text-align: center;
}

.profile-stats a,
.profile-stats > div {
    display: grid;
    line-height: 1.3;
}

.profile-stats b {
    font-size: 15px;
}

.profile-stats span {
    color: var(--color-text-muted);
    font-size: 10px;
}

.profile-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 1px solid var(--color-border);
}

.profile-tabs button {
    position: relative;
    min-height: 50px;
    border: 0;
    background: transparent;
    color: var(--color-text-muted);
    font-weight: 650;
}

.profile-tabs button.is-active {
    color: var(--color-text);
}

.profile-tabs button.is-active::after {
    position: absolute;
    right: 34%;
    bottom: 0;
    left: 34%;
    height: 2px;
    border-radius: 999px;
    background: var(--color-primary);
    content: "";
}

.profile-tabs--single {
    grid-template-columns: 1fr;
}

.profile-feed {
    display: grid;
}

.profile-post {
    display: grid;
    grid-template-columns: minmax(0, 130px) minmax(0, 1fr);
    gap: 14px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-border);
}

.profile-post > .mock-photo,
.profile-post > .run-summary-card,
.profile-post__media {
    min-height: 108px;
    aspect-ratio: 1.2;
    border-radius: 12px;
}

.profile-post__media {
    position: relative;
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 0;
    place-items: center;
    overflow: hidden;
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
}

.profile-post__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-post__media .rs-icon {
    width: 24px;
    height: 24px;
}

.profile-post > div:last-child {
    display: grid;
    min-width: 0;
    overflow: hidden;
    align-content: center;
    gap: 6px;
}

.profile-post p {
    min-width: 0;
    overflow-wrap: anywhere;
}

.profile-page-more,
.bookmark-page-more {
    justify-self: center;
    margin: 16px auto 22px;
}

.profile-post small,
.profile-post span {
    color: var(--color-text-muted);
    font-size: 10px;
}

.profile-post .rs-icon {
    display: inline;
    width: 13px;
    height: 13px;
    vertical-align: -2px;
}

.run-summary-card--mini {
    min-height: 108px;
    padding: 12px;
}

.run-summary-card--mini b {
    font-size: 14px;
}

.run-summary-card--mini .run-route {
    inset: 42% 8% 8%;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 40px;
    color: var(--color-text-muted);
    text-align: center;
}

.empty-state > .rs-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.empty-state h3 {
    color: var(--color-text);
}

.empty-state p {
    margin-top: 5px;
    font-size: 12px;
}

.profile-edit-form {
    padding-bottom: 36px;
}

.edit-visuals {
    position: relative;
    padding-bottom: 50px;
}

.edit-visuals .profile-cover {
    height: 185px;
}

.asset-file-input {
    display: none;
}

.image-edit-button {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(44, 38, 34, .55);
    color: #fff;
    font-size: 11px;
    backdrop-filter: blur(8px);
}

.image-edit-button .rs-icon {
    width: 15px;
    height: 15px;
}

.edit-cover-upload {
    top: 134px;
    bottom: auto;
}

.edit-avatar {
    position: absolute;
    bottom: 4px;
    left: 20px;
}

.edit-avatar > button {
    position: absolute;
    right: -3px;
    bottom: 2px;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    padding: 0;
    border: 2px solid var(--color-surface);
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
}

.edit-avatar .rs-icon {
    width: 14px;
    height: 14px;
}

.profile-asset-status {
    position: absolute;
    right: 20px;
    bottom: 17px;
    left: 132px;
    color: var(--color-text-muted);
    font-size: 11px;
    line-height: 1.45;
}

.profile-asset-status.is-error {
    color: #8c352d;
}

.profile-asset-status.is-success {
    color: #356b49;
}

.profile-cropper {
    width: min(calc(100% - 32px), 680px);
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: 0 24px 70px rgba(39, 30, 24, .28);
}

.profile-cropper::backdrop {
    background: rgba(37, 30, 26, .62);
    backdrop-filter: blur(5px);
}

.profile-cropper__panel {
    max-height: calc(100dvh - 32px);
    padding: 20px;
    overflow-y: auto;
}

.profile-cropper__header,
.profile-cropper__actions,
.profile-cropper__zoom {
    display: flex;
    align-items: center;
}

.profile-cropper__header {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.profile-cropper__header > div {
    display: grid;
    gap: 2px;
}

.profile-cropper__header small,
.profile-cropper__hint {
    color: var(--color-text-muted);
}

.profile-cropper__header small {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

.profile-cropper__header h2 {
    font-size: 20px;
}

.profile-cropper__close {
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
}

.profile-cropper__stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: #292724;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    touch-action: none;
    user-select: none;
}

.profile-cropper__stage.is-avatar {
    width: min(100%, 420px);
    margin-inline: auto;
    border-radius: 50%;
}

.profile-cropper__canvas {
    display: block;
    width: 100%;
    height: auto;
    cursor: grab;
    outline: none;
}

.profile-cropper__canvas:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .9);
}

.profile-cropper__stage.is-dragging .profile-cropper__canvas {
    cursor: grabbing;
}

.profile-cropper__guide {
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .76);
}

.profile-cropper__stage.is-avatar .profile-cropper__guide {
    border-radius: 50%;
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, .9),
        inset 0 0 36px rgba(0, 0, 0, .22);
}

.profile-cropper__hint {
    display: grid;
    gap: 3px;
    margin-top: 12px;
    font-size: 11px;
    text-align: center;
}

.profile-cropper__hint b {
    color: var(--color-sage);
    font-weight: 650;
}

.profile-cropper__zoom {
    gap: 12px;
    margin-top: 16px;
}

.profile-cropper__zoom > span,
.profile-cropper__zoom output {
    flex: 0 0 auto;
    min-width: 36px;
    font-size: 11px;
    font-weight: 650;
}

.profile-cropper__zoom input {
    width: 100%;
    accent-color: var(--color-primary);
}

.profile-cropper__zoom output {
    color: var(--color-text-muted);
    text-align: right;
}

.profile-cropper__status {
    min-height: 20px;
    margin-top: 8px;
    color: #8c352d;
    font-size: 11px;
    text-align: right;
}

.profile-cropper__actions {
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.form-section {
    padding: 0 20px 24px;
    border-bottom: 1px solid var(--color-border);
}

.field--chips {
    margin-top: 18px;
}

.profile-edit-form > .sticky-form-action {
    margin-inline: 0;
    padding-inline: 20px;
}

/* Bookmarks, people and settings */
.bookmark-filter {
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-border);
}

.bookmark-list {
    display: grid;
}

.saved-card {
    display: grid;
    grid-template-columns: 126px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-border);
}

.saved-card__visual {
    min-height: 94px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-surface-muted);
}

.saved-card__visual img {
    width: 100%;
    height: 100%;
    min-height: 94px;
    object-fit: cover;
}

.saved-card > div:nth-child(2) {
    display: grid;
    align-content: center;
    gap: 3px;
}

.content-type {
    color: var(--color-primary);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .1em;
}

.saved-card h3 {
    font-size: 14px;
    line-height: 1.45;
}

.saved-card p,
.saved-card small {
    color: var(--color-text-muted);
    font-size: 10px;
}

.saved-card small .rs-icon {
    display: inline;
    width: 12px;
    height: 12px;
    vertical-align: -2px;
}

.search-field--list {
    margin: 18px 20px 4px;
}

.network-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 20px;
}

.network-search .search-field--list {
    flex: 1;
}

.people-list {
    display: grid;
    padding: 8px 20px 32px;
}

.person-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    min-height: 74px;
    border-bottom: 1px solid var(--color-border);
}

.person-row > div {
    display: grid;
    min-width: 0;
    line-height: 1.38;
}

.person-row__avatar,
.person-row__identity {
    color: inherit;
    text-decoration: none;
}

.person-row__avatar {
    display: grid;
}

.person-row__identity {
    display: grid;
    min-width: 0;
}

.person-row span,
.person-row small {
    overflow: hidden;
    color: var(--color-text-muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.network-empty-state {
    margin-top: 12px;
}

.network-page-more {
    width: fit-content;
    margin: 20px auto 0;
}

.blocked-users-intro {
    margin: 18px 20px 4px;
    padding: 13px 15px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
    font-size: 11px;
    line-height: 1.65;
}

.blocked-users-list .person-row__identity > span {
    display: block;
}

.profile-stats > a:hover span,
.profile-stats > a:focus-visible span {
    color: var(--color-primary);
}

@media (max-width: 520px) {
    .network-search {
        flex-wrap: wrap;
        padding: 0 20px;
    }

    .network-search .search-field--list {
        flex-basis: 100%;
        margin-inline: 0;
    }
}

.settings-profile {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    margin: 20px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: var(--color-surface);
}

.settings-profile > div {
    display: grid;
    line-height: 1.4;
}

.settings-profile > div span {
    color: var(--color-text-muted);
    font-size: 11px;
}

.settings-group {
    padding: 0 20px 16px;
}

.settings-group .section-heading {
    padding-bottom: 5px;
}

.setting-row__icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    border-radius: 10px;
    background: var(--color-surface-muted);
    color: var(--color-primary-dark);
    font-size: 14px;
    font-weight: 700;
}

.setting-row__icon .rs-icon {
    width: 17px;
    height: 17px;
}

.setting-row--control {
    grid-template-columns: auto 1fr auto;
}

.setting-row > em {
    max-width: 180px;
    text-align: right;
}

.setting-row select {
    max-width: 100px;
    min-height: 38px;
    padding: 0 8px;
    border: 1px solid var(--color-border);
    border-radius: 9px;
    background: var(--color-surface);
    font-size: 11px;
}

.switch {
    position: relative;
    width: 43px;
    height: 25px;
    margin: 0;
    appearance: none;
    border-radius: 999px;
    background: #d8cfc6;
    transition: background-color .18s ease;
}

.switch::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(58, 48, 42, .18);
    content: "";
    transition: transform .18s ease;
}

.switch:checked {
    background: var(--color-primary);
}

.switch:checked::before {
    transform: translateX(18px);
}

.danger-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 40px);
    min-height: 46px;
    margin: 12px 20px;
    border: 1px solid rgba(140, 60, 60, .24);
    border-radius: 12px;
    background: rgba(140, 60, 60, .06);
    color: var(--color-tertiary);
    font-weight: 650;
}

.settings-save-action {
    display: flex;
    justify-content: flex-end;
    padding-top: 12px;
}

.mock-toast {
    position: fixed;
    z-index: 100;
    right: 50%;
    bottom: 28px;
    max-width: min(calc(100% - 32px), 380px);
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(52, 45, 41, .92);
    color: #fff;
    box-shadow: 0 12px 34px rgba(35, 29, 25, .22);
    font-size: 12px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, 14px);
    transition: opacity .2s ease, transform .2s ease;
}

.mock-toast.is-visible {
    opacity: 1;
    transform: translate(50%, 0);
}

@media (max-width: 1099px) {
    .welcome-nav {
        gap: 16px;
    }

    .welcome-hero__grid {
        grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
        gap: 38px;
    }

    .welcome-visual {
        min-height: 520px;
    }

    .welcome-float-card--run {
        left: 16px;
    }

    .welcome-float-card--event {
        right: -16px;
    }

    .app-shell {
        grid-template-columns: 190px minmax(0, var(--content-width));
        justify-content: center;
        gap: 22px;
    }

    .context-rail {
        display: none;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .welcome-container {
        width: min(calc(100% - 32px), 640px);
    }

    .welcome-header {
        position: absolute;
    }

    .welcome-header__inner {
        min-height: 68px;
    }

    .welcome-nav,
    .welcome-header__actions .button {
        display: none;
    }

    .welcome-header__actions {
        gap: 0;
    }

    .welcome-login-link {
        display: inline-flex;
        align-items: center;
        min-height: 42px;
        padding: 0 15px;
        border: 1px solid var(--color-border);
        border-radius: 999px;
        background: rgba(255, 253, 249, .7);
        color: var(--color-primary-dark);
    }

    .welcome-hero {
        min-height: auto;
        padding: 112px 0 70px;
        background:
            radial-gradient(circle at 20% 10%, rgba(237, 206, 174, .38), transparent 29%),
            var(--color-background);
    }

    .welcome-hero__grid {
        display: flex;
        flex-direction: column;
        gap: 48px;
    }

    .welcome-hero__copy {
        width: 100%;
    }

    .welcome-hero__copy h1 {
        font-size: clamp(46px, 15vw, 68px);
    }

    .welcome-hero__copy > p {
        margin-top: 20px;
        font-size: 15px;
    }

    .welcome-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
        margin-top: 28px;
    }

    .welcome-trust {
        margin-top: 30px;
    }

    .welcome-visual {
        width: 100%;
        min-height: 520px;
        border-radius: 46% 46% 20px 20px;
    }

    .welcome-float-card--run {
        top: 92px;
        left: 12px;
        min-width: 145px;
    }

    .welcome-float-card--event {
        right: 12px;
        bottom: 48px;
        min-width: 255px;
    }

    .welcome-visual__caption {
        left: 18px;
        font-size: 32px;
    }

    .welcome-feature-section,
    .welcome-journey-section {
        padding: 76px 0;
    }

    .welcome-section-heading {
        display: block;
    }

    .welcome-section-heading h2,
    .welcome-journey__copy h2,
    .welcome-cta h2 {
        font-size: 36px;
    }

    .welcome-section-heading > p {
        margin-top: 18px;
    }

    .welcome-feature-grid {
        grid-template-columns: 1fr;
        margin-top: 34px;
    }

    .welcome-feature-card {
        min-height: 290px;
    }

    .welcome-feature-card__icon {
        margin-bottom: 36px;
    }

    .welcome-journey {
        display: flex;
        flex-direction: column;
        gap: 46px;
    }

    .welcome-journey__visual {
        order: 2;
        width: 100%;
        min-height: 500px;
    }

    .welcome-journey__copy {
        order: 1;
    }

    .welcome-cta-section {
        padding-bottom: 60px;
    }

    .welcome-cta {
        display: grid;
        min-height: 390px;
        padding: 32px 24px;
    }

    .welcome-cta > div:last-child {
        display: grid;
        flex-basis: auto;
    }

    .welcome-footer .welcome-container {
        grid-template-columns: 1fr auto;
    }

    .welcome-footer p {
        display: none;
    }

    .auth-shell {
        display: block;
    }

    .auth-brand {
        display: none;
    }

    .auth-panel {
        justify-content: flex-start;
        min-height: 100dvh;
        padding: 24px 20px 48px;
    }

    .auth-panel::before {
        width: 70px;
        height: 70px;
        margin: 12px auto 24px;
        border-radius: 50%;
        background: url('../media/runscape-mark.svg') center / contain no-repeat;
        content: "";
    }

    .auth-panel > .preview-pill {
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .auth-card__heading {
        margin-bottom: 24px;
        text-align: center;
    }

    .auth-card__heading h1 {
        font-size: 28px;
    }

    .onboarding-shell {
        width: min(100% - 28px, 640px);
    }

    .onboarding-header {
        min-height: 70px;
    }

    .onboarding-card {
        display: block;
        margin-top: 16px;
        padding: 22px 18px;
        border-radius: 20px;
    }

    .onboarding-copy {
        margin-bottom: 28px;
    }

    .onboarding-copy h1 {
        font-size: 31px;
    }

    .choice-grid--three {
        grid-template-columns: 1fr;
    }

    .app-body {
        background: var(--color-surface);
    }

    .app-shell {
        display: block;
        width: 100%;
        height: calc(100vh - var(--mobile-bottom-nav-height) - env(safe-area-inset-bottom));
        height: calc(100dvh - var(--mobile-bottom-nav-height) - env(safe-area-inset-bottom));
        min-height: 0;
    }

    .side-nav,
    .context-rail {
        display: none;
    }

    .main-column {
        height: 100%;
        border: 0;
        background: var(--color-surface);
    }

    #runscape-app-navigation.appnav {
        height: 100%;
        min-height: 0;
    }

    .top-bar {
        min-height: 58px;
        padding: 7px 14px;
    }

    .top-bar h1 {
        font-size: 17px;
    }

    .top-bar .icon-button {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .page-content {
        min-height: calc(100dvh - 58px - var(--mobile-bottom-nav-height) - env(safe-area-inset-bottom));
        padding-bottom: 0;
    }

    .appnav-page {
        scroll-padding-bottom: 0;
    }

    .bottom-nav {
        position: fixed;
        z-index: 50;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        min-height: calc(var(--mobile-bottom-nav-height) + env(safe-area-inset-bottom));
        padding: 5px 8px env(safe-area-inset-bottom);
        border-top: 1px solid var(--color-border);
        background: rgba(255, 253, 249, .95);
        backdrop-filter: blur(18px);
    }

    .bottom-nav a {
        display: grid;
        place-items: center;
        align-content: center;
        gap: 2px;
        min-height: 50px;
        color: var(--color-text-muted);
        font-size: 10px;
        font-weight: 600;
    }

    .bottom-nav .rs-icon {
        width: 21px;
        height: 21px;
    }

    .bottom-nav a.is-active {
        color: var(--color-primary);
    }

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

    .post-card,
    .composer-page {
        padding-inline: 16px;
    }

    .feed-intro,
    .discovery-controls,
    .discovery-section,
    .comments-section,
    .content-section,
    .detail-summary,
    .tour-price-bar,
    .profile-main,
    .form-section,
    .settings-group {
        padding-inline: 16px;
    }

    .mock-photo__caption {
        font-size: 34px;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        display: grid;
        grid-template-columns: 42% 1fr;
    }

    .event-card__visual {
        min-height: 190px;
        aspect-ratio: auto;
    }

    .event-card__body h3 {
        min-height: 0;
    }

    .tour-card {
        grid-template-columns: 40% 1fr;
    }

    .tour-card__visual,
    .tour-card {
        min-height: 200px;
    }

    .tour-card__body {
        padding: 14px;
    }

    .tour-card__body h3 {
        font-size: 15px;
    }

    .detail-hero {
        min-height: 360px;
    }

    .detail-hero__overlay {
        right: 18px;
        bottom: 24px;
        left: 18px;
    }

    .detail-hero__overlay h2 {
        font-size: 40px;
    }

    .detail-hero__date {
        top: 18px;
        right: 18px;
        width: 68px;
        height: 76px;
    }

    .detail-hero__date b {
        font-size: 32px;
    }

    .detail-summary,
    .tour-price-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .save-button,
    .tour-price-bar > .button {
        width: 100%;
    }

    .profile-cover {
        height: 158px;
    }

    .profile-avatar-wrap {
        height: 52px;
    }

    .profile-stats {
        justify-content: space-between;
        gap: 12px;
    }

    .profile-stats.profile-stats--own {
        justify-content: flex-start;
        gap: 20px;
    }

    .settings-profile {
        margin-inline: 16px;
    }

    .search-field--list {
        margin-inline: 16px;
    }

    .people-list {
        padding-inline: 16px;
    }

    .detail-cta,
    .sticky-form-action,
    .comment-composer {
        bottom: 0;
    }

    .profile-edit-form > .sticky-form-action {
        margin-inline: 16px;
    }

    .mock-toast {
        bottom: calc(var(--mobile-bottom-nav-height) + 14px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 479px) {
    .welcome-hero__copy h1 {
        font-size: 49px;
    }

    .welcome-visual {
        min-height: 470px;
    }

    .welcome-visual__sun {
        top: 64px;
        right: 38px;
        width: 88px;
        height: 88px;
    }

    .welcome-float-card--run {
        top: 78px;
        left: 10px;
    }

    .welcome-float-card--event {
        right: 10px;
        bottom: 34px;
        min-width: 245px;
    }

    .welcome-feature-card {
        padding: 24px;
    }

    .welcome-journey__visual {
        min-height: 430px;
    }

    .welcome-footer .welcome-container {
        display: grid;
        grid-template-columns: 1fr;
    }

    .welcome-footer > div > small {
        margin-top: 4px;
    }

    .brand img {
        width: 34px;
        height: 34px;
    }

    .onboarding-header .preview-pill {
        max-width: 96px;
        overflow: hidden;
        white-space: nowrap;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }

    .event-inline {
        grid-template-columns: 104px 1fr;
    }

    .event-card,
    .tour-card {
        display: flex;
        flex-direction: column;
    }

    .event-card__visual,
    .tour-card__visual {
        min-height: 190px;
    }

    .distance-cards,
    .inclusion-grid {
        grid-template-columns: 1fr;
    }

    .detail-facts {
        display: grid;
        gap: 13px;
    }

    .route-preview {
        grid-template-columns: 82px 1fr;
    }

    .organizer-row {
        grid-template-columns: 1fr auto;
    }

    .organizer-row .text-button {
        grid-column: 2;
        justify-self: start;
    }

    .detail-cta {
        gap: 8px;
    }

    .detail-cta .button {
        padding-inline: 13px;
        font-size: 12px;
    }

    .departure-card {
        grid-template-columns: 91px 1fr auto;
        gap: 8px;
        padding-inline: 10px;
    }

    .profile-actions {
        right: 16px;
    }

    .profile-stats--own {
        right: 16px;
        gap: 16px;
    }

    .top-bar__profile-edit {
        gap: 5px;
        padding-inline: 10px;
        font-size: 12px;
    }

    .top-bar__profile-edit .rs-icon {
        width: 16px;
        height: 16px;
    }

    .profile-post {
        grid-template-columns: minmax(0, 100px) minmax(0, 1fr);
        gap: 12px;
        padding-inline: 16px;
    }

    .saved-card {
        grid-template-columns: 94px 1fr auto;
        gap: 10px;
        padding-inline: 16px;
    }

    .saved-card__visual {
        min-height: 82px;
    }

    .person-row .button {
        min-width: 68px;
        padding-inline: 10px;
    }

    .settings-profile {
        grid-template-columns: auto 1fr;
    }

    .sticky-form-action > span {
        display: none;
    }

    .sticky-form-action .button {
        width: 100%;
    }

    .profile-cropper {
        width: calc(100% - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 18px;
    }

    .profile-cropper__panel {
        max-height: calc(100dvh - 20px);
        padding: 16px;
    }

    .profile-cropper__actions .button {
        flex: 1;
        padding-inline: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Public discovery foundation: shared by events and tours. */
[data-discovery-search] .filter-row { flex-wrap: wrap; overflow: visible; gap: 12px; }
[data-discovery-search] label { display: flex; align-items: center; gap: 8px; max-width: 100%; }
[data-discovery-search] input, [data-discovery-search] select { min-width: 0; max-width: 100%; min-height: 44px; }
[data-discovery-search] select[name="country_name"] { min-width: 130px; }
.discovery-filter-panel { margin-top: 12px; border: 1px solid var(--color-border); border-radius: 14px; background: rgba(255, 253, 249, .76); }
.discovery-filter-panel > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; cursor: pointer; list-style: none; color: var(--color-text); }
.discovery-filter-panel > summary::-webkit-details-marker { display: none; }
.discovery-filter-panel > summary > span { display: inline-flex; align-items: center; gap: 8px; }
.discovery-filter-panel > summary .rs-icon { width: 18px; color: var(--color-text-muted); }
.discovery-filter-panel > summary > em { margin-left: auto; padding: 3px 8px; border-radius: 999px; background: var(--color-primary-soft); color: var(--color-primary-dark); font-size: 11px; font-style: normal; font-weight: 700; }
.discovery-filter-panel > summary > .rs-icon:last-child { margin-left: auto; transition: transform .18s ease; }
.discovery-filter-panel > summary > em + .rs-icon { margin-left: 0; }
.discovery-filter-panel[open] > summary > .rs-icon:last-child { transform: rotate(90deg); }
.discovery-filter-panel > .filter-row { margin: 0; padding: 12px; border-top: 1px solid var(--color-border); }
.event-filter-row > label { flex: 1 1 150px; justify-content: space-between; color: var(--color-text-muted); font-size: 11px; }
.tour-filter-row > label { flex: 1 1 150px; justify-content: space-between; color: var(--color-text-muted); font-size: 11px; }
.event-filter-row > label input, .event-filter-row > label select,
.tour-filter-row > label input, .tour-filter-row > label select { flex: 1; width: 100%; padding-inline: 10px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); }
.event-filter-row .button { min-height: 44px; }
.discovery-next { display: flex; width: fit-content; margin: 22px auto 0; }
.discovery-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.discovery-cover--empty { display: grid; place-items: center; background: var(--color-surface, #fffdf9); color: var(--color-text-muted, #756a63); }
.discovery-item h2, .discovery-item p { overflow-wrap: anywhere; }

@media (max-width: 767px) {
    .event-filter-row > label { flex-basis: 100%; }
    .tour-filter-row > label { flex-basis: 100%; }
    .event-filter-row > .button, .tour-filter-row > .button { flex: 1; }
    .tour-package-grid { grid-template-columns: 1fr; margin-left: 0; }
    .tour-departure-card { grid-template-columns: 1fr; }
    .tour-event-callout { grid-template-columns: auto 1fr; }
    .tour-event-callout .text-button { grid-column: 2; }
    .detail-hero > .detail-hero__tag { top: 18px; left: 18px; }
}
