/* pollokshields.com — design tokens */
:root {
  --oxblood: #7A2E26;      /* red sandstone */
  --oxblood-deep: #5C211B;
  --tile: #1F5A4A;         /* glazed wally-tile green */
  --tile-light: #2E7562;
  --ochre: #C9A54A;        /* tile glaze accent */
  --stone: #EEF0EC;        /* cool pale stone */
  --stone-2: #E1E5DF;
  --paper: #FAFBF8;
  --ink: #1C2421;
  --ink-soft: #46524D;
  --rule: #C9D0C9;
  --focus: #C9A54A;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 68ch;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 2rem;
  --step-4: 2.75rem;
  --step-5: 3.75rem;
  --space: 1.5rem;
  color-scheme: light dark;
}
:root:not([data-theme="light"]) { }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --stone: #18201D;
    --stone-2: #212B27;
    --paper: #131A17;
    --ink: #E8ECE7;
    --ink-soft: #AEB8B2;
    --rule: #33403B;
    --oxblood: #E0897B;
    --oxblood-deep: #F0A99D;
    --tile: #6FBFA6;
    --tile-light: #8ED3BD;
    --ochre: #D9B75E;
  }
}
:root[data-theme="dark"] {
  --stone: #18201D; --stone-2: #212B27; --paper: #131A17; --ink: #E8ECE7; --ink-soft: #AEB8B2;
  --rule: #33403B; --oxblood: #E0897B; --oxblood-deep: #F0A99D; --tile: #6FBFA6; --tile-light: #8ED3BD; --ochre: #D9B75E;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tile); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--oxblood); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* ---------- signature: the wally-tile band ---------- */
.tiles {
  --t: 28px;
  height: calc(var(--t) * 2);
  background-color: var(--tile);
  background-image:
    radial-gradient(circle at 50% 50%, var(--ochre) 0 18%, transparent 19%),
    conic-gradient(from 45deg at 50% 50%, var(--tile-light) 0 25%, var(--tile) 0 50%, var(--tile-light) 0 75%, var(--tile) 0),
    linear-gradient(var(--oxblood), var(--oxblood));
  background-size: var(--t) var(--t), var(--t) var(--t), 100% 6px;
  background-position: 0 0, 0 0, 0 100%;
  background-repeat: repeat-x, repeat, no-repeat;
  border-bottom: 6px solid var(--oxblood);
}
.tiles--thin { height: var(--t); }

/* ---------- header and nav ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 5; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 72rem; margin: 0 auto; padding: .75rem 1rem; }
.brand { font-family: var(--serif); font-size: var(--step-1); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--oxblood); }
.nav-toggle { display: none; font: inherit; background: none; border: 1px solid var(--rule); color: var(--ink); padding: .35rem .75rem; border-radius: 4px; cursor: pointer; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: 0; padding: 0; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-size: var(--step--1); padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--oxblood); }
@media (max-width: 1400px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-header .bar { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; gap: .5rem; padding-bottom: .75rem; }
  .site-nav a { font-size: var(--step-0); }
}

/* ---------- page head ---------- */
.page-head { background: var(--stone); }
.page-head .inner { max-width: 72rem; margin: 0 auto; padding: 3rem 1rem 2.5rem; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(var(--step-3), 6vw, var(--step-5)); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 1rem; max-width: 18ch; color: var(--oxblood-deep); }
.page-head .standfirst { font-size: var(--step-1); line-height: 1.5; color: var(--ink-soft); max-width: 52ch; margin: 0; }
.crumbs { font-size: var(--step--1); margin: 0 0 1.25rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }

/* ---------- layout ---------- */
main { display: block; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 2.5rem 1rem 4rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 3rem; }
@media (min-width: 1000px) {
  .wrap.has-toc { grid-template-columns: 14rem minmax(0, 1fr); }
}
.toc { font-size: var(--step--1); }
.toc h2 { font-family: var(--sans); font-size: var(--step--1); font-weight: 700; margin: 0 0 .5rem; color: var(--ink-soft); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.toc li a { display: block; padding: .3rem 0 .3rem .9rem; color: var(--ink-soft); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc li a:hover { color: var(--ink); border-left-color: var(--oxblood); }
@media (min-width: 1000px) { .toc nav { position: sticky; top: 5.5rem; } }
@media (max-width: 999px) { .toc { margin-bottom: 2rem; padding: 1rem; background: var(--stone); border-radius: 4px; } }

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: var(--step-3); line-height: 1.15; letter-spacing: -0.01em; margin: 3rem 0 0; color: var(--oxblood-deep); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.2; margin: 2.25rem 0 0; }
.prose h4 { font-size: var(--step-0); font-weight: 700; margin: 1.5rem 0 0; }
.prose p, .prose li { max-width: var(--measure); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .35rem; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
.small, .note { font-size: var(--step--1); color: var(--ink-soft); }

/* key facts panel */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; margin: 1.25rem 0; padding: 1rem 1.25rem; background: var(--stone); border-left: 4px solid var(--tile); border-radius: 0 4px 4px 0; font-size: var(--step--1); max-width: var(--measure); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: .5rem; } }

.callout { padding: 1rem 1.25rem; border: 1px solid var(--rule); border-left: 4px solid var(--ochre); border-radius: 0 4px 4px 0; background: var(--paper); max-width: var(--measure); }
.callout p { margin: 0; }
.callout p + p { margin-top: .5rem; }

/* tables */
.table-wrap { overflow-x: auto; max-width: 100%; margin: 1.25rem 0; border: 1px solid var(--rule); border-radius: 4px; }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); line-height: 1.45; }
caption { text-align: left; font-weight: 700; padding: .75rem 1rem; color: var(--ink); background: var(--stone); }
th, td { text-align: left; vertical-align: top; padding: .6rem 1rem; border-top: 1px solid var(--rule); }
thead th { background: var(--stone-2); border-top: 0; font-weight: 700; white-space: nowrap; }
tbody tr:hover { background: var(--stone); }
td:first-child { font-weight: 600; }

