/* Rank Hotelier — Resources (resources/ and es/recursos/). Builds on legal.css for the reading column. */

.rs-crumbs, .lg-doc .rs-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font-family: 'Inter', system-ui, sans-serif; font-size: 12.5px; color: var(--rh-ink-muted); }
.rs-crumbs li + li, .lg-doc .rs-crumbs li + li { margin-top: 0; }
.rs-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--rh-ink-faint); }
.rs-crumbs a { color: var(--rh-ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.rs-crumbs a:hover { color: var(--rh-navy); }
.rs-crumbs [aria-current] { color: var(--rh-gris); }

.lg-doc .rs-lead, .rs-hub .rs-lead { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--rh-gris); }

.rs-summary { margin: 28px 0 0; padding: 20px 22px; background: var(--rh-canvas); border: 1px solid var(--rh-border); border-radius: var(--rh-radius-card); }
.rs-summary-title { display: block; font-family: 'Inter', system-ui, sans-serif; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--rh-ink-muted); }
.lg-doc .rs-summary ul { margin-top: 10px; }

.lg-doc ol { margin: 14px 0 0; padding-left: 22px; }
.lg-doc ol li + li { margin-top: 8px; }

/* Comparison table: a regular table on wide screens, one labelled block per row on phones. */
.rs-table { margin: 18px 0 0; overflow-x: auto; border: 1px solid var(--rh-border); border-radius: var(--rh-radius-card); }
.rs-table:focus-visible { outline: 2px solid var(--rh-navy); outline-offset: 2px; }
.rs-table table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.rs-table th { text-align: left; vertical-align: bottom; font-family: 'Inter', system-ui, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--rh-ink-muted); background: var(--rh-canvas); padding: 10px 14px; }
.rs-table td { padding: 12px 14px; vertical-align: top; border-top: 1px solid var(--rh-border); }
.rs-table td:first-child { font-weight: 700; color: var(--rh-navy); }
@media (max-width: 639px) {
  .rs-table { overflow: visible; }
  .rs-table table, .rs-table tbody, .rs-table tr, .rs-table td { display: block; min-width: 0; }
  .rs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rs-table tr { padding: 14px 16px; }
  .rs-table tr + tr { border-top: 1px solid var(--rh-border); }
  .rs-table td { padding: 0; border: 0; }
  .rs-table td + td { margin-top: 8px; }
  .rs-table td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-family: 'Inter', system-ui, sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--rh-ink-muted); }
}
.lg-doc .rs-note { font-size: 14px; color: var(--rh-ink-muted); }

