/*
 * Hotel Scala – public price list
 * Black masthead (white logo), amber accent from the hotel panel, Poppins (self-hosted, OFL).
 * No inline styles anywhere: the Content-Security-Policy allows only this file.
 */


:root {
  --black: #000;
  --ink: #1f1f1f;
  --paper: #fff;
  --mist: #f5f5f4;
  --line: #dfdfdf;
  --muted: #646464;
  --amber: #ffa800;
  --amber-ink: #8a5a00;
  --night-line: #343434;
  --night-text: #cfcfcf;
  --t1: #fff3d6; --t2: #ffe1a0; --t3: #ffca5c; --t4: #ffad14; --t5: #e08a00; --t6: #b86e00; --t7: #8f5400; --t8: #6b3f00;
  --wrap: 72rem;
  --pad: clamp(1rem, 4vw, 2.5rem);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--paper); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
abbr[title] { text-decoration: none; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 20; padding: .6rem 1rem; background: var(--amber); color: var(--black); font-weight: 500; }
.skip:focus { top: 1rem; }
.preview-bar { position: sticky; top: 0; z-index: 15; padding: .55rem var(--pad); background: var(--amber); color: var(--black); font-weight: 500; text-align: center; }

/* ------------------------------------------------------------ masthead */
.masthead { background: var(--black); color: var(--paper); }
.mast-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.brand img { height: 52px; width: auto; }
.langs { display: flex; gap: .25rem; }
.langs a { display: inline-block; min-width: 2.75rem; padding: .4rem .6rem; text-align: center; text-decoration: none; font-size: .875rem; font-weight: 500; letter-spacing: .06em; color: var(--night-text); border: 1px solid var(--night-line); border-radius: 2px; }
.langs a:hover { color: var(--paper); border-color: var(--paper); }
.langs a[aria-current="true"] { color: var(--black); background: var(--amber); border-color: var(--amber); }

.mast-title { padding-top: clamp(1.5rem, 5vw, 3.5rem); padding-bottom: clamp(1.75rem, 5vw, 3rem); }
.mast-title h1 { font-weight: 300; font-size: clamp(2rem, 6.2vw, 4rem); line-height: 1.08; letter-spacing: -.01em; max-width: 18ch; }
.lede { margin-top: .75rem; font-size: clamp(1rem, 2.2vw, 1.25rem); color: var(--night-text); }
.valid { margin-top: 1.25rem; font-size: .9375rem; color: var(--amber); }

