/* ==========================================================================
   Cassa Stays
   --------------------------------------------------------------------------
   Editorial rather than brochure. The look leans on three things and nothing
   else: a serif display face with italic emphasis on the word that matters,
   small numbered uppercase labels used as wayfinding, and photographs given
   enough room to do their job.

   That last one is the whole bet. This design is BUILT AROUND PHOTOGRAPHS and
   is quieter without them. Every image slot degrades to a plain block rather
   than an empty frame, so the site is presentable before the camera comes out,
   but it is not finished until the real pictures are in.

   One stylesheet, no framework, no build step. Nine pages and a form does not
   justify a toolchain that then has to be kept alive.

   Dark mode is supported because a real share of this audience reads the site
   at 2 AM in a hospital corridor at minimum brightness.
   ========================================================================== */

:root {
  --bg:       #faf7f1;   /* warm bone, not white */
  --bg2:      #f2ece1;   /* the band behind quiet sections */
  --card:     #ffffff;
  --ink:      #1b2b24;   /* deep green-black, reads softer than pure black */
  --ink2:     #2f4a3d;
  --muted:    #6f6a5e;
  --line:     #e2dacb;
  --accent:   #1f6b48;   /* the same green as the availability pills */
  --accentink:#ffffff;
  --gold:     #9a7b3c;
  --warm:     #fdf4e2;
  --warmline: #ecdcb8;
  --taken:    #b4472f;
  --shadow:   0 1px 2px rgba(27,43,36,.05), 0 14px 38px rgba(27,43,36,.07);
  --radius:   3px;       /* nearly square. Rounded corners read as "app" */
  --serif:    "Fraunces", Georgia, "Times New Roman", serif;
  --sans:     "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont,
              "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* One look for everybody, light, whatever the device is set to.
     color-scheme is the half people forget: without it, a browser in dark
     mode still paints the NATIVE controls dark, so the date pickers and the
     dropdowns on the enquiry form would come out black on a cream page and
     look broken. This pins those too. */
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* 16px gutter at phone width so nothing touches the glass. */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 720px; }

/* ---------- type ---------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 7vw, 4rem); margin: 0 0 .3em; }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.3rem); margin: 0 0 .45em; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin: 0 0 .35em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }

p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.05rem, 2.3vw, 1.3rem); line-height: 1.6; color: var(--ink2); max-width: 44ch; }
.muted { color: var(--muted); }
.fine { font-size: .86rem; color: var(--muted); line-height: 1.6; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* The small numbered uppercase label used as wayfinding throughout. */
.label {
  font-family: var(--sans);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1em;
  display: flex; align-items: center; gap: 10px;
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.label.plain::after { display: none; }
.label .n { color: var(--accent); }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--accentink);
  padding: 10px 16px; z-index: 60;
}
.skip:focus { left: 0; top: 0; }

/* ---------- header -------------------------------------------------------- */

.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
/*
 * flex-wrap MATTERS HERE AND IS NOT DECORATION.
 *
 * The open menu below is written as width:100% and order:3, which reads like
 * "a full-width row underneath the logo". It is not, without this line: flex
 * items do not wrap by default, so the nav stayed on the logo's own row,
 * shrank to whatever space was left, and squeezed the 44px burger down to
 * 31px. Reported from a real phone as "what's happening with the nav".
 *
 * row-gap is zeroed so the wrapped menu does not gain 14px of air above it;
 * the column gap between logo and burger is kept.
 */
.topbar {
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: 14px; row-gap: 0; min-height: 66px;
}

.brand { text-decoration: none; color: var(--ink); line-height: 1.15; }
.brand .bn {
  font-family: var(--serif); font-size: 1.22rem; font-weight: 600;
  letter-spacing: -.01em; display: block;
}
.brand .bs {
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); display: block; margin-top: 1px;
}

.burger {
  margin-left: auto; font-size: 1.2rem; line-height: 1;
  background: none; border: 1px solid var(--line); color: var(--ink);
  width: 44px; height: 44px; cursor: pointer; border-radius: var(--radius);
}
.nav { display: none; }
.nav.open { display: flex; flex-direction: column; width: 100%; order: 3; padding: 4px 0 14px; }
.nav a {
  color: var(--ink); text-decoration: none; padding: 11px 4px;
  font-size: .95rem; border-bottom: 1px solid var(--line);
}
.nav a.here { color: var(--accent); }

@media (min-width: 880px) {
  .burger { display: none; }
  .nav {
    display: flex !important; flex-direction: row; margin-left: auto;
    width: auto; order: 0; padding: 0; gap: 26px; align-items: center;
  }
  .nav a { border: 0; padding: 4px 0; font-size: .9rem; letter-spacing: .01em; }
  .nav a.here { border-bottom: 1px solid var(--accent); }
}

/* ---------- hero ---------------------------------------------------------- */

.hero { padding: 54px 0 10px; }
.hero .lede { margin-bottom: 1.6em; }

/* Full width photograph with the headline over it. Falls back to a flat panel
   when there is no photograph yet, which is a perfectly good page. */
.bleed {
  position: relative;
  margin: 0 0 8px;
  min-height: 300px;
  background: var(--bg2);
  display: grid; align-items: end;
  overflow: hidden;
}
.bleed img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/*
 * The darkening sits on the BLEED, not on the text column.
 *
 * Put on .over it only covered as far as the text ran, and because .over is
 * capped at 780px on a wide screen that left a hard vertical seam two thirds
 * of the way across where the gradient stopped and the bare photograph carried
 * on. Obvious in a screenshot, invisible while reading the rule.
 */