/* Closing call to action */
.rs-cta { margin: 48px 0 0; padding: clamp(22px, 3vw, 30px); background: var(--rh-navy); border-radius: var(--rh-radius-lg); color: var(--rh-on-navy); }
.rs-cta .lg-eyebrow { color: var(--rh-accent); }
.lg-doc .rs-cta h2 { margin: 10px 0 0; color: #FFFFFF; }
.lg-doc .rs-cta p { color: var(--rh-on-navy); }
.lg-doc .rs-cta .rs-button { display: inline-flex; align-items: center; margin-top: 20px; padding: 15px 22px; border-radius: 8px; background: var(--rh-accent-fill); color: #FFFFFF; font-weight: 700; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; transition: background 120ms ease, transform 120ms ease; }
.lg-doc .rs-cta .rs-button:hover { background: var(--rh-accent-fill-hover); color: #FFFFFF; }
.lg-doc .rs-cta .rs-button:active { transform: translateY(1px); }
.lg-doc .rs-cta .rs-button:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }

.rs-sources { margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--rh-border); font-size: 14px; }
.lg-doc .rs-sources h2 { margin-top: 0; font-size: 17px; }
.lg-doc .rs-sources li + li { margin-top: 6px; }

/* Cover band (design-system scene, npm run images). Decorative: the H1 above carries the title. */
.rs-cover { display: block; width: 100%; height: auto; margin: 26px 0 0; border-radius: var(--rh-radius-card); background: #F5EFE9; }

/* Funnel figure: four steps in a row on wide screens, stacked on phones. One accent: the step labels. */
.rs-funnel { margin: 22px 0 0; }
.lg-doc .rs-funnel ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.lg-doc .rs-funnel li { position: relative; margin: 0; padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--rh-canvas); border: 1px solid var(--rh-border); border-radius: var(--rh-radius-card); font-size: 14px; line-height: 1.45; }
.lg-doc .rs-funnel li + li::before { content: "→"; position: absolute; left: -10px; top: 50%; transform: translate(-50%, -50%); font-size: 13px; color: var(--rh-ink-faint); }
.rs-funnel-step { font-family: 'Inter', system-ui, sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: #C1482A; }
.lg-doc .rs-funnel strong { font-size: 15.5px; line-height: 1.3; }
.rs-funnel figcaption { margin-top: 10px; font-size: 13.5px; color: var(--rh-ink-muted); }
@media (max-width: 639px) {
  .lg-doc .rs-funnel ol { grid-template-columns: minmax(0, 1fr); }
  .lg-doc .rs-funnel li + li::before { content: "↓"; left: 50%; top: -10px; }
}


/* ---------------------------------------------------------------- Hub (resources/index.html) */
.rs-hub { flex: 1; padding: clamp(36px, 5vw, 64px) clamp(16px, 4vw, 28px) clamp(56px, 8vw, 96px); }
.rs-hub-inner { max-width: 1120px; margin: 0 auto; }
.rs-hub-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: end; }
.rs-hub h1 { margin: 12px 0 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; color: var(--rh-navy); text-wrap: balance; }
.rs-hub .rs-lead { margin-bottom: 0; }
@media (max-width: 899px) { .rs-hub-head { grid-template-columns: minmax(0, 1fr); align-items: start; } }

.rs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(28px, 4vw, 40px) 0 0; padding: 0 0 16px; border-bottom: 1px solid #E9E2D8; }
.rs-chips[hidden] { display: none; }
.rs-chips button { font: 600 14px/1 'Raleway', system-ui, sans-serif; padding: 10px 15px; border-radius: 999px; border: 1px solid var(--rh-border); background: var(--rh-surface); color: var(--rh-gris); cursor: pointer; transition: background 120ms ease, border-color 120ms ease, color 120ms ease; }
@media (hover: hover) { .rs-chips button:hover { border-color: var(--rh-navy); color: var(--rh-navy); } }
.rs-chips button[aria-pressed="true"] { background: var(--rh-navy); border-color: var(--rh-navy); color: #FFFFFF; }
.rs-chips button:focus-visible { outline: 2px solid var(--rh-navy); outline-offset: 2px; }

.rs-kicker { font-family: 'Inter', system-ui, sans-serif; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: #C1482A; }
.rs-meta { font-family: 'Inter', system-ui, sans-serif; font-size: 12.5px; color: var(--rh-ink-muted); }

/* Featured piece ("Start here") */
.rs-feature { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin: 28px 0 0; background: var(--rh-surface); border: 1px solid var(--rh-border); border-radius: 16px; overflow: hidden; transition: border-color 140ms ease, box-shadow 140ms ease; }
.rs-feature[hidden] { display: none; }
.rs-feature img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; object-position: center bottom; background: #F5EFE9; }
.rs-feature-text { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: clamp(22px, 3vw, 36px); }
.rs-feature h2 { margin: 0; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; color: var(--rh-navy); text-wrap: balance; }
.rs-feature p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--rh-gris); }
@media (max-width: 767px) { .rs-feature { grid-template-columns: minmax(0, 1fr); } .rs-feature img { min-height: 0; aspect-ratio: 3 / 1; } }

/* Grid of pieces */
.rs-latest-head { margin: clamp(32px, 4vw, 44px) 0 16px; font-size: 22px; font-weight: 800; letter-spacing: -0.3px; color: var(--rh-navy); }
.rs-latest-head[hidden] { display: none; }
.rs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; margin: 20px 0 0; padding: 0; list-style: none; }
.rs-tile { position: relative; display: flex; flex-direction: column; background: var(--rh-surface); border: 1px solid var(--rh-border); border-radius: var(--rh-radius-card); overflow: hidden; transition: border-color 140ms ease, box-shadow 140ms ease; }
.rs-tile[hidden] { display: none; }
.rs-tile img { display: block; width: 100%; height: 150px; object-fit: cover; object-position: center bottom; background: #F5EFE9; }
.rs-tile-text { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.rs-tile h3 { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 700; color: var(--rh-navy); }
.rs-tile p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--rh-gris); }
.rs-feature a, .rs-tile a { color: inherit; text-decoration: none; }
.rs-feature a::after, .rs-tile a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rs-feature a:focus-visible, .rs-tile a:focus-visible { outline: none; }
.rs-feature:focus-within, .rs-tile:focus-within { outline: 2px solid var(--rh-navy); outline-offset: 2px; }
@media (hover: hover) { .rs-feature:hover, .rs-tile:hover { border-color: var(--rh-navy); box-shadow: var(--rh-shadow-sm); } }