/* timeline */
.timeline { list-style: none; padding: 0 !important; margin: 1.5rem 0; border-left: 3px solid var(--oxblood); max-width: var(--measure); }
.timeline li { position: relative; padding: 0 0 1.1rem 1.5rem; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: .45rem; width: 13px; height: 13px; background: var(--paper); border: 3px solid var(--oxblood); border-radius: 50%; }
.timeline .when { display: block; font-family: var(--serif); font-size: var(--step-1); color: var(--oxblood-deep); line-height: 1.3; }

/* walking route */
.route { counter-reset: stop; list-style: none; padding: 0 !important; max-width: var(--measure); }
.route > li { counter-increment: stop; position: relative; padding: 0 0 1.25rem 3rem; margin: 0; }
.route > li::before { content: counter(stop); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--tile); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: var(--step--1); }
.route > li + li { margin-top: 0; }

/* directory */
.dir-tools { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: 1rem 0 1.5rem; position: sticky; top: 4.2rem; background: var(--paper); padding: .75rem 0; z-index: 2; border-bottom: 1px solid var(--rule); }
.dir-tools input[type="search"] { font: inherit; padding: .55rem .8rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); min-width: min(100%, 22rem); flex: 1 1 16rem; }
.dir-tools .count { font-size: var(--step--1); color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips button { font: inherit; font-size: var(--step--1); border: 1px solid var(--rule); background: var(--paper); color: var(--ink); padding: .3rem .7rem; border-radius: 999px; cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--tile); border-color: var(--tile); color: #fff; }

/* cards for the home page sections only */
.sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0; border-top: 1px solid var(--rule); margin-top: 1rem; }
.sections a { display: block; padding: 1.5rem 1.25rem 1.75rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.sections a:hover h3 { color: var(--oxblood); }
.sections h3 { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); margin: 0 0 .4rem; color: var(--ink); }
.sections p { margin: 0; color: var(--ink-soft); font-size: var(--step--1); max-width: 34ch; }

/* home hero */
.hero { background: var(--stone); }
.hero .inner { max-width: 72rem; margin: 0 auto; padding: 4rem 1rem 3.5rem; display: grid; gap: 2rem; }
@media (min-width: 900px) { .hero .inner { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 9vw, 6rem); line-height: .95; letter-spacing: -0.03em; margin: 0; color: var(--oxblood-deep); }
.hero .standfirst { font-size: var(--step-1); color: var(--ink-soft); max-width: 40ch; margin: 1.25rem 0 0; }
.hero .glance { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--oxblood); }
.hero .glance li { padding: .65rem 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; font-size: var(--step--1); }
.hero .glance strong { font-weight: 700; }