.bleed.haspic::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(10,18,14,.82) 10%, rgba(10,18,14,.3) 58%, rgba(10,18,14,.05));
  pointer-events: none;
}
.bleed .over {
  position: relative; z-index: 2;
  padding: 30px 16px 28px;
  width: 100%;
}
.bleed.haspic .over { color: #fff; padding-top: 110px; }
.bleed.haspic h1, .bleed.haspic .lede, .bleed.haspic .label { color: #fff; }
.bleed.haspic .label { color: rgba(255,255,255,.82); }
.bleed.haspic .label::after { background: rgba(255,255,255,.35); }
.bleed.haspic h1 em { color: #ffe2a8; }
/* The ghost button takes its colour from the page text, which is dark. Over a
   photograph that makes it almost unreadable, so it is restated here in white.
   Caught by looking at the hero on a phone rather than by reading the rule. */
.bleed.haspic .btn.ghost { color: #fff; border-color: rgba(255,255,255,.65); }
.bleed.haspic .btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
/* The home page's one call to action, back in the hero on 1 December 2026
   after the dates bar that had displaced it was removed. The solid green
   button rather than the ghost one: it sits over the dark foot of the hero
   gradient, where solid reads at a glance and an outline does not. */
.herocta { margin: 26px 0 0; }
@media (min-width: 760px) {
  .bleed { min-height: 520px; }
  .bleed .over { padding: 42px 40px 38px; max-width: 780px; }
  .bleed.haspic .over { padding-top: 180px; }
}

/* ---------- sections ------------------------------------------------------ */

section { padding: 44px 0; }
section.band { background: var(--bg2); }
section.tight { padding: 26px 0; }

/* ⚠️ WHY THESE TWO LINES EXIST. DO NOT FOLD THEM BACK INTO THE RULES ABOVE.
 *
 * `.wrap` is a class and `section` is an element, so `.wrap { padding: 0 16px }`
 * wins on specificity no matter which is written first. Every
 * <section class="wrap"> therefore had ZERO vertical padding, while every
 * <section class="band"> kept its 44px — which is why the numbered label at the
 * top of one section sat flush against the bottom of the section above it, and
 * the next one along looked fine. "03AROUND YOU" and "05HOUSE NOTES" touching
 * the band above them was this, not a missing space in the text.
 *
 * Longhand, so the 16px gutter from .wrap is left alone. */
section.wrap { padding-top: 44px; padding-bottom: 44px; }
section.wrap.tight { padding-top: 26px; padding-bottom: 26px; }

.two {
  display: grid; gap: 34px;
}
@media (min-width: 820px) {
  .two { grid-template-columns: 1fr 1.25fr; gap: 54px; align-items: start; }
  .two.even { grid-template-columns: 1fr 1fr; }
}

/* ---------- room cards ---------------------------------------------------- */

.rooms { display: grid; gap: 0; margin-top: 30px; }

/* The "next door" block at the foot of a room page shares .room for the card
   but NOT .rooms for the container: that one lost its gap when the home page
   became one room per row, which left "Open room notes" touching the heading
   of the block beside it. Its own class, its own spacing. */
.nextdoor { display: grid; gap: 34px; margin-top: 26px; }
@media (min-width: 820px) { .nextdoor { grid-template-columns: 1fr 1fr; gap: 44px; } }
.nextdoor > div > h3:first-child { margin-top: 0; }

/* ---------- one room per row, picture alternating sides ------------------- *
 *
 * Two cards side by side gave each room a column about four hundred pixels
 * wide and a photograph the size of a stamp. A row each gives the picture half
 * the page; flipping which half stops the second room reading as a repeat of
 * the first.
 */
.roomrow { display: grid; gap: 26px; align-items: center; padding: 38px 0; }
.roomrow + .roomrow { border-top: 1px solid var(--line); }
.roomrow:first-child { padding-top: 6px; }
@media (min-width: 820px) {
  .roomrow { grid-template-columns: 1fr 1fr; gap: 56px; padding: 48px 0; }
  /* Every other row puts the picture first, so they zig-zag down the page. */
  .roomrow:nth-of-type(even) > .roompic { order: -1; }
  .roomrow.nopic { grid-template-columns: 1fr; }
}
.roompic { display: block; position: relative; text-decoration: none; }
.roompic img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; background: var(--bg2); border: 1px solid var(--line);
}
.roomtag {
  position: absolute; right: 14px; bottom: 14px;
  background: rgba(29,36,32,.88); color: #fff;
  font-family: var(--sans); font-size: .62rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; padding: 7px 11px;
}

/* The picture under the headline in the first section. */
.housepic {
  display: block; width: 100%; height: auto; aspect-ratio: 7 / 5;
  object-fit: cover; background: var(--bg2); border: 1px solid var(--line);
  margin-top: 26px;
}

.room { }
.room .pic {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
  background: var(--bg2); border: 1px solid var(--line);
  object-fit: cover; margin-bottom: 18px;
}
.room .key {
  font-size: .68rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .5em;
}
.room .key .n { color: var(--accent); }
.room h3 { margin-bottom: .3em; }
.room h3 a { color: inherit; text-decoration: none; }
.room h3 a:hover { color: var(--accent); }
.room .tag { font-family: var(--serif); font-style: italic; color: var(--muted); margin: 0 0 .7em; }

.specs {
  display: flex; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0 14px;
}
.specs div {
  flex: 1 1 33%; padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.specs dt {
  font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin: 0 0 3px;
}
.specs dd { margin: 0; font-size: .95rem; }

.more {
  display: inline-block; text-decoration: none; font-weight: 600;
  font-size: .92rem; letter-spacing: .01em;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}

/* The way into a room page is a button now, so it needs room to breathe above
   it: what comes before it is either the "Next free night" line or the specs
   table's own bottom rule, and a button hard against either reads as attached
   to it. */
.room .btn { margin-top: 14px; }

/* ---------- buttons ------------------------------------------------------- */

.btn {
  display: inline-block; cursor: pointer;
  background: var(--accent); color: var(--accentink);
  text-decoration: none; font-family: var(--sans);
  font-weight: 600; font-size: .97rem; letter-spacing: .01em;
  padding: 15px 28px; border: 1px solid var(--accent); border-radius: var(--radius);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); filter: none; }
.btn + .btn { margin-left: 8px; }
@media (max-width: 520px) {
  .btn { display: block; text-align: center; }
  .btn + .btn { margin: 10px 0 0; }
}

/* ---------- the booking panel --------------------------------------------- */

.panel {
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 24px;
}
@media (min-width: 760px) { .panel { padding: 30px 32px; } }
.panel h2, .panel h3 { margin-top: 0; }

.datebar { display: grid; gap: 14px; }
@media (min-width: 680px) {
  .datebar { grid-template-columns: 1fr 1fr 1fr auto; align-items: end; }
}

/* ---------- availability -------------------------------------------------- */

.months { display: grid; gap: 26px; }
@media (min-width: 760px) { .months { grid-template-columns: 1fr 1fr; gap: 30px; } }

.mon h4 {
  font-family: var(--sans); font-size: .7rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px;
}
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal .dow {
  text-align: center; font-size: .58rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); font-weight: 700; padding-bottom: 4px;
}
.cal .d {
  aspect-ratio: 1; display: grid; place-items: center;
  font-size: .8rem; border-radius: 2px; background: var(--bg2);
  color: var(--ink);
}
.cal .d.blank { background: transparent; }
.cal .d.gone  { background: transparent; color: var(--muted); opacity: .35; }
.cal .d.free  { background: color-mix(in srgb, var(--accent) 16%, transparent);
                color: var(--accent); font-weight: 700; }
.cal .d.taken { background: color-mix(in srgb, var(--taken) 15%, transparent);
                color: var(--taken); text-decoration: line-through; }
.cal .d.today { outline: 1.5px solid var(--ink); outline-offset: -1.5px; }

.avkey { display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
         color: var(--muted); font-size: .84rem; margin-top: 14px; }
.avkey i { font-style: normal; display: inline-block; width: 13px; height: 13px;
           border-radius: 2px; vertical-align: -2px; margin-right: 6px; }
.avkey i.free  { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.avkey i.taken { background: color-mix(in srgb, var(--taken) 35%, transparent); }

.fresh { font-size: .86rem; margin: 14px 0 0; }
.fresh.ok  { color: var(--accent); }
.fresh.old { color: #8a5a12; }
.fresh.bad { color: var(--taken); font-weight: 600; }

/*
 * Stepping the calendar forward. 44px square on both arrows, because this is a
 * thing people press on a phone and the burger already taught us what happens
 * when a control is allowed to shrink to whatever space is left.
 */
.calpage {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 16px 0 0;
}
/*
 * The arrows read as buttons, not as hairlines.
 *
 * The first version was a 1px --line border on the page's own background,
 * which is the same treatment the calendar cells and the table rules get, so
 * it sat in the page rather than on it. White card, a green border and a green
 * glyph: clearly pressable, clearly secondary to the solid green CTA a few
 * centimetres above it, which is still the thing we want pressed most.
 */
.calnav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; flex: 0 0 46px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(27, 43, 36, .06);
  color: var(--accent); text-decoration: none;
  font-size: 1.45rem; line-height: 1; font-weight: 600;
  transition: background .12s linear, border-color .12s linear, color .12s linear;
}
.calnav:hover, .calnav:focus-visible {
  background: var(--accent); border-color: var(--accent); color: var(--accentink);
}
/* The end of the span keeps its button rather than losing it, so the row does
   not jump sideways on the last page — but it is plainly dead: no card, no
   shadow, no colour. */
.calnav.off {
  background: transparent; border-color: var(--line); color: var(--line);
  box-shadow: none; cursor: default;
}
.calspan {
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink2); font-weight: 600; text-align: center;
}
@media (prefers-reduced-motion: reduce) { .calnav { transition: none; } }

/*
 * ONE MONTH ON A PHONE, TWO ON A WIDE SCREEN.
 *
 * Two stacked months put the arrows a screen and a half below the first of
 * them, so moving the calendar meant scrolling back up to see what you had
 * moved it to. The second month is still in the markup — the window slides a
 * month at a time, so every month is reachable either way — it is just not
 * drawn where there is no room for it. 760px is the width at which .months
 * stops being one column, so the two decisions stay tied together.
 */
@media (max-width: 759px) { .months .mon + .mon { display: none; } }
/* The wide label is the one that gets switched on, so a stylesheet that fails
   to load leaves the narrow one showing: a month and a year, which is right
   at any width, rather than a range that is only right at one. */
.calspan .caltwo { display: none; }
@media (min-width: 760px) {
  .calspan .calone { display: none; }
  .calspan .caltwo { display: inline; }
}
.calpage + .fine { text-align: center; margin-top: 10px; }
/* While the next months are being fetched. Deliberately slight: the request is
   a few kilobytes off the same server and a spinner would flash. */
[data-calzone][aria-busy="true"] { opacity: .55; }
[data-calzone] { transition: opacity .12s linear; }

/* Said aloud, not shown. Used by the live region that announces the months
   after they are swapped in, which has nothing on screen to point at. */
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) { [data-calzone] { transition: none; } }

/* ---------- paying ------------------------------------------------------- */

/* One tappable card per method, and the chosen one is obvious. Same 44px floor
   as everything else somebody presses on a phone. */
.paymethods { display: grid; gap: 10px; margin: 0 0 20px; }
/* Two across on a wide phone or tablet, but ONE down the column once the
   options have moved to their own narrow column beside the money — two
   squeezed into 300px is how a 44px target becomes a 31px one, which this
   project has already done once in the top bar. */
@media (min-width: 560px) { .paymethods { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .paymethods { grid-template-columns: 1fr; margin-bottom: 0; } }
.paymethod {
  display: block; min-height: 58px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
}
.paymethod strong { display: block; }
.paymethod .fine { color: var(--accent); }
.paymethod:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.paymethod.on {
  border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent);
}
.pan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
       padding: 18px; margin: 0 0 20px; }
