/* HostelPeti: trunk blue, brass straps, paper labels. System fonts only. */
:root {
  --paper: #fbf7ef;
  --card: #ffffff;
  --ink: #1f2933;
  --muted: #4f5d6b;
  --trunk: #24546b;
  --trunk-dark: #183b4c;
  --trunk-soft: #e4eef2;
  --brass: #b7791f;
  --brass-text: #7a4d0b;
  --brass-soft: #f7ecd6;
  --line: #e0d7c6;
  --field-line: #6b7785; /* form-field borders: 4.56:1 on white, 4.27:1 on paper (WCAG 1.4.11 needs 3:1) */
  --good: #2b6a3c;
  --good-soft: #e6f2e8;
  --bad: #9b2c2c;
  --focus: #183b4c;
  --radius: 10px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-head: Rockwell, "Rockwell Nova", "Roboto Slab", "Bookman Old Style", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--trunk); text-underline-offset: 2px; }
a:hover { color: var(--trunk-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; color: var(--trunk-dark); }
h1 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); margin: .6em 0 .35em; }
h2 { font-size: clamp(1.3rem, 3.2vw, 1.65rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.12rem; margin: 1.2em 0 .4em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
code { font-size: .92em; background: var(--trunk-soft); padding: 0 .25em; border-radius: 4px; word-break: break-all; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lede { font-size: 1.08rem; color: var(--ink); max-width: 46rem; }
.note { background: var(--trunk-soft); padding: .7em .9em; border-radius: var(--radius); }

/* Skip link */
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--card); color: var(--trunk-dark); padding: 10px 14px; border-radius: 6px; z-index: 10; font-weight: 600; }
.skip-link:focus { top: 8px; }

/* Header */
.site-header { background: var(--trunk); border-bottom: 5px solid var(--brass); color: #fff; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-height: 44px; }
.brand:hover { color: #fff; }
.brand-name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 2px 6px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: #fff; text-decoration: none; font-weight: 600; border-radius: 6px; }
.site-nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 #f2c46d; }
.site-header :focus-visible { outline-color: #ffd88a; }

/* Breadcrumb */
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 14px 0 0; font-size: .92rem; color: var(--muted); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin: 0 .45em; color: var(--line); }
.breadcrumb a { display: inline-block; padding: 10px 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 16px; border: 2px solid var(--trunk); background: var(--trunk); color: #fff; font: 600 .98rem/1.2 var(--font-body); border-radius: 8px; cursor: pointer; }
.btn:hover { background: var(--trunk-dark); border-color: var(--trunk-dark); }
.btn-quiet { background: transparent; color: var(--trunk-dark); }
.btn-quiet:hover { background: var(--trunk-soft); color: var(--trunk-dark); }
.btn-small { min-height: 44px; padding: 6px 12px; font-size: .9rem; }

/* Home */
.home-top { padding-top: 6px; }
.home-top h1 { margin-top: .45em; }
.picker ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.picker li { margin: 0; }
.pick { display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 10px 12px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pick:hover { border-color: var(--trunk); color: var(--ink); }
.pick[aria-current="true"] { border-color: var(--trunk); background: var(--trunk-soft); box-shadow: inset 4px 0 0 var(--brass); }
.pick-name { font-weight: 700; color: var(--trunk-dark); }
.pick-sum { font-size: .86rem; color: var(--muted); line-height: 1.35; }
.home-list-head h2 { margin-top: .8em; }
.home-list-head p { margin-bottom: .4em; }
.home-section { margin-top: 1.5em; }
.home-ask { margin-top: 1em; }
.home-ask a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Tiles */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 12px; }
.tiles li { margin: 0; }
.tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; height: 100%; min-height: 72px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.tile:hover { border-color: var(--trunk); color: var(--ink); }
.tile .icon { grid-row: span 2; color: var(--brass-text); }
.tile-name { font-weight: 700; color: var(--trunk-dark); }
.tile-sub { font-size: .9rem; color: var(--muted); line-height: 1.4; }
.tiles-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.tile-wide { grid-template-columns: auto 1fr; }
.tile-wide:not(:has(.icon)) { grid-template-columns: 1fr; }
.how ul { padding-left: 1.2em; }
/* Links that stand on their own (not inside a sentence): a paragraph holding one link or a row of links,
   and the link at the end of the shop-link disclosure, get a full-size tap area. */
.solo-link a, .link-row a, .disclosure > a { display: inline-flex; align-items: center; min-height: 44px; }

/* Checklist */
.checklist-app { margin-top: 8px; }
.cl-toolbar { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 0; margin-bottom: 8px; }
.cl-toolbar[hidden], .cl-custom[hidden], [hidden] { display: none !important; }
.cl-bar-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; }
.cl-progress { font-weight: 700; color: var(--trunk-dark); margin: 0; }
.cl-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cl-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-right: 8px; cursor: pointer; }
.cl-toggle input { width: 22px; height: 22px; accent-color: var(--trunk); }
.cl-status { margin: 4px 0 0; color: var(--good); font-weight: 600; min-height: 1px; }
.cl-legend { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; padding: 0; margin: 8px 0 4px; }
.cl-legend li { margin: 0; }
.cl-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: 0 20px; align-items: start; }
.cl-group h3 { margin-top: .9em; padding-bottom: 4px; border-bottom: 2px solid var(--brass); }
.cl-list { list-style: none; padding: 0; margin: 0; }
.cl-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; column-gap: 10px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0; min-height: 44px; }
.cl-item input[type="checkbox"] { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--trunk); cursor: pointer; }
.cl-item label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; cursor: pointer; min-height: 28px; }
.cl-label { flex: 1 1 12rem; }
.cl-note { flex-basis: 100%; font-size: .88rem; color: var(--muted); }
.cl-more { grid-column: 3; grid-row: 1; justify-self: end; display: inline-flex; align-items: center; min-height: 44px; margin-top: -10px; padding-left: 4px; font-size: .88rem; white-space: nowrap; }
.cl-item.is-done .cl-label { text-decoration: line-through; text-decoration-color: var(--brass); color: var(--muted); }
.hide-done .cl-item.is-done { display: none; }
.cl-tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .02em; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.tag-pack { background: var(--trunk-soft); color: var(--trunk-dark); }
.tag-buy { background: var(--brass-soft); color: var(--brass-text); }
.tag-ifneeded { background: #eceff2; color: #3d4852; }
.cl-custom { margin-top: 1.2em; padding: 12px 14px; background: var(--card); border: 1px dashed var(--brass); border-radius: var(--radius); }
.cl-custom h3 { margin-top: .2em; }
.cl-custom .cl-item { grid-template-columns: 28px minmax(0, 1fr) auto; }
.cl-add label { display: block; font-weight: 600; margin: 8px 0 4px; }
.cl-add-row { display: flex; gap: 8px; }
.cl-add-row input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 8px 10px; font: inherit; border: 2px solid var(--field-line); border-radius: 8px; background: #fff; color: var(--ink); }
.cl-add-row input:focus-visible { border-color: var(--trunk); }

.ask-first { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--brass); border-radius: var(--radius); padding: 4px 18px 8px; margin: 1.2em 0; }
.ask-first h2 { margin-top: .7em; }
.related ul { padding-left: 1.2em; }

