/* ==========================================================================
   How To Reach Kanha (/how-to-reach-kanha/)
   Final theme: balanced corners (14px cards, 9px chips), thin 1px borders, flat cards,
   soft gold on hover. Built on theme.css tokens and home.css components.
   ========================================================================== */

.theme-reach main {
    --radius-sm: 9px;
    --radius: 14px;
    --radius-lg: 14px;
    --edge: 1px solid var(--line-strong);
    --lift: 0 10px 28px rgba(42, 31, 23, .07);
    --edge-hover: rgba(188, 140, 63, .6);
    --rc-y: clamp(48px, 5.5vw, 76px);
}
.theme-reach main > section.section { padding-block: var(--rc-y); }
.theme-reach .section-head { margin-bottom: clamp(28px, 3.6vw, 48px); }
.theme-reach .section-head h2::after,
.theme-reach .rc-head h1::after {
    left: 50%;
    width: 96px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-deep) 70%, transparent);
}
.theme-reach .section h2 em, .theme-reach .rc-head h1 em { color: var(--gold-ink); font-style: italic; font-weight: 400; }
.theme-reach .section--dark h2 em { color: var(--gold); }

/* ---------- Banner (image only, full width) ---------- */
.rc-banner {
    position: relative;
    height: clamp(500px, 86vh, 880px);
    background: var(--ink);
    overflow: hidden;
}
.rc-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 55%; }
.rc-banner::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft), var(--gold), var(--gold-deep));
}

/* ---------- Title ---------- */
.rc-head {
    padding: clamp(40px, 5vw, 64px) 0 clamp(40px, 5vw, 60px);
    background:
        radial-gradient(760px 300px at 50% 0%, rgba(232, 189, 85, .12), transparent 70%),
        linear-gradient(180deg, var(--cream), var(--paper));
    border-bottom: 1px solid var(--line);
    text-align: center;
}
.rc-head .ornament { margin-bottom: 18px; }
.rc-head h1 {
    position: relative;
    max-width: 30em;
    margin: 0 auto;
    padding-bottom: 24px;
    font-size: var(--fs-title);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.012em;
}
.rc-head h1::after { content: ""; position: absolute; bottom: 0; height: 2px; border-radius: 2px; }

/* ---------- Shared layout bits ---------- */
.rc-split {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(36px, 6vw, 96px);
    align-items: center;
}
.rc-split--media-first { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.rc-transport .rc-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* Intro: give the location map more room so its labels stay readable. */
.rc-intro .rc-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 4.5vw, 72px); }

/* Description copy: the site's serif italic voice, justified on larger screens. */
.rc-prose p {
    margin: 0 0 1.4em;
    color: var(--text);
    font: italic 400 1.05rem/1.9 var(--font-display);
    letter-spacing: .005em;
    text-align: justify;
    text-justify: inter-word;
    hyphens: manual;
}
.rc-prose p:last-child { margin-bottom: 0; }
.rc-prose--lead p:first-child {
    padding-left: 22px;
    border-left: 2px solid var(--gold);
    color: var(--heading);
    font-size: 1.16rem;
}
.rc-prose h2 {
    position: relative;
    margin: 0 0 24px;
    padding-bottom: 20px;
    font-size: var(--fs-section);
    line-height: 1.2;
}
.rc-prose h2::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 64px; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold) 60%, transparent);
}
.rc-prose a { color: var(--gold-ink); }

/* Transport heading: icon badge on the left of the title, one gold underline beneath both. */
.rc-titlebar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 20px;
}
.rc-titlebar::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 64px; height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold-deep), var(--gold) 60%, transparent);
}
.theme-reach .rc-titlebar h2 { margin: 0; padding-bottom: 0; }
.theme-reach .rc-titlebar h2::after { display: none; }
.rc-mode {
    flex: none;
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border: var(--edge);
    border-radius: var(--radius);
    background: rgba(232, 189, 85, .16);
    color: var(--gold-deep);
}
.rc-mode .icon { width: 24px; height: 24px; }