/* footer */
.site-footer { background: var(--stone); border-top: 1px solid var(--rule); font-size: var(--step--1); color: var(--ink-soft); }
.site-footer .inner { max-width: 72rem; margin: 0 auto; padding: 2rem 1rem 2.5rem; display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .site-footer .inner { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-family: var(--serif); font-weight: 400; font-size: var(--step-1); color: var(--ink); margin: 0 0 .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: .25rem 0; }
.site-footer a { color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .site-header, .site-footer, .tiles, .toc, .dir-tools { display: none !important; } body { background: #fff; color: #000; } }

/* contact form */
.contact { max-width: 36rem; margin-top: 1.5rem; padding: 1.25rem; background: var(--stone); border-radius: 4px; }
.contact p { margin: 0 0 1rem; }
.contact label { display: block; font-weight: 600; font-size: var(--step--1); margin-bottom: .35rem; }
.contact input, .contact select, .contact textarea { width: 100%; font: inherit; padding: .6rem .75rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); color: var(--ink); }
.contact button { font: inherit; font-weight: 700; padding: .65rem 1.25rem; border: 0; border-radius: 4px; background: var(--tile); color: #fff; cursor: pointer; }
.contact button:hover { background: var(--oxblood); }
.contact .hp { position: absolute; left: -9999px; }

/* photos */
.photo { margin: 2rem 0; max-width: var(--measure); }
.photo img { width: 100%; height: auto; border-radius: 4px; background: var(--stone-2); }
.photo figcaption { font-size: var(--step--1); color: var(--ink-soft); margin-top: .5rem; line-height: 1.45; }
.photo .credit { display: block; font-size: .78rem; margin-top: .15rem; }
.photo .credit a { color: var(--ink-soft); }
@media (min-width: 1000px) { .photo--wide { max-width: none; } }
.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; height: clamp(16rem, 42vw, 32rem); object-fit: cover; display: block; }
.hero-photo figcaption { position: absolute; right: .5rem; bottom: .5rem; background: rgba(20,24,22,.72); color: #fff; font-size: .75rem; padding: .25rem .5rem; border-radius: 3px; max-width: 90%; }
.hero-photo figcaption a { color: #fff; }
.photo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 2.5rem 0 0; }
.photo-row .photo { margin: 0; }
.photo-row img { aspect-ratio: 4 / 3; object-fit: cover; }
.prose .photo + * { margin-top: 1rem; }

/* business links */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.maplink { display: inline-block; margin-left: .35rem; font-size: .8rem; font-weight: 600; white-space: nowrap; }
td:first-child a { color: var(--ink); text-decoration-color: var(--tile); }
td:first-child a:hover { color: var(--oxblood); }

/* map page */
.map { height: min(75vh, 44rem); min-height: 24rem; border: 1px solid var(--rule); border-radius: 4px; margin: 1rem 0; z-index: 1; }
.map-tools { display: grid; gap: .75rem; grid-template-columns: 1fr; font-size: var(--step--1); }
@media (min-width: 900px) { .map-tools { grid-template-columns: 16rem 1fr; } }
.map-tools fieldset { border: 1px solid var(--rule); border-radius: 4px; padding: .5rem .9rem .75rem; margin: 0; }
.map-tools legend { font-weight: 700; padding: 0 .3rem; }
.map-tools label { display: inline-flex; align-items: center; gap: .35rem; margin: .2rem 1rem .2rem 0; cursor: pointer; }
.map-cats { display: flex; flex-wrap: wrap; }
.swatch { width: .8rem; height: .8rem; border-radius: 50%; display: inline-block; border: 1px solid rgba(0,0,0,.2); }
.map-tools .n { color: var(--ink-soft); }
.stop-icon span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 700 12px/1 var(--sans); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.leaflet-popup-content { font-family: var(--sans); font-size: .9rem; line-height: 1.45; }
.pop-type { color: #555; }
.has-map .prose { max-width: none; }