/* Essentials */
.disclosure { display: block; background: var(--brass-soft); border-left: 6px solid var(--brass); border-radius: var(--radius); padding: 12px 14px; margin: 1em 0; font-size: .95rem; }
.callout { background: var(--trunk-soft); border-radius: var(--radius); padding: 4px 18px 6px; margin: 1.4em 0; }
.callout h2 { margin-top: .7em; font-size: 1.25rem; }
.jump { margin: 1em 0; }
.jump-h { font-size: 1rem; margin: 0 0 .3em; font-family: var(--font-body); color: var(--muted); }
.jump ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.jump li { margin: 0; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .92rem; }
.products { display: grid; gap: 16px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 16px; scroll-margin-top: 12px; }
.product h2 { margin-top: .7em; font-size: 1.3rem; }
.product h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--ink); margin-top: .6em; }
.why { color: var(--ink); }
.product-cols { display: grid; gap: 0 24px; }
.checks li::marker { color: var(--good); }
.avoids li::marker { color: var(--bad); }
.safety { background: var(--trunk-soft); padding: 10px 12px; border-radius: 8px; }
.cite { display: inline; font-size: .86rem; color: var(--muted); }
.cite a { color: var(--trunk); }
.fits { font-size: .9rem; color: var(--muted); }
.fits span { font-weight: 600; }
.shop { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.shop-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 2px solid var(--brass); border-radius: 8px; color: var(--brass-text); font-weight: 700; text-decoration: none; background: #fff; }
.shop-link:hover { background: var(--brass-soft); color: var(--brass-text); }
.shop-note { font-size: .84rem; color: var(--muted); }
.more-cats ul { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; list-style: none; }
.more-cats a { display: inline-flex; min-height: 44px; align-items: center; }

/* Links that stand alone in a list item get a full-size tap area. */
main li > a:only-child, .related li > a, .help-now li > a, .sources li > a:first-child, main a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; }
.sources li { margin-bottom: .2em; }