/* section switch – stays at the top while scrolling */
.parts { position: sticky; top: 0; z-index: 10; background: var(--black); border-top: 1px solid var(--night-line); }
.parts-row { display: flex; gap: clamp(1rem, 4vw, 2.5rem); }
.part-link { position: relative; display: inline-block; padding: .9rem 0 .8rem; color: var(--night-text); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.part-link:hover { color: var(--paper); }
.part-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.part-link.is-active { color: var(--paper); }
.part-link.is-active::after { background: var(--amber); }

/* -------------------------------------------------------------- parts */
.part { scroll-margin-top: 3.25rem; }
.part h2 { font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.2; }
.part-rooms { padding: clamp(2rem, 6vw, 3.5rem) 0 clamp(2.5rem, 7vw, 4.5rem); }

/* year strip: where each price period falls in the year */
.year { margin: 1.5rem 0 2rem; }
.year-months { display: grid; grid-template-columns: 31fr 28fr 31fr 30fr 31fr 30fr 31fr 31fr 30fr 31fr 30fr 31fr; padding: 0; list-style: none; margin-bottom: .35rem; }
.year-months li { font-size: .75rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: .3rem; overflow: hidden; white-space: nowrap; }
.year-strip { width: 100%; height: 1.5rem; border-radius: 3px; overflow: hidden; }
.year-strip .gap { fill: #e6e6e6; }
.year-strip .today { fill: var(--black); }
.year figcaption { margin-top: .6rem; font-size: .875rem; color: var(--muted); }
.t1 { fill: var(--t1); } .t2 { fill: var(--t2); } .t3 { fill: var(--t3); } .t4 { fill: var(--t4); }
.t5 { fill: var(--t5); } .t6 { fill: var(--t6); } .t7 { fill: var(--t7); } .t8 { fill: var(--t8); }

/* rate table */
.rates-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 2px solid var(--black); }
.rates { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums; }
.rates th, .rates td { padding: .85rem .75rem; text-align: right; vertical-align: top; border-bottom: 1px solid var(--line); }
.rates thead th { vertical-align: bottom; font-weight: 400; font-size: .8125rem; color: var(--muted); padding-top: 0; }
.rates thead th.season { position: relative; padding-top: 1.1rem; min-width: 7.5rem; }
.rates .swatch { position: absolute; left: .75rem; right: .75rem; top: 0; height: 6px; border-radius: 0 0 2px 2px; }
.season.t1 .swatch { background: var(--t1); } .season.t2 .swatch { background: var(--t2); } .season.t3 .swatch { background: var(--t3); } .season.t4 .swatch { background: var(--t4); }
.season.t5 .swatch { background: var(--t5); } .season.t6 .swatch { background: var(--t6); } .season.t7 .swatch { background: var(--t7); } .season.t8 .swatch { background: var(--t8); }
.rates .range { display: block; white-space: nowrap; color: var(--ink); font-weight: 500; }
.rates .range + .range { font-weight: 400; color: var(--muted); }
.rates .corner { text-align: left; }
.rates .corner span { display: block; }
.rates .corner span + span { color: var(--ink); font-weight: 500; }
.rates tbody th { text-align: left; font-weight: 400; min-width: 12rem; }
.rates .code { display: block; font-weight: 700; letter-spacing: .04em; font-size: .9375rem; }
.rates .rname { display: block; font-size: .875rem; color: var(--muted); max-width: 22ch; }
.rates .price { display: block; font-weight: 500; font-size: 1.125rem; white-space: nowrap; }
.rates .price.na { color: var(--muted); font-weight: 400; }
.rates .mark { color: var(--amber-ink); }
.anchor { display: block; font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.rates .is-now { background: #fff9ec; }
.rates thead th.is-now { box-shadow: inset 0 -3px 0 var(--amber); }
.now { display: inline-block; margin-top: .4rem; padding: .05rem .5rem; border-radius: 2px; background: var(--amber); color: var(--black); font-size: .75rem; font-weight: 500; }
.now-m { display: none; }
.offer { display: inline-block; margin-top: .25rem; padding: 0 .4rem; border: 1px solid var(--amber-ink); border-radius: 2px; color: var(--amber-ink); font-size: .75rem; }

.footnotes { margin-top: 1rem; font-size: .875rem; color: var(--muted); max-width: 70ch; }
.footnotes p + p { margin-top: .35rem; }

/* terms */
.terms { display: grid; gap: 2rem 3rem; margin-top: clamp(2.25rem, 6vw, 3.5rem); }
@media (min-width: 60rem) { .terms { grid-template-columns: 1.25fr 1fr 1fr; } }
.term-block h3 { padding-top: .75rem; border-top: 2px solid var(--black); font-weight: 500; font-size: 1.125rem; margin-bottom: .9rem; }
.term-block ul { padding: 0; list-style: none; }
.term-block li { position: relative; padding-left: 1.1rem; font-size: .9375rem; }
.term-block li + li { margin-top: .6rem; }
.term-block li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45rem; height: 2px; background: var(--amber); }
.extras { width: 100%; border-collapse: collapse; margin-bottom: 1.1rem; }
.extras th, .extras td { padding: .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.extras th { text-align: left; font-weight: 500; font-size: .9375rem; padding-right: 1rem; }
.extras .unit { display: block; font-weight: 400; font-size: .8125rem; color: var(--muted); }
.extras td { text-align: right; white-space: nowrap; }
.extras .price { font-weight: 500; }
.empty { margin-top: 1rem; color: var(--muted); }

/* ------------------------------------------------------------- drinks */
.part-drinks { background: var(--black); color: var(--paper); padding: clamp(2.25rem, 6vw, 4rem) 0 clamp(2.5rem, 7vw, 4.5rem); }
.drinks-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; }
.drinks-note { color: var(--night-text); font-size: .9375rem; }
.part-drinks .empty { color: var(--night-text); }
.drink-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.5rem; }
.drink-tools label { font-size: .875rem; color: var(--night-text); }
.drink-tools input { flex: 1 1 16rem; max-width: 24rem; padding: .6rem .8rem; font: inherit; color: var(--paper); background: var(--black); border: 1px solid #5a5a5a; border-radius: 2px; }
.drink-tools input:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 2px var(--amber); }
.drink-count { flex-basis: 100%; min-height: 1.4em; font-size: .8125rem; color: var(--night-text); }
.cat-nav ul { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.25rem 0 0; list-style: none; }
.cat-nav a { display: inline-block; padding: .35rem .75rem; border: 1px solid var(--night-line); border-radius: 2px; text-decoration: none; font-size: .875rem; color: var(--night-text); }
.cat-nav a:hover { border-color: var(--amber); color: var(--paper); }
.drink-menu { margin-top: 2rem; }
@media (min-width: 56rem) { .drink-menu { column-count: 2; column-gap: 4rem; } }
.dcat { break-inside: avoid; padding-bottom: 2rem; scroll-margin-top: 3.5rem; }
.dcat h3 { color: var(--amber); font-weight: 500; font-size: 1.125rem; padding-bottom: .5rem; border-bottom: 1px solid var(--night-line); }
.dlist { padding: 0; list-style: none; }
.drink { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 1rem; align-items: baseline; padding: .6rem 0; border-bottom: 1px dotted var(--night-line); }
.dn { font-weight: 500; }
.dd { display: block; font-weight: 400; font-size: .8125rem; color: var(--night-text); }
.dq { font-size: .875rem; color: var(--night-text); white-space: nowrap; }
.dp { text-align: right; }
.dp .price { font-weight: 500; white-space: nowrap; }
.part-drinks .anchor { color: #a9a9a9; }
.part-drinks .offer { border-color: var(--amber); color: var(--amber); }
.drinks-foot { font-size: .8125rem; color: var(--night-text); }
.drink[hidden], .dcat[hidden] { display: none; }

/* ------------------------------------------------------------- footer */
.sitefoot { background: var(--black); color: var(--night-text); border-top: 3px solid var(--amber); padding: 2.25rem 0 2.75rem; font-size: .875rem; }
.foot-grid { display: grid; gap: 1.75rem 3rem; }
@media (min-width: 52rem) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.sitefoot p + p { margin-top: .25rem; }
.foot-hotel { color: var(--paper); font-weight: 500; font-size: 1rem; }
.stars { color: var(--amber); letter-spacing: .1em; }
.foot-owner { margin-top: .75rem !important; }
.sitefoot a { color: var(--paper); text-decoration-color: var(--amber); }
.lbl { display: inline-block; min-width: 3.5rem; color: #9a9a9a; }
.foot-date { margin-top: .75rem !important; }
.foot-h { color: var(--paper); font-weight: 500; }
.foot-files ul { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding: 0; margin: .4rem 0 0; list-style: none; }
.foot-meta { margin-top: .6rem !important; color: #9a9a9a; }

/* ------------------------------------------------------- small screens */
@media (max-width: 47.99rem) {
  .brand img { height: 40px; }
  .rates-scroll { overflow: visible; border-top: 0; }
  .rates, .rates tbody, .rates tr, .rates th, .rates td { display: block; width: 100%; }
  .rates thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rates tbody tr { border-top: 2px solid var(--black); padding: .2rem 0 .9rem; }
  .rates tbody tr + tr { margin-top: 1.25rem; }
  .rates tbody th { padding: .75rem 0 .5rem; border: 0; min-width: 0; }
  .rates .rname { max-width: none; }
  .rates td { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: baseline; padding: .55rem .6rem .55rem .75rem; text-align: right; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; }
  .rates td::before { content: attr(data-label); grid-row: 1 / span 3; text-align: left; font-size: .875rem; color: var(--muted); }
  .rates td.t1 { border-left-color: var(--t1); } .rates td.t2 { border-left-color: var(--t2); } .rates td.t3 { border-left-color: var(--t3); } .rates td.t4 { border-left-color: var(--t4); }
  .rates td.t5 { border-left-color: var(--t5); } .rates td.t6 { border-left-color: var(--t6); } .rates td.t7 { border-left-color: var(--t7); } .rates td.t8 { border-left-color: var(--t8); }
  .rates td.is-now::before { color: var(--ink); font-weight: 500; }
  .now-m { display: inline-block; justify-self: end; margin-top: .25rem; }
  .drink { grid-template-columns: minmax(0, 1fr) auto; }
  .dq { grid-column: 1; grid-row: 2; }
  .dp { grid-column: 2; grid-row: 1 / span 2; }
}

/* --------------------------------------------------------------- print */
@media print {
  @page { margin: 14mm; }
  body { font-size: 10pt; color: #000; }
  .skip, .parts, .langs, .drink-tools, .cat-nav, .year, .preview-bar { display: none !important; }
  .masthead, .part-drinks, .sitefoot { background: #fff !important; color: #000 !important; }
  .brand img { filter: invert(1); height: 40px; }
  .mast-title { padding: .5rem 0 1rem; }
  .mast-title h1 { font-size: 20pt; max-width: none; }
  .lede, .valid, .drinks-note, .dd, .dq, .sitefoot, .part-drinks .anchor, .drinks-foot { color: #333 !important; }
  .rates .is-now { background: none; }
  .now, .now-m { display: none !important; }
  .part-drinks { break-before: page; padding-top: 0; }
  .dcat h3 { color: #000; border-color: #999; }
  .drink { border-color: #bbb; }
  .sitefoot { border-top: 1px solid #000; }
  .sitefoot a { color: #000; text-decoration: none; }
  .stars { color: #000; }
  .drink-menu { column-count: 2; }
}

/* footer: one line per machine-readable list */
.foot-files ul.foot-lists { display: grid; gap: .35rem; }
.foot-lists a { margin-right: .65rem; }
.foot-lists .lbl { min-width: 4.75rem; }
.foot-lists .foot-meta { color: #9a9a9a; font-size: .8125rem; margin: 0 !important; }