.pan label { display: block; font-size: .85rem; letter-spacing: .04em;
             text-transform: uppercase; color: var(--muted); }
.pan label input[type=text], .pan label input[type=file] {
  display: block; width: 100%; margin-top: 6px; padding: 12px;
  font: inherit; text-transform: none; letter-spacing: 0; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
}

/* ---------- tables -------------------------------------------------------- */

.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
caption { text-align: left; color: var(--muted); font-size: .86rem; padding-bottom: 10px; }
th, td { text-align: left; padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-size: .64rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--muted); font-weight: 700;
}
td.num { white-space: nowrap; }
td .pesos { font-family: var(--serif); font-size: 1.1rem; }

/* Four columns inside a 390px phone is four unreadable columns, and scrolling
   sideways to find out how far the hospital is would be a poor joke on this
   particular audience. Below 620px rows become blocks with their own labels. */
@media (max-width: 620px) {
  table.stack thead { position: absolute; left: -9999px; }
  table.stack tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  table.stack td { display: block; border: 0; padding: 1px 0; }
  table.stack td:first-child { font-size: 1.05rem; margin-bottom: 3px; font-weight: 600; }
  table.stack td[data-l]::before {
    content: attr(data-l) ": "; color: var(--muted); font-size: .66rem;
    text-transform: uppercase; letter-spacing: .13em; font-weight: 700;
  }
  table.stack td:empty { display: none; }
  table.rows th, table.rows td { display: block; padding: 2px 0; border: 0; }
  table.rows tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
}