/* Guides */
.limits { display: block; background: #eef0f2; border-radius: var(--radius); padding: 12px 14px; margin: 1.6em 0; font-size: .95rem; }
.sources { margin-top: 2em; padding-top: .4em; border-top: 2px solid var(--line); font-size: .93rem; }
.sources h2 { font-size: 1.2rem; }
.day { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px 18px 6px; margin: 12px 0; }
.day h2 { margin-top: .6em; font-size: 1.2rem; }
.doc-block h2 { font-size: 1.25rem; }
.help-now { background: var(--card); border: 2px solid var(--trunk); border-radius: var(--radius); padding: 2px 18px 8px; }
.help-now h2 { margin-top: .6em; }
.help-now a[href^="tel:"] { font-weight: 700; font-size: 1.1rem; }

/* Budget */
.budget-layout { display: grid; gap: 16px; align-items: start; }
.budget fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 8px 14px 4px; margin: 0 0 14px; min-width: 0; }
.budget legend { font-family: var(--font-head); font-weight: 700; color: var(--trunk-dark); padding: 0 6px; font-size: 1.1rem; }
.b-row { display: grid; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.b-row:last-child { border-bottom: 0; }
.b-label { font-weight: 600; }
.b-hint { display: block; font-weight: 400; font-size: .86rem; color: var(--muted); }
.b-inputs { display: flex; align-items: center; gap: 6px; min-width: 0; }
.b-rupee { color: var(--muted); font-weight: 700; }
.b-inputs input { flex: 1 1 6rem; min-width: 0; min-height: 44px; padding: 8px 10px; font: inherit; border: 2px solid var(--field-line); border-radius: 8px; color: var(--ink); background: #fff; }
.b-inputs input[aria-invalid="true"] { border-color: var(--bad); }
.b-inputs select { flex: 0 1 11rem; min-width: 0; min-height: 44px; padding: 6px 8px; font: inherit; font-size: .95rem; border: 2px solid var(--field-line); border-radius: 8px; background: #fff; color: var(--ink); }
.b-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.b-results { background: var(--card); border: 2px solid var(--trunk); border-radius: var(--radius); padding: 2px 16px 12px; }
.b-results h2 { margin-top: .6em; }
.b-totals { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin: 0 0 12px; }
.b-totals dt { color: var(--muted); }
.b-totals dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.b-good { color: var(--good); }
.b-bad { color: var(--bad); }
.b-warn { color: var(--bad); font-weight: 600; }
.b-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.b-table caption { text-align: left; font-weight: 700; padding-bottom: 4px; }
.b-table th, .b-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.b-table td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.b-table thead th:not(:first-child) { text-align: right; }

/* Privacy */
.table-wrap { max-width: 100%; }
.keys { width: 100%; border-collapse: collapse; background: var(--card); font-size: .94rem; }
.keys caption { text-align: left; font-weight: 700; padding: 6px 0; }
.keys th, .keys td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.privacy-actions { margin: 12px 0; }
.log li { margin-bottom: .6em; }

/* Footer */
.site-footer { margin-top: 3em; background: var(--trunk-dark); color: #e9eef1; border-top: 5px solid var(--brass); }
.footer-inner { padding-top: 18px; padding-bottom: 22px; font-size: .94rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #ffe3a6; }
.site-footer :focus-visible { outline-color: #ffd88a; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 18px; list-style: none; padding: 0; margin: 0 0 10px; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-small { color: #c9d4da; font-size: .88rem; }

@media (max-width: 639px) {
  .pick-sum, .sit-summary { display: none; }
  .pick { min-height: 48px; padding: 8px 12px; }
  .home-top h1 { margin-top: .4em; }
  .home-list-head h2 { margin-top: .5em; }
  .home-list-head p { margin-bottom: 0; }
}
@media (min-width: 640px) {
  .picker ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-cols { grid-template-columns: 1fr 1fr; }
  .b-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; }
}
@media (min-width: 960px) {
  .budget-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .b-results { position: sticky; top: 12px; }
}
@media (max-width: 600px) {
  .keys thead { display: none; }
  .keys, .keys tbody, .keys tr, .keys th, .keys td { display: block; width: 100%; }
  .keys tr { border-bottom: 2px solid var(--line); padding: 6px 0; }
  .keys th, .keys td { border-bottom: 0; padding: 4px 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .cl-toolbar, .cl-more, .cl-add, .picker, .breadcrumb, .home-section, .related, .skip-link, .b-actions, .shop, .jump, noscript, .cl-custom button { display: none !important; }
  .cl-custom[hidden] { display: none !important; }
  .cl-custom { border: 0; padding: 0; }
  .cl-groups { display: block; columns: 2; column-gap: 24px; }
  .cl-group { break-inside: avoid; }
  .cl-item { border-bottom: 1px solid #999; padding: 3px 0; min-height: 0; }
  .cl-tag { border: 1px solid #666; background: none !important; color: #000 !important; }
  .cl-item.is-done .cl-label { color: #000; }
  .hide-done .cl-item.is-done { display: grid; }
  a { color: #000; text-decoration: none; }
  .ask-first { border: 1px solid #999; }
  .b-results { border: 1px solid #000; position: static; }
}
