/* ==========================================================================
   regulations.happyguest.com, round 5 (concept/REDESIGN_r5.md).
   Copies the designer's two patterns and adds nothing new:
     1. colored panels with a thin dark outline, big heavy Work Sans heads, pill chips (happyguest.com/compliance)
     2. a plain white reading column with "Key takeaways:" and big Bagel Fat One H2s (the Nashville article)
   No cream or white boxes on the gradient. Builds on tokens.css and chrome.css (captured, unchanged).
   ========================================================================== */
:root {
  --read: 720px;          /* the reading column */
  --menu-w: 250px;
  --ink-2: rgba(0, 0, 0, .72);
  --line: rgba(0, 0, 0, .16);
}
html { scroll-padding-top: 130px; }
@media (max-width: 749px) { html { scroll-padding-top: 96px; } }
.lib-tint { position: fixed; inset: 0; z-index: -1; background: var(--page-scroll-tint); opacity: 0; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .lib-tint { animation: lib-tint linear both; animation-timeline: scroll(root); }
  @keyframes lib-tint { from { opacity: 0 } to { opacity: 1 } }
}
@media (prefers-reduced-motion: reduce) { .lib-tint { display: none; } }
:focus-visible { outline: 3px solid #000; outline-offset: 3px; border-radius: 4px; box-shadow: 0 0 0 6px var(--hg-neon); }
.hg-footer :focus-visible { outline-color: var(--hg-neon); box-shadow: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100000; background: var(--hg-neon); border: var(--border); border-radius: 8px; padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.anchor { display: block; position: relative; height: 0; }

.lib { padding: 24px 0 0; }
.lib *, .lib *::before, .lib *::after { box-sizing: border-box; }
.lib p, .lib li, .lib td, .lib th { font-size: 1.15rem; line-height: 1.5; overflow-wrap: anywhere; }   /* 17.25px */
.lib p { margin: 0 0 14px; }
.lib a:hover { opacity: .6; }

/* ---------- links: inside the library "→", leaving it "↗"; both underlined so they read as links ---------- */
.lib a.go { text-decoration: none; font-weight: 700; background: linear-gradient(transparent 55%, var(--hg-neon) 55%); padding: 0 2px; }   /* stays in the library: marker, no underline */
.lib a.out, .lib a.cite, .lib .hero__meta a, .lib .office a, .lib .help a, .lib .totop a, .lib .review a, .lib .sources a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 600; }
.lib a[href^="tel:"] { white-space: nowrap; }

/* ---------- pills (compliance page "✔ Rental Agreements" chips) ---------- */
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 4px 0 14px; }
.lib .pill, .lib .pills .pill { display: inline-block; background: var(--hg-neon); border: var(--border); border-radius: var(--radius-pill); padding: 5px 14px;
  font: 700 1rem/1.35 var(--font-sans); box-shadow: 0 3px 0 #000; color: #000; text-decoration: none; }
.lib .pill--status { background: var(--hg-gold); box-shadow: none; font-size: .95rem; padding: 2px 10px; }
.tag { display: inline-block; background: var(--hg-sky); border: var(--border); border-radius: var(--radius-pill); padding: 2px 11px; font: 700 .95rem/1.4 var(--font-sans); }

/* ---------- buttons (designer block button: neon pill, black outline) ---------- */
.lib a.btn { display: inline-block; background-image: none; background: var(--hg-neon); border: var(--border); border-radius: var(--radius-button); padding: .35em 1em;
  font: 700 1.35rem/1.2 var(--font-sans); color: #000; text-decoration: none; margin: 0 12px 12px 0; transition: transform .4s var(--ease-bounce); }
.lib a.btn:hover { opacity: 1; transform: scale(1.05); }
.lib a.btn--alt { background: var(--hg-seafoam); }
.lib a.btn--small { font-size: 1.05rem; padding: .3em .9em; }

/* ---------- panels (designer: colored fill, thin dark outline, large radius) ---------- */
.panel { border: var(--border); border-radius: var(--radius-card); padding: clamp(20px, 3.2vw, 44px); margin: 0 0 22px; color: #000; }
.panel--hero { background: var(--hg-gold); }
.panel--lime { background: var(--hg-lime); }
.panel--sky { background: var(--hg-sky); }
.panel--lemon { background: var(--hg-lemon); }
.panel--seafoam { background: var(--hg-seafoam); }
.panel--hg { background: var(--hg-lemon); }
.panel h3 { font: 800 clamp(1.6rem, 2.6vw, 2.3rem)/1.1 var(--font-sans); margin: 0 0 14px; }
.panel .more { margin: 16px 0 0; }
.eyebrow { font: 600 .9rem/1.2 var(--font-sans); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; color: rgba(0,0,0,.75); }

/* ---------- hero ---------- */
.hero { max-width: 1320px; margin: 0 var(--gutter); }
@media (min-width: 1430px) { .hero { margin: 0 auto; } }
.hero h1 { font: 400 clamp(2.6rem, 5.6vw, 5rem)/1.04 var(--font-serif); margin: 0 0 22px; max-width: 18em; }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; }
.path__label, .inside__label { font: 700 1.05rem/1.3 var(--font-sans); margin-right: 2px; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 4px; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; font-size: 1rem; }
.crumbs li:not(:last-child)::after { content: "›"; font: 800 1.3rem/1 var(--font-sans); margin: 0 4px 0 8px; }
.lib .crumbs .pill { background: transparent; box-shadow: none; }
.lib .crumbs .pill--on { background: #000; color: var(--hg-neon); box-shadow: none; }   /* where you are: filled, not a link */
.inside { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; margin: 0 0 18px; }
.lib .pill--go { background: var(--hg-seafoam); }
.hero .lead { font: 600 clamp(1.25rem, 1.9vw, 1.6rem)/1.35 var(--font-sans); max-width: 40em; margin: 18px 0 18px; }
.hero__btns { margin: 6px 0 4px; }
.lib .hero__meta { font-size: 1rem; margin: 10px 0 0; }

/* ---------- white reading area (Nashville article body) ---------- */
.read { background: #fff; margin-top: 56px; border-top: var(--border); padding: 48px var(--gutter) 64px; }
.col { max-width: var(--read); margin: 0 auto; min-width: 0; }
@media (min-width: 1100px) {
  .read--menu { display: grid; grid-template-columns: var(--menu-w) minmax(0, var(--read)); column-gap: 64px; justify-content: center; align-items: start; }
  .read--menu .col { margin: 0; }
}

/* page menu: left sticky column on desktop, a "Jump to a section" button on phones and tablets */
.toc { max-width: var(--read); margin: 0 auto 28px; }
.toc summary { display: inline-block; cursor: pointer; list-style: none; background: var(--hg-neon); border: var(--border); border-radius: var(--radius-pill);
  padding: 8px 18px; font: 700 1.1rem/1.2 var(--font-sans); box-shadow: 0 3px 0 #000; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: " ▾"; }
.toc details[open] summary::after { content: " ▴"; }
.toc__title { font: 800 1.1rem/1.2 var(--font-sans); margin: 18px 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid #000; }
.toc li { margin: 0; }
.lib .toc a { display: block; padding: 7px 0 7px 14px; font: 600 1.05rem/1.3 var(--font-sans); text-decoration: none; }
.lib .toc a[aria-current] { background: var(--hg-neon); font-weight: 800; border-radius: 0 100px 100px 0; }
@media (min-width: 1100px) {
  .toc { position: sticky; top: 124px; margin: 0; max-height: calc(100vh - 150px); overflow: auto; }
  .toc summary { display: none; }
  .toc__title { margin-top: 0; }
}

/* ---------- sections and headings ---------- */
.sec { margin: 0 0 64px; }
.sec h2 { font: 400 clamp(2.2rem, 4.4vw, 3.6rem)/1.05 var(--font-display); margin: 0 0 24px; }
.sec h2.h-small { font: 700 clamp(1.4rem, 1.9vw, 1.65rem)/1.2 var(--font-sans); margin-bottom: 12px; }
.sec h3 { font: 800 clamp(1.5rem, 2.3vw, 2rem)/1.15 var(--font-sans); margin: 36px 0 16px; }
.sec > h3:first-of-type { margin-top: 8px; }
.takeaways { padding-left: 1.4em; margin: 0; }
.takeaways li { margin: 0 0 10px; }
.sec--takeaways { margin-bottom: 56px; }

/* source lines: the only small text */
.lib .src { font-size: 1rem; line-height: 1.45; color: rgba(0,0,0,.78); margin: 4px 0 0; }
.lib .src a { color: #000; }
.fact { margin: 0 0 24px; }
.fact > p:first-child { margin-bottom: 4px; }
.who-label { margin-right: 4px; }
.more { margin: 8px 0 0; }

/* ---------- at a glance: the one small table ---------- */
.glance { width: 100%; border-collapse: collapse; margin: 0 0 8px; }
.glance th, .glance td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid #000; font-size: 1.05rem; }
.glance thead th { font: 800 1rem/1.2 var(--font-sans); border-bottom: 2px solid #000; }
.glance__who { display: block; font: 400 0.95rem/1.35 var(--font-sans); margin-top: 4px; }   /* r6: who a registration is for */
.glance tbody th { font-weight: 700; }
.lib .glance a { overflow-wrap: normal; word-break: normal; }
@media (min-width: 700px) { .glance td.glance__where { white-space: nowrap; } }   /* r6: only the link column; a cost cell must wrap */
@media (max-width: 699px) {
  .glance thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .glance, .glance tbody, .glance tr, .glance th, .glance td { display: block; width: 100%; }
  .glance tr { border-bottom: 1px solid #000; padding: 12px 0; }
  .glance th, .glance td { border: 0; padding: 2px 0; }
  .glance td:empty { display: none; }
  .glance td::before { content: attr(data-label) ": "; font-weight: 700; }
}

/* ---------- numbered steps ---------- */
.steps { list-style: none; margin: 0 0 8px; padding: 0; }
.steps > li { position: relative; padding: 0 0 26px 64px; margin: 0 0 26px; border-bottom: 1px solid var(--line); }
.steps > li::before { content: counter(list-item); position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--hg-neon); border: var(--border); display: grid; place-items: center; font: 800 1.3rem/1 var(--font-sans); }
.step h4 { font: 800 clamp(1.3rem, 1.9vw, 1.55rem)/1.2 var(--font-sans); margin: 8px 0 10px; }
.step__tag { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.lib .step__who { font-size: 1.05rem; }
.acts { margin: 6px 0 0; }
.steps--plain > li { padding-bottom: 14px; margin-bottom: 14px; }
.steps--plain > li::before { width: 38px; height: 38px; font-size: 1.1rem; }
.steps--plain > li > p { padding-top: 6px; }
@media (max-width: 599px) {
  .steps > li { padding-left: 46px; }
  .steps > li::before { width: 34px; height: 34px; font-size: 1.05rem; top: 6px; }
}

/* ---------- conflict: both values, both sources ---------- */
.conflict { background: var(--hg-gold); border: var(--border); border-radius: 18px; padding: 18px 20px; margin: 10px 0 18px; }
.lib .conflict__title { font: 800 1.2rem/1.3 var(--font-sans); margin: 0 0 8px; }
.conflict__cols { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 6px 0 8px; }
@media (min-width: 600px) { .conflict__cols { grid-template-columns: 1fr 1fr; } }
.conflict__side { border-top: 2px solid #000; padding-top: 10px; }
.lib .conflict__side .val { font: 800 1.3rem/1.2 var(--font-sans); margin-right: 4px; }
.cards > li:has(.conflict) { grid-column: 1 / -1; }
.places-list { padding-left: 1.2em; margin: 0 0 12px; }
.cards + h3, .cards + .places-list { margin-top: 40px; }
.places-list > li { margin: 0 0 14px; }
.lib .fold__count { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.lib .quote { font-style: italic; font-size: 1rem; }

/* ---------- cards (places inside, guides, by county) ---------- */
.cards { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 700px) { .cards { grid-template-columns: 1fr 1fr; } }
.cards .panel { margin: 0; padding: 22px; display: flex; flex-direction: column; }
.cards .panel h3 { font-size: 1.55rem; margin-bottom: 8px; }
.lib .card__where { font-weight: 700; margin-bottom: 6px; }
.cards .more { padding-top: 6px; }
.points { margin: 0; padding-left: 1.2em; }
.points > li { margin: 0 0 14px; }
.state-card h3 a { text-decoration: none; }
.state-card .inside { margin-top: 8px; }

/* ---------- Happy Guest panel (compliance "What Happy Guest does") ---------- */
.panel--hg { margin: 0 0 64px; }
.panel--hg h2 { font: 800 clamp(2rem, 3.8vw, 3.2rem)/1.08 var(--font-sans); margin: 0 0 18px; }
.lib .hg__intro { font: 700 1.3rem/1.4 var(--font-sans); }
.hg__jobs { padding-left: 1.2em; margin: 0 0 16px; }
.hg__jobs li { margin: 0 0 10px; }
.lib .note--caveat p, .lib .hg__not { font-size: 1.02rem; }
.lib .hg__fine { font-weight: 600; font-size: 1rem; display: inline-block; margin-top: 4px; }
.hg__ctas { margin: 18px 0 0; }

/* ---------- who needs it, offices, questions ---------- */
.split { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .split { grid-template-columns: 1fr 1fr; } }
.split .panel { margin: 0; }
.split .panel h3 { font-size: 1.5rem; }
.split ul { padding-left: 1.2em; margin: 0; }
.office { padding: 0 0 18px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.office h3 { font-size: 1.35rem; margin: 0 0 6px; }
.lib .office__ways { margin-bottom: 6px; }
.qa { margin: 0 0 26px; }
.qa h3 { font-size: 1.35rem; margin: 0 0 8px; }
.checklist { padding-left: 1.2em; }
.checklist li { margin: 0 0 12px; }
.lib .help { margin-top: 10px; }
.log { padding-left: 1.2em; }
.log li { margin: 0 0 12px; }
.log time { font-weight: 800; margin-right: 6px; }
.nf { padding-left: 1.2em; }

/* ---------- bottom: only "What changed" and "Sources" fold ---------- */
.tail { border-top: 2px solid #000; padding-top: 24px; }
.fold { border-bottom: 1px solid var(--line); padding: 10px 0; }
.fold summary { cursor: pointer; display: flex; align-items: center; gap: 12px; }
.fold summary h2 { font: 800 1.5rem/1.2 var(--font-sans); margin: 0; }
.fold summary::after { content: "Show ▾"; font: 700 1rem var(--font-sans); border: var(--border); border-radius: var(--radius-pill); padding: 2px 12px; background: var(--hg-neon); }
.fold[open] summary::after { content: "Hide ▴"; }
.fold summary::-webkit-details-marker { display: none; }
.fold ol, .fold ul { margin-top: 14px; }
.sources li { font-size: 1rem; margin: 0 0 6px; }
.lib .review { font-size: 1rem; margin: 22px 0 10px; }
.lib .disclaimer { font-size: 1rem; color: var(--ink-2); }
.lib .totop { margin: 28px 0 0; font-size: 1rem; }

@media (max-width: 749px) {
  .lib .pill, .lib .pills .pill { font-size: .98rem; }
  .read { padding-top: 32px; margin-top: 36px; }
  .sec { margin-bottom: 52px; }
}

/* ---------- print: every section open, no menu or header ---------- */
@media print {
  @page { margin: 14mm 12mm; }
  html { font-size: 12.5px; }
  body, .lib-tint, .read { background: #fff !important; }
  .hg-header, .hg-header-spacer, .skip, .toc, .lib-tint, .hg__ctas, .hero__btns, .totop, .hg-footer__cols, .hg-footer__social { display: none !important; }
  .hg-footer { background: none !important; color: #000 !important; } .hg-footer__wordmark { max-width: 160px; }
  details::details-content { content-visibility: visible; display: contents; }
  .read { display: block; padding: 0; border: 0; }
  .sec h2, .sec h3 { break-after: avoid; }
  .steps > li, .panel, .conflict, .fact { break-inside: avoid; }
}