/* ---------- lists --------------------------------------------------------- */

ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding: 5px 0 5px 24px; position: relative; font-size: .97rem; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 9px; height: 1px; background: var(--accent);
}

.amen { display: grid; gap: 26px; }
@media (min-width: 680px) { .amen { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .amen { grid-template-columns: repeat(3, 1fr); } }
.amen h3 {
  font-family: var(--sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 9px; border-bottom: 1px solid var(--line); margin-bottom: 9px;
}

/* ---------- gallery ------------------------------------------------------- */

.gallery { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
@media (min-width: 820px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { display: block; }
.gallery img {
  width: 100%; height: auto; display: block; aspect-ratio: 1;
  object-fit: cover; background: var(--bg2); border: 1px solid var(--line);
}
.gallery a:first-child { grid-column: span 2; }
.gallery a:first-child img { aspect-ratio: 1; }
@media (min-width: 820px) {
  .gallery a:first-child { grid-column: span 2; grid-row: span 2; }
}

/* ---------- questions ----------------------------------------------------- */

details.q { border-bottom: 1px solid var(--line); }
details.q > summary {
  cursor: pointer; padding: 18px 0; list-style: none;
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 1.03rem;
}
details.q > summary::-webkit-details-marker { display: none; }
details.q > summary::after {
  content: "+"; margin-left: auto; color: var(--muted);
  font-size: 1.25rem; line-height: 1; flex: none;
}
details.q[open] > summary { color: var(--accent); }
details.q[open] > summary::after { content: "\2212"; }
details.q > div { padding: 0 0 18px; color: var(--muted); max-width: 62ch; }
details.q > div p:last-child { margin-bottom: 0; }
.qgroup { margin: 0 0 2.4em; }
.qgroup > h3 {
  font-family: var(--sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 4px;
}

/* ---------- quotes -------------------------------------------------------- */

.quotes { display: grid; gap: 30px; }
@media (min-width: 760px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
blockquote.q { margin: 0; }
blockquote.q p {
  font-family: var(--serif); font-size: 1.18rem; line-height: 1.45;
  font-style: italic; margin: 0 0 .6em; color: var(--ink);
}
blockquote.q cite {
  font-style: normal; font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); font-weight: 700;
}

/* ---------- notes --------------------------------------------------------- */

.note {
  background: var(--warm); border-left: 2px solid var(--warmline);
  padding: 20px 22px;
}
.note p:last-child { margin-bottom: 0; }
.note.warn { background: color-mix(in srgb, var(--taken) 8%, transparent);
             border-left-color: var(--taken); }

.flash {
  padding: 16px 20px; margin: 0 0 22px;
  border-left: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}
.flash.bad { border-left-color: var(--taken);
             background: color-mix(in srgb, var(--taken) 9%, transparent); }
.flash p:last-child { margin-bottom: 0; }

/* ---------- form ---------------------------------------------------------- */

form.ask { display: grid; gap: 18px; }
label { display: block; margin-bottom: 6px;
  font-size: .66rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); }
/* Both markers, so one cannot quietly drift from the other. The pill styling
   itself is at the end of this file; this is only the specificity needed to
   beat the uppercase label rule above, which would otherwise shrink one of
   them and leave the pair looking like two different ideas. */
label .opt, label .req { letter-spacing: .09em; text-transform: uppercase;
  font-weight: 600; font-size: .64rem; }
input, select, textarea {
  display: block; width: 100%;
  /* 16px minimum or iOS Safari zooms the page when the field is tapped. */
  font: 400 16px/1.5 var(--sans);
  padding: 13px 14px;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.row2 { display: grid; gap: 18px; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }

/* The honeypot. Hidden from people, left in the DOM for the robots that fill
   in every field they find. Not display:none, which the better bots check. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- the reference a guest reads back ------------------------------ */

.ref {
  font-family: var(--serif); font-size: 2rem; letter-spacing: .1em;
  color: var(--accent); display: block; margin: .2em 0 .3em;
}

/* ---------- footer -------------------------------------------------------- */

.foot {
  margin-top: 10px; padding: 46px 0 56px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem;
  background: var(--bg2);
}
.foot .cols { display: grid; gap: 26px; }
@media (min-width: 760px) { .foot .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h4 {
  font-family: var(--sans); font-size: .64rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px;
}
.foot p { margin: 0 0 .5em; }
.foot a { color: var(--ink2); }
.fbrand { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); margin-bottom: .3em; }
.foot nav a { display: block; padding: 3px 0; }
.foot .base { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line);
              font-size: .8rem; }

/* ---------- the date panel ------------------------------------------------ */

/* The date panel's styles lived here. The panel itself was deleted on
   18 November once every page had a calendar of its own to tap; see the note
   in inc/layout.php where the function used to be. */

/* ---------- the range calendar -------------------------------------------
 *
 * Deliberately the SAME grid, the same green and the same struck-through red
 * as the availability calendar further down a unit page. A guest who has just
 * read that calendar should not have to learn a second one to book from it.
 *
 * The day cells are <button> here and <div> there, so everything a browser
 * puts on a button by default has to be taken off again or the grid breaks.
 * -------------------------------------------------------------------------- */

.rangecal { margin: 0 0 18px; }

/* The bar borrows .calpage wholesale from the availability calendar, so there
   is nothing to style here but the gap above it. */
.rcbar { margin-top: 14px; }

/* A button pretending to be a calendar cell. Font, colour, padding and border
   all come from the browser otherwise, and all four are wrong here. */
.cal button.d {
  font: inherit; font-size: .82rem; color: inherit;
  border: 0; cursor: pointer; appearance: none;
  -webkit-appearance: none;
  padding: 0; margin: 0; width: 100%;
}
.cal button.d:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.cal button.d.free:hover {
  background: color-mix(in srgb, var(--accent) 30%, transparent);
}

/* The nights actually being sold. The morning they leave is an endpoint, drawn
   as one, and is NOT shaded as a night — the same rule as everywhere else. */
.cal .d.in {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 0;
}
.cal .d.pick {
  background: var(--accent); color: #fff; font-weight: 700;
  text-decoration: none;
}
.cal .d.pick.first { border-radius: 7px 0 0 7px; }
/* The morning they leave is drawn HOLLOW. Filled, it read as one more night
   sold — the 20th looked exactly like the 19th in the first screenshot — and
   that is the single misreading this whole project keeps having to correct. */
.cal .d.pick.last {
  border-radius: 0 7px 7px 0;
  background: var(--card);
  color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}
.cal .d.pick.first.last { border-radius: 7px; }

/* A night that is TAKEN but falls inside a chosen range still reads as taken.
   Switching rooms can put a sold night inside dates already picked, and that
   night being the reason the stay will not work is the whole point of showing
   it — so the range shading must not paint over it. */
.cal .d.taken.in, .cal .d.taken.pick {
  background: color-mix(in srgb, var(--taken) 32%, transparent);
  color: var(--taken); text-decoration: line-through; box-shadow: none;
}

.rcsay { min-height: 1.5em; margin: 12px 0 6px; font-size: .95rem; }
.rcsay.ok  { color: var(--accent); font-weight: 600; }
.rcsay.bad { color: var(--taken); }

.rcclear { margin: 2px 0 0; }
.linkbtn {
  background: none; border: 0; padding: 0; font: inherit; color: var(--muted);
  text-decoration: underline; cursor: pointer;
}
.linkbtn:hover { color: var(--ink); }


/* ---------- rates, the published board ------------------------------------ */

.ratesrow { display: grid; gap: 34px; }
@media (min-width: 880px) {
  .ratesrow { grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
}
.rateshead h2 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin: 0 0 .5em; line-height: 1.02; }

/* Columns divided by hairlines rather than boxes. A price wants air around it;
   a card around it makes it look like a button. */
.ratescols { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.ratecol { padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
@media (min-width: 620px) {
  .ratescols { grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
               border-bottom: 1px solid var(--line); }
  .ratecol { border-bottom: 0; border-left: 1px solid var(--line); padding: 22px 22px 30px; }
  .ratecol:first-child { border-left: 0; padding-left: 0; }
}
.rlabel {
  font-size: .64rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 .9em;
}
.rprice {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.1rem); line-height: 1;
  margin: 0 0 .5em; color: var(--ink);
}
.rwhen { font-size: .84rem; color: var(--muted); margin: 0; }

/* ---------- alternating text and photograph ------------------------------- */

.split { display: grid; gap: 30px; align-items: start; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  /* .flip puts the photograph on the left, so consecutive sections alternate
     instead of stacking into one long column of prose. */
  .split.flip .splitpic { order: -1; }
  /* The amenity list is taller than the photograph beside it, which left a
     gap under the picture. Sticky means it travels with the reading instead,
     and the gap becomes deliberate white space rather than an accident.
     Offset clears the sticky header. */
  .splitpic { position: sticky; top: 92px; }
}
@media (prefers-reduced-motion: reduce) { .splitpic { position: static; } }
/* height:auto matters more than it looks. The <img> tags carry width and
   height attributes, which browsers treat as a presentational hint, and a used
   height beats CSS aspect-ratio. Without this the photographs render at their
   full intrinsic height: a 1200x1600 shot came out 1600px tall in a 486px
   column and made the page 13,000px long. */
.splitpic img {
  width: 100%; height: auto; display: block; border: 1px solid var(--line);
  aspect-ratio: 3 / 4; object-fit: cover; background: var(--bg2);
}
@media (max-width: 899px) { .splitpic img { aspect-ratio: 4 / 3; } }

/* Two columns of amenities inside half the width would be two words wide, so
   the groups stack and lean on their headings instead. */
.amen.tight { grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 560px) and (max-width: 899px) { .amen.tight { grid-template-columns: 1fr 1fr; } }

/* ---------- the rates editor ---------------------------------------------- */

.redit { display: grid; gap: 22px; max-width: 760px; }
.reditrow {
  display: grid; gap: 12px; padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 680px) {
  .reditrow { grid-template-columns: 1.4fr 1fr 1fr; align-items: end; }
}
.reditrow .who { font-weight: 650; }

/* ---------- what is in the unit: a photograph, a rule, five columns --------
 *
 * The five groups sit side by side with a hairline between them, under one
 * horizontal rule, with the photograph above that rule.
 *
 * ⚠️ EVERY BREAKPOINT HERE IS BOUNDED AT BOTH ENDS. DO NOT MAKE THEM min-width.
 *
 * Five items wrap into five, three, two and one column, and at each width a
 * DIFFERENT item starts each row — so a different item has to lose its left
 * border and a different set has to lose its top border.
 *
 * Written as plain min-width queries it does not work, and it fails in a way
 * that looks like a browser bug rather than a mistake: `:nth-child(3n+1)` has
 * higher specificity than `.amen5 > div`, so the three-column reset goes on
 * winning at five columns no matter how far below it the five-column rule is
 * written. The result was a missing line between the fourth and fifth columns
 * and nothing in the file to explain it.
 *
 * Bounded ranges mean exactly one of these blocks is ever live, so each one
 * states the whole scheme and nothing leaks in from the width below.
 */

.amenpic { margin: 0 0 14px; }   /* so the rule below reads as a separator, not the photograph's edge */
.amenpic img {
  width: 100%; display: block;
  /* An EXPLICIT height, not aspect-ratio. An HTML width/height attribute beats
     aspect-ratio and once rendered a 1200x1600 portrait 1600px tall inside a
     486px column. There are no size attributes on this one and the height is
     fixed here, so the shape cannot be argued about. */
  height: clamp(190px, 26vw, 360px);
  object-fit: cover; object-position: center;
  background: var(--bg2);
}

.amen5 { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.amen5 h3 {
  font-family: var(--sans); font-size: .66rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 10px; line-height: 1.5;
}
/* Tighter than the page default, because a column here is about 170px wide. */
.amen5 ul.ticks li { padding: 4px 0 4px 18px; font-size: .92rem; line-height: 1.5; }
.amen5 ul.ticks li::before { top: 12px; width: 7px; }

/* One column. The groups read down the page, separated across. */
@media (max-width: 539px) {
  .amen5 > div { padding: 20px 0; border-top: 1px solid var(--line); }
  .amen5 > div:first-child { border-top: 0; }
}

/* Two columns. Rows are 1-2, 3-4, 5. */
@media (min-width: 540px) and (max-width: 799px) {
  .amen5 { grid-template-columns: 1fr 1fr; }
  .amen5 > div { padding: 22px 20px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .amen5 > div:nth-child(-n+2) { border-top: 0; }
  .amen5 > div:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .amen5 > div:nth-child(2n)   { padding-right: 0; }
}

/* From three columns up, a group whose name wraps to two lines would start
   its list lower than the ones beside it, and the first item of every column
   no longer lines up across the row. Reserving two lines for every heading
   costs a few pixels of white space and buys a straight line across. */
@media (min-width: 800px) {
  .amen5 h3 { min-height: 3em; }
}

/* Three columns. Rows are 1-2-3, 4-5. */
@media (min-width: 800px) and (max-width: 999px) {
  .amen5 { grid-template-columns: repeat(3, 1fr); }
  .amen5 > div { padding: 24px 20px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  .amen5 > div:nth-child(-n+3) { border-top: 0; }
  .amen5 > div:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .amen5 > div:nth-child(3n)   { padding-right: 0; }
}

/* Five across, one row, so there are no horizontal lines left to draw. The
   columns stretch to the tallest, so each hairline runs the full height. */
@media (min-width: 1000px) {
  .amen5 { grid-template-columns: repeat(5, 1fr); }
  .amen5 > div { padding: 26px 16px 30px; border-left: 1px solid var(--line); }
  .amen5 > div:first-child { border-left: 0; padding-left: 0; }
  .amen5 > div:last-child  { padding-right: 0; }
}

/* ---------- the rules, in two columns ------------------------------------- *
 *
 * Nine rules in a single half-width column was the other "block of text". This
 * is the same idea as .amen5 one section up — a photograph across the top, a
 * rule under it, then columns with a hairline between them — so the two
 * sections have the same shape and the eye can tell them apart.
 *
 * TWO COLUMNS BY column-count, NOT BY GRID, and the difference matters.
 *
 * A grid would place rule 1 top-left and rule 2 top-RIGHT, so reading down the
 * left column gives 1, 3, 5, 7, 9. Nobody reads a list of house rules across.
 * column-count fills the first column before starting the second, so the order
 * down the page is the order they are written in, and it balances the two
 * heights by itself whatever the text does.
 *
 * column-rule draws the dividing line, which also means the line is only ever
 * drawn when there are in fact two columns.
 */
.rules2 { margin: 0; border-top: 1px solid var(--line); column-gap: 52px; }
.rules2 > div {
  /* A rule split across the column break, label at the foot of one column and
     text at the head of the next, would read as two different rules. */
  break-inside: avoid; page-break-inside: avoid;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.rules2 dt {
  font-family: var(--sans); font-size: .64rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  line-height: 1.5; padding-top: 3px;
}
.rules2 dd { margin: 0; font-size: .95rem; line-height: 1.65; }

/* Label above the text while the column is narrow: side by side here would
   leave the longer rules four words wide. */
@media (max-width: 479px) {
  .rules2 dt { margin-bottom: 4px; }
}
@media (min-width: 480px) {
  .rules2 > div { display: grid; grid-template-columns: 116px 1fr; gap: 0 18px; align-items: start; }
}

/* Two columns from the same width the amenities above take three, so the two
   sections change shape together rather than one at a time. */
@media (min-width: 800px) {
  .rules2 { column-count: 2; column-rule: 1px solid var(--line); }
  .rules2 > div { padding: 15px 26px 15px 0; }
}
@media (min-width: 1000px) {
  .rules2 > div { grid-template-columns: 130px 1fr; }
}

/* ---------- the reviews, drifting ----------------------------------------- *
 *
 * A strip that slides slowly left and loops. The list is printed twice and the
 * track is animated by exactly half its width, so the second copy is always
 * arriving where the first one left and there is no gap at the wrap.
 *
 * ⚠️ The animation is in a @media block that EXCLUDES reduce. Do not move it
 * out. Text sliding across the page is the exact thing prefers-reduced-motion
 * exists for, and somebody who has asked for stillness gets a static row.
 */
.qstrip{overflow:hidden;position:relative;
  /* Faded at both ends, so a quote entering or leaving does not look cut off */
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);
}
.qtrack{display:flex;gap:56px;width:max-content;align-items:flex-start}
.qtrack blockquote.q{flex:0 0 min(420px,78vw);margin:0}
.qstrip:hover .qtrack,.qstrip:focus-within .qtrack{animation-play-state:paused}

@media (prefers-reduced-motion: no-preference){
  .qtrack{animation:qdrift 46s linear infinite}
  @keyframes qdrift{from{transform:translateX(0)}to{transform:translateX(-50%)}}
}
/* Without the animation it is still a readable row you can scroll by hand. */
@media (prefers-reduced-motion: reduce){
  .qstrip{overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
  .qtrack blockquote.q{scroll-snap-align:start}
}

/* ---------- the places page ----------------------------------------------- */
.placelist{display:grid;gap:0;margin-top:26px}
.place{display:grid;gap:20px;align-items:center;padding:30px 0;border-top:1px solid var(--line)}
.place:first-child{border-top:0;padding-top:6px}
@media(min-width:760px){
  .place{grid-template-columns:320px 1fr;gap:38px;padding:34px 0}
  /* Without a picture the words take the whole row rather than sitting in a
     half-width column with an empty space beside them. */
  .place.nopic{grid-template-columns:1fr}
}
.placepic img{display:block;width:100%;height:auto;aspect-ratio:7/5;object-fit:cover;
  background:var(--bg2);border:1px solid var(--line)}
.placewords h2,.placewords h3{margin:0 0 .35em;font-size:1.3rem}
.placemeta{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0 0 .6em}
.placemeta span{font-family:var(--sans);font-size:.68rem;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--muted)}
.placewords p{margin:0}

/* ---------- the logo ------------------------------------------------------ *
 *
 * Sized by HEIGHT, not width, so the header bar keeps its depth whatever the
 * artwork's proportions are. width:auto is not decoration: an HTML width
 * attribute beats a CSS height on its own and the logo would render 760px
 * wide in a header 1060px across.
 *
 * 58px, not the 46 it started at. The lockup is wide and its second line is
 * small type: at 46 the whole mark came out 125px across and "DAGUPAN CITY"
 * rendered about five pixels tall, which is a smudge rather than a word.
 * Measured on the rendered page.
 */
.brand .blogo{display:block;height:58px;width:auto}
@media (max-width: 560px){ .brand .blogo{height:46px} }
/* The tap target stays a comfortable size even though the picture is small. */
/*
 * 66px, matching .topbar's own min-height, and it has to live HERE rather
 * than up with the other .brand rules — this block is later in the file and
 * would otherwise win and put it back to 44.
 *
 * It holds the logo's row open from the inside. Once the bar is allowed to
 * wrap, a min-height on .topbar is satisfied by the menu's rows instead, so
 * without this the logo row collapsed to the height of the logo and the logo
 * jumped up ten pixels at the moment the menu opened.
 */
.brand{display:inline-flex;align-items:center;min-height:66px}

/* The leaf alone, above the address in the footer. */
.fmark{display:block;width:40px;height:40px;margin:0 0 10px;opacity:.9}

/* A block inside a section that needs a section's breathing room without being
   one. See the note in contact.php. */
.subsec{padding:38px 0 26px}

/* ===========================================================================
   THE FIVE PILES ON requests.php
   ===========================================================================
   Links, not a script widget. This page has never needed JavaScript and the
   day it does is the day it stops working on the one phone it matters on.

   flex-wrap is NOT optional here. Five tabs with counts do not fit across a
   320px phone, and flex items do not wrap unless told to — that is exactly how
   the top bar squeezed a 44px burger down to 31px and went unnoticed for a
   week. They wrap onto a second row instead of being squashed.                */
.reqtabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 14px; padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.reqtab {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; min-height: 40px;        /* a real target on a phone */
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink2);
  text-decoration: none; font-size: .9rem; letter-spacing: .02em;
}
.reqtab:hover { border-color: var(--ink2); color: var(--ink); }
.reqtab .n {
  font-variant-numeric: tabular-nums; font-size: .78rem;
  min-width: 20px; padding: 1px 6px; text-align: center;
  border-radius: 999px; background: var(--bg2); color: var(--muted);
}
.reqtab.on {
  background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600;
}
.reqtab.on .n { background: rgba(255,255,255,.18); color: #fff; }

/* The chip on a card says what is true of THAT booking, which is more than the
   pile it is in: "says they have paid" and "held, not paid yet" are both
   Inquiry and are nothing like each other. */
.chip {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: .72rem; letter-spacing: .09em; font-weight: 600;
  border: 1px solid var(--line); background: var(--bg2); color: var(--muted);
  vertical-align: 2px;
}
.chip-booked   { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-inquiry  { background: var(--warm);   border-color: var(--warmline); color: var(--gold); }
.chip-declined { background: #fff; border-color: var(--taken); color: var(--taken); }
.chip-archived { background: var(--bg2); border-color: var(--line); color: var(--muted); }

/* Set aside, not deleted — so it is still perfectly readable, just visibly not
   part of the working list. Faded, never hidden. */
.panel.archived { background: var(--bg2); box-shadow: none; }
.panel.archived h3 { color: var(--ink2); }

/* Used since the duplicate warnings shipped and never actually defined, so
   "I have checked this, it is fine" has been full size all along. */
.btn-sm { padding: 8px 13px; font-size: .82rem; min-height: 38px; }

/* ===========================================================================
   WHAT A FORM NEEDS, SAID BEFORE IT IS ASKED FOR
   ===========================================================================
   Asked for on 20 November: "put an asterisks or a (required) beside the
   details of the guest so they know upfront what is required or not."

   The word rather than an asterisk. An asterisk needs a key somewhere else on
   the page explaining what it means, and a person filling in a form on a
   phone at ten at night should not have to go looking for a legend. It also
   reads properly to a screen reader, where a lone asterisk is announced as
   "star" or skipped entirely.

   Both markers share a shape so the eye reads them as one system: this field
   is one way, that one is the other. Only the colour differs. */
.req, .opt {
  display: inline-block;
  margin-left: .5em;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.req { background: #f3e7e3; color: var(--taken); border: 1px solid #e6cfc8; }
.opt { background: var(--bg2); color: var(--muted); border: 1px solid var(--line); }

/* ===========================================================================
   THE PAYMENT PAGE: MONEY LEFT, OPTIONS RIGHT
   ===========================================================================
   Asked for on 20 November: call it Payment Options and put it on the right
   on a desktop.

   Source order is money first, options second, so a narrow screen reads what
   is owed and then how to send it — which is the order a person thinks in.
   The grid puts the options column on the right only once there is room for a
   second column at all. */
.paylayout { display: grid; gap: 22px; align-items: start; }
.paymain { min-width: 0; }
/*
 * ON A PHONE THE OPTIONS COME FIRST.
 *
 * The aside is last in the HTML because on a desktop it is the right-hand
 * column. Stacked, last in the HTML put it 800px down the page, under the
 * whole money panel: the guest had to scroll past every figure to reach the
 * one thing on the screen they are meant to do. Order moves it up without
 * moving it in the markup, so the desktop column order is unaffected and a
 * screen reader still meets the money with a method already chosen.
 */
.payopts { min-width: 0; order: -1; }
@media (min-width: 1040px) { .payopts { order: 0; } }
/* The no-script fallback lands on #pay, and a sticky top bar must not sit on
   top of the heading it lands on. */
.payopts { scroll-margin-top: 90px; }

/*
 * TWO COLUMNS, AND WIDER THAN THE PAGE THEY SIT ON.
 *
 * checkout.php is <section class="wrap narrow">: a 720px reading column, which
 * is right for the sentences on it and wrong for a money table with a 300px
 * column of options beside it. Measured rather than guessed — 1fr + 300 inside
 * 688 left the figures 366px wide, narrower than the phone layout gives them.
 *
 * So the payment block alone breaks out of the reading column by 150px each
 * side. The number is constant because .wrap.narrow is CAPPED at 720: the
 * block is always 988 wide and always lands centred, with no second
 * breakpoint to keep in step.
 *
 * 1040 and not 900. At 1024 — an iPad held sideways, which is a real width and
 * not a hypothetical one — 988 plus the gutters does not fit, and the honest
 * answer there is the stacked layout the phone gets, with the money full width
 * and the options under it. Two cramped columns would be the worse of the two.
 */
@media (min-width: 1040px) {
  .paylayout { grid-template-columns: minmax(0, 1fr) 300px; }
  .paylayout, .paywide { margin-left: -150px; margin-right: -150px; }
  /* Follows you down a long page, because the figures it changes are above it
     and comparing two methods should not mean scrolling back up twice. */
  .payopts { position: sticky; top: 18px; }
}
.payopts h3 { margin: 0 0 .6em; }
/* Stacked, it is the first thing under the headline and wants a little air. */
@media (max-width: 1039px) { .payopts h3 { margin-top: .5em; } }

/* A logo beside the name, when there is one. Sized the same whether it is an
   uploaded image or the drawn card, so the column of names stays straight. */
.paylogo { display: block; width: 40px; height: 26px; object-fit: contain; margin-bottom: 6px; }
.paymethod svg.paylogo { color: var(--ink); }
.paymethod.on svg.paylogo { color: var(--accent); }