/* Framed images: thin border, balanced corners, offset gold outline */
.rc-frame { position: relative; margin: 0; }
.rc-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(188, 140, 63, .55);
    border-radius: var(--radius);
    transform: translate(14px, 14px);
}
.rc-frame img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: var(--edge);
    border-radius: var(--radius);
    background: var(--sand);
}
.rc-frame--map img { aspect-ratio: auto; object-fit: contain; background: #fff; padding: 0; }

/* ---------- Quick travel guide table ---------- */
.rc-table-card {
    max-width: 920px;
    margin-inline: auto;
    border: var(--edge);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}
.rc-table { width: 100%; border-collapse: collapse; }
.rc-table th, .rc-table td { padding: 18px 26px; text-align: left; border-bottom: 1px solid var(--line); }
.rc-table thead th {
    background: var(--sand);
    color: var(--gold-ink);
    font: 700 11.5px/1.4 var(--font-body);
    letter-spacing: .16em;
    text-transform: uppercase;
}
.rc-table tbody th { color: var(--heading); font: 500 1.08rem/1.4 var(--font-display); }
.rc-table tbody td { color: var(--text); font: 500 1rem/1.4 var(--font-body); white-space: nowrap; }
.rc-table tbody tr:last-child > * { border-bottom: 0; }
.rc-table tbody tr { transition: background .3s; }
.rc-table tbody tr:hover { background: rgba(232, 189, 85, .09); }
.rc-pin {
    display: inline-grid;
    place-items: center;
    width: 30px; height: 30px;
    margin-right: 14px;
    border-radius: 9px;
    background: rgba(232, 189, 85, .2);
    color: var(--gold-deep);
    vertical-align: middle;
}
.rc-pin .icon { width: 15px; height: 15px; }

/* ---------- Distance cards ---------- */
.rc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.rc-card {
    display: flex;
    flex-direction: column;
    border: var(--edge);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    transition: border-color .3s, box-shadow .4s var(--ease);
}
.rc-card:hover { border-color: var(--edge-hover); box-shadow: var(--lift); }
.rc-card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.rc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.rc-card:hover .rc-card__img img { transform: scale(1.04); }
.rc-card__body { flex: 1; padding: 24px 26px 28px; }
.theme-reach .rc-card h3 { margin: 0 0 12px; font-size: var(--fs-card); line-height: 1.3; }
.rc-card p { margin: 0; color: var(--text); font: italic 400 .98rem/1.8 var(--font-display); text-align: justify; hyphens: manual; }

/* ---------- Distance guide + gates ---------- */
.rc-guide__text { max-width: 900px; margin: 0 auto clamp(44px, 5vw, 72px); }
.theme-reach .rc-guide__text p { text-align: center; text-align-last: center; }
.rc-gates { margin-top: 0; }

/* ---------- Resorts + packages (dark) ---------- */
.rc-info__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.rc-panel {
    padding: clamp(28px, 3.4vw, 46px);
    border: 1px solid rgba(232, 189, 85, .3);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(232, 189, 85, .09), rgba(255, 255, 255, .025) 60%);
}
.theme-reach .rc-panel h2 {
    margin: 0 0 22px;
    color: #fff8ec;
    font-size: var(--fs-panel);
    line-height: 1.25;
}
.rc-panel p { margin: 0 0 1.3em; color: #cfc4b8; font: italic 400 1.04rem/1.9 var(--font-display); text-align: justify; hyphens: manual; }
.rc-panel p:last-child { margin-bottom: 0; }
.theme-reach .section--dark .kss-inline-link { color: var(--gold); }

/* ---------- FAQ ---------- */
.rc-faq__list { max-width: 920px; margin-inline: auto; }
.theme-reach .rc-faq .faq-item p { text-align: justify; hyphens: manual; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .rc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rc-cards > :last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 14px); justify-self: center; }
}
@media (max-width: 900px) {
    .rc-banner { height: clamp(340px, 62vh, 540px); }
    .rc-split, .rc-split--media-first, .rc-transport .rc-split, .rc-intro .rc-split { grid-template-columns: minmax(0, 1fr); }
    .rc-frame { width: calc(100% - 14px); max-width: 600px; margin-inline: auto; }
    .rc-frame::before { transform: translate(10px, 10px); }
    .rc-info__grid { grid-template-columns: minmax(0, 1fr); }
    /* On stacked layouts the image always comes first. */
    .rc-transport .rc-split > .rc-prose { order: 2; }
    .rc-transport .rc-split > .rc-frame { order: 1; }
}
@media (max-width: 700px) {
    .rc-cards { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
    .rc-cards > :last-child:nth-child(odd) { width: auto; }

    /* Table rows become labelled cards */
    .rc-table-card { border: 0; background: transparent; overflow: visible; }
    .rc-table, .rc-table tbody, .rc-table tr, .rc-table th, .rc-table td { display: block; }
    .rc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .rc-table tbody tr { margin-bottom: 14px; border: var(--edge); border-radius: var(--radius); background: #fff; overflow: hidden; }
    .rc-table tbody th { padding: 16px 20px; background: var(--sand); border-bottom: 1px solid var(--line); }
    .rc-table tbody td { display: flex; justify-content: space-between; gap: 16px; padding: 13px 20px; border-bottom: 1px solid var(--line); white-space: normal; text-align: right; }
    .rc-table tbody td:last-child { border-bottom: 0; }
    .rc-table tbody td::before { content: attr(data-label); color: var(--gold-ink); font: 700 11.5px/1.6 var(--font-body); letter-spacing: .14em; text-align: left; text-transform: uppercase; }
    .rc-table tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
    .rc-table tbody tr:last-child > td:last-child { border-bottom: 0; }

    .rc-prose p, .rc-card p, .rc-panel p, .theme-reach .rc-faq .faq-item p { text-align: left; }
    .rc-prose--lead p:first-child { padding-left: 16px; font-size: 1.1rem; }
    .rc-card__body { padding: 22px 22px 26px; }
    .rc-titlebar { gap: 14px; }
    .rc-mode { width: 46px; height: 46px; }
    .rc-mode .icon { width: 21px; height: 21px; }
}
@media (hover: none) {
    .rc-card:hover { box-shadow: none; }
}