/* Tools band */
.rs-tool { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; margin: clamp(32px, 4vw, 44px) 0 0; padding: 24px 28px; background: var(--rh-navy); border-radius: 16px; color: #FFFFFF; }
.rs-tool img { width: 84px; height: 84px; object-fit: contain; background: #FFFFFF; border-radius: 12px; padding: 6px; }
.rs-tool h2 { margin: 0; font-size: 22px; font-weight: 800; color: #FFFFFF; }
.rs-tool p { margin: 6px 0 0; font-size: 15px; color: #C3D2E6; }
.rs-tool a { display: inline-flex; align-items: center; padding: 14px 20px; border-radius: 8px; background: var(--rh-accent-fill); color: #FFFFFF; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
@media (max-width: 639px) { .rs-tool { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- Newsletter signup */
.rs-sub { padding: 20px 22px; background: var(--rh-canvas); border: 1px solid var(--rh-border); border-radius: 14px; }
.rs-sub-title { margin: 0; font-size: 17px; font-weight: 700; color: var(--rh-navy); }
.rs-sub-text, .rs-sub-note { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--rh-gris); }
.rs-sub-note { font-style: italic; }
.rs-sub-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rs-sub input { flex: 1 1 200px; min-width: 0; height: 46px; box-sizing: border-box; padding: 0 14px; border: 1px solid #DCD1BE; border-radius: 8px; background: #FFFFFF; font: 600 15px 'Raleway', system-ui, sans-serif; color: var(--rh-navy); outline: none; }
.rs-sub input:focus { border-color: var(--rh-navy); box-shadow: 0 0 0 3px rgba(24,52,89,0.10); }
.rs-sub input[aria-invalid="true"] { border-color: #C94A2B; }
.rs-sub button { flex: 0 0 auto; height: 46px; padding: 0 18px; border: 0; border-radius: 8px; background: var(--rh-accent-fill); color: #FFFFFF; font: 700 12px 'Raleway', system-ui, sans-serif; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: background 120ms ease; }
@media (hover: hover) { .rs-sub button:hover { background: var(--rh-accent-fill-hover); } }
.rs-sub button:focus-visible { outline: 2px solid var(--rh-navy); outline-offset: 2px; }
.rs-sub-legal { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--rh-ink-muted); }
.rs-sub-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.rs-sub-status { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--rh-navy); }
.rs-sub-status.is-error { color: #C94A2B; }
.rs-sub.is-done .rs-sub-row, .rs-sub.is-done .rs-sub-legal { display: none; }
.rs-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- Article: layout, bar, rail, related */
.rs-layout { display: grid; grid-template-columns: minmax(0, 720px) 280px; gap: 56px; justify-content: center; max-width: 1120px; margin: 0 auto; }
.rs-layout .lg-doc { margin: 0; }
.rs-rail { position: relative; }
.rs-rail-inner { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 18px; margin-top: 200px; }
.rs-toc { padding-left: 16px; border-left: 2px solid var(--rh-border); }
.rs-toc-title { margin: 0; font-family: 'Inter', system-ui, sans-serif; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--rh-ink-muted); }
.rs-toc ol { margin: 6px 0 0; padding: 0; list-style: none; }
.rs-toc li { margin-top: 8px; }
.rs-toc a { font-size: 14px; line-height: 1.4; color: var(--rh-gris); text-decoration: none; }
.rs-toc a:hover { color: var(--rh-navy); text-decoration: underline; text-underline-offset: 3px; }
.rs-rail .rs-sub { padding: 18px; }
.rs-rail .rs-sub-title { font-size: 16px; }
.rs-rail .rs-sub button { flex: 1 1 100%; }
.rs-diag { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--rh-navy); border-radius: 14px; }
.rs-diag span { font-family: 'Inter', system-ui, sans-serif; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--rh-accent); }
.rs-diag p { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 700; color: #FFFFFF; }
.rs-diag a { align-self: flex-start; margin-top: 4px; font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: #FFFFFF; background: var(--rh-accent-fill); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
@media (max-width: 1099px) {
  .rs-layout { grid-template-columns: minmax(0, 720px); }
  .rs-rail-inner { position: static; margin-top: 40px; }
  .rs-toc, .rs-diag { display: none; }
}

.rs-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 12px 0 0; }
.rs-share { display: flex; align-items: center; gap: 8px; }
.rs-share a, .rs-share button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--rh-border); border-radius: 50%; background: var(--rh-surface); color: var(--rh-navy); cursor: pointer; transition: border-color 120ms ease, background 120ms ease; }
@media (hover: hover) { .rs-share a:hover, .rs-share button:hover { border-color: var(--rh-navy); background: var(--rh-canvas); } }
.rs-share a:focus-visible, .rs-share button:focus-visible { outline: 2px solid var(--rh-navy); outline-offset: 2px; }
.rs-share svg { width: 15px; height: 15px; }
.rs-share button.is-copied { border-color: #2F7A5B; color: #2F7A5B; }
.lg-doc .rs-bar .lg-updated { margin: 0; }

.rs-related { max-width: 1120px; margin: clamp(48px, 6vw, 72px) auto 0; padding-top: 28px; border-top: 1px solid #E9E2D8; }
.rs-related h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.3px; color: var(--rh-navy); }
