/* ==========================================================================
   HamaraOhio design system
   A neighbourhood classifieds board: Inter, clear labels, warm paper.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1b1a17;
  --ink-2: #3a3730;
  --muted: #6c675d;
  --muted-2: #635e54;
  --paper: #fbfaf5;
  --paper-2: #f1ede3;
  --paper-3: #f5f2e9;
  --card: #fffefb;
  --white: #ffffff;
  --line: #ded8c9;
  --line-strong: #c6bda9;

  --saffron: #c96a1c;
  --saffron-deep: #9c4a0d;
  --saffron-soft: #fbeee0;
  --saffron-line: #ead6bd;
  --gold: #d9a441;

  --green: #14503a;
  --green-deep: #103d2c;
  --green-soft: #edf2ed;
  --green-line: #cfdcd1;
  --navy: #1b2a5e;

  --danger: #a5321f;
  --danger-soft: #fbeee9;
  --danger-line: #f0cfc6;

  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;
  --radius-tag: 2px;

  --shadow-sm: none;
  --shadow: none;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  font-size: 106.25%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.62;
}

main {
  flex: 1;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
}

::selection {
  background: #f0dcc0;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--saffron-deep);
  outline-offset: 2px;
}
.site-footer :focus-visible {
  outline-color: var(--gold);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--green-deep);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  display: inline-block;
  vertical-align: -0.18em;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Type helpers
   -------------------------------------------------------------------------- */

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--saffron-deep);
  font-size: 0.95rem;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(156, 74, 13, 0.45);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.text-link:hover {
  color: #7b3604;
  text-decoration-color: currentColor;
}

.text-link .icon {
  width: 0.95em;
  height: 0.95em;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn .icon {
  width: 1em;
  height: 1em;
}

.btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fffdf6;
}

.btn-primary:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper-2);
}

.btn-quiet {
  border-color: var(--line);
  color: var(--ink-2);
  background: transparent;
}

.btn-quiet:hover {
  background: var(--paper-2);
  border-color: var(--line-strong);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field > label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.4;
}

.field .req,
.req {
  color: var(--saffron-deep);
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="password"],
input[type="month"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--ink);
  caret-color: var(--saffron-deep);
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #c8b79f;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(20, 80, 58, 0.14);
}

select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f685c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
}

input[type="file"] {
  font-family: var(--font-body);
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
  flex: none;
  cursor: pointer;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--muted);
  pointer-events: none;
  font-size: 1rem;
}

.input-with-icon input {
  padding-left: 40px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 22px;
}

.field-full {
  grid-column: 1 / -1;
}

.field-help {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.field-help a {
  color: var(--saffron-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field-error {
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.char-count {
  color: var(--muted-2);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.88rem;
  line-height: 1.5;
  cursor: pointer;
}

.check-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.check-row a {
  color: var(--saffron-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-fieldset {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.contact-fieldset legend {
  padding: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Flash + alerts */

.flash {
  display: block;
  margin: 0 0 18px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--green-line);
  border-bottom: 1px solid var(--green-line);
  border-radius: 0;
  background: transparent;
  color: var(--green-deep);
  font-size: 0.88rem;
  line-height: 1.55;
}

.flash strong {
  display: block;
  font-size: 0.95rem;
}

.flash p {
  margin-top: 2px;
  color: var(--ink-2);
}

.flash-success {
  margin-top: 22px;
}

.flash-inline {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.form-alert {
  margin: 0 0 22px;
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid var(--danger-line);
  border-radius: 0;
  background: transparent;
  color: #7d2c1c;
  font-size: 0.86rem;
  line-height: 1.55;
}

.form-alert-compact {
  text-align: left;
  margin: 18px 0;
}

.masthead {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding-top: 13px;
  padding-bottom: 13px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand-mark {
  display: block;
  width: 52px;
  height: 52px;
  flex: none;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-mark-sm {
  width: 44px;
  height: 44px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.62rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--navy);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 520px;
  margin-left: auto;
  min-height: 44px;
  padding: 4px 4px 4px 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.header-search:focus-within {
  border-color: var(--green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(20, 80, 58, 0.12);
}

.header-search .input-icon {
  position: absolute;
  left: 15px;
  color: var(--muted);
  display: inline-flex;
}

.header-search input {
  flex: 1;
  min-width: 0;
  min-height: 36px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  font-size: 0.95rem;
  border-radius: 0;
}

.header-search input:focus {
  outline: none;
  box-shadow: none;
}

.header-search .btn {
  flex: none;
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.masthead-post {
  padding: 11px 19px;
}

.site-nav {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 44px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-inner a {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-bottom: 2px solid transparent;
  color: var(--ink-2);
  font-size: 0.94rem;
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.nav-inner a:first-child {
  padding-left: 0;
}

.nav-inner a:hover {
  color: var(--saffron-deep);
  background: transparent;
}

.nav-inner a.is-active {
  color: var(--ink);
  border-bottom-color: var(--saffron);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 46px 0 40px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-search-head {
  max-width: 780px;
}

.hero-search-head h1 {
  font-size: clamp(2.55rem, 4.9vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero-search-head p {
  max-width: 600px;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 1.08rem;
  line-height: 1.6;
}

.search-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 34px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.search-panel-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.search-panel-field label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-panel-field input,
.search-panel-field select {
  min-height: 46px;
  border-color: var(--line);
  background-color: var(--white);
  font-size: 0.98rem;
}

.search-panel-field input:focus,
.search-panel-field select:focus {
  background-color: var(--white);
}

.search-submit {
  min-height: 46px;
  padding-inline: 24px;
}

/* --------------------------------------------------------------------------
   Sections and category grid
   -------------------------------------------------------------------------- */

.section {
  padding: 54px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.25rem);
  letter-spacing: -0.015em;
}

.section-sub {
  max-width: 600px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-head > .text-link,
.section-head > .btn {
  margin-bottom: 4px;
  flex: none;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 28px;
}

.category-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  transition: border-color 0.16s ease;
}

.category-tile:hover {
  border-color: var(--ink);
  background: transparent;
}

.category-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.category-name {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.category-count {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.76rem;
}

.category-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.85rem;
}

.category-more a {
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.category-more a:hover {
  color: var(--saffron-deep);
  text-decoration-color: currentColor;
}


/* --------------------------------------------------------------------------
   Page heads and breadcrumbs
   -------------------------------------------------------------------------- */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.breadcrumbs a {
  transition: color 0.15s ease;
}

.breadcrumbs a:hover {
  color: var(--saffron-deep);
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--line-strong);
}

.breadcrumbs span[aria-current="page"] {
  color: var(--ink-2);
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-head h1 {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  letter-spacing: -0.015em;
}

.page-lede {
  max-width: 710px;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 1.03rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Browse
   -------------------------------------------------------------------------- */

.page-browse main {
  padding-bottom: 30px;
}

.browse-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding-bottom: 68px;
}

.browse-sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.browse-main {
  position: relative;
}

/* A printed rule keeps the category/filter column visibly separate from ads. */
.browse-main::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -16px;
  width: 1px;
  background: var(--line-strong);
}

.sidebar-card {
  min-width: 0;
}

.sidebar-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.sidebar-heading h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sidebar-heading span {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sidebar-nav {
  padding: 6px 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.84rem;
  line-height: 1.4;
  transition: background-color 0.13s ease, color 0.13s ease;
}

.sidebar-link:hover {
  background: transparent;
  color: var(--ink);
}

.sidebar-link.is-active {
  background: transparent;
  color: var(--ink);
  font-weight: 700;
}

.sidebar-all {
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  padding-bottom: 11px;
}

.sidebar-count {
  color: var(--muted-2);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.sidebar-link.is-active .sidebar-count {
  color: var(--saffron-deep);
}

/* Filters */

.filter-bar {
  margin-bottom: 18px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
}


.filter-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.filter-search {
  grid-column: 1 / -1;
}

.filter-field label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-field input,
.filter-field select {
  min-height: 40px;
  height: 40px;
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 0.82rem;
  background-color: var(--paper);
  border-color: var(--line);
}

.filter-field select {
  padding-left: 10px;
  padding-right: 28px;
  background-position: right 9px center;
}

.filter-field input:focus,
.filter-field select:focus {
  background-color: var(--white);
}

.filter-field .input-icon {
  font-size: 0.88rem;
  left: 11px;
}

.filter-field .input-with-icon input {
  padding-left: 33px;
}

.filter-submit-wrap {
  display: flex;
  align-items: flex-end;
}

.filter-submit {
  height: 40px;
  padding: 8px 16px;
  font-size: 0.8rem;
}

.filter-active {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 0 11px;
  color: var(--ink-2);
  font-size: 0.82rem;
}

.results-head strong {
  color: var(--ink);
  font-weight: 700;
}

/* Pagination */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.page-numbers {
  display: flex;
  align-items: center;
  gap: 3px;
}

.page-number {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.13s ease, border-color 0.13s ease, color 0.13s ease;
}

a.page-number:hover {
  border-color: var(--line-strong);
  background: var(--card);
}

.page-number.is-current {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
  font-weight: 600;
}

.page-gap {
  padding: 0 3px;
  color: var(--muted-2);
  font-size: 0.8rem;
}

.page-arrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-tag);
  background: var(--card);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 500;
  transition: border-color 0.13s ease, color 0.13s ease, background-color 0.13s ease;
}

a.page-arrow:hover {
  border-color: var(--saffron);
  color: var(--saffron-deep);
  background: var(--saffron-soft);
}

.page-arrow.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.browse-footer-note {
  display: block;
  margin-top: 22px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.55;
}

.browse-footer-note p {
  margin: 0;
}

.browse-footer-note .icon {
  display: none;
}

.browse-footer-note a {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Ad detail
   -------------------------------------------------------------------------- */

.page-ad main {
  padding-bottom: 20px;
}

.ad-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
  padding-top: 24px;
}

.ad-main {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.ad-header h1 {
  font-size: clamp(1.85rem, 3.3vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.ad-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 14px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.76rem;
}

.ad-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.ad-meta-id {
  padding-left: 0;
  border-left: 0;
  font-variant-numeric: tabular-nums;
}

.ad-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0 4px;
}

.gallery-item {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.ad-gallery-1 {
  grid-template-columns: 1fr;
}

.ad-gallery-1 .gallery-item {
  aspect-ratio: 16 / 9;
}

.ad-gallery-3 .gallery-main {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

.ad-body {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.ad-body h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-bottom: 11px;
}

.ad-description {
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.72;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.ad-safety {
  margin-top: 30px;
  padding: 20px 0 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.ad-safety h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.ad-safety p {
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.65;
}

.ad-aside {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.contact-card {
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
}

.contact-person {
  display: block;
}

.contact-name {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.contact-location {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.contact-note {
  margin: 15px 0 13px;
  color: var(--ink-2);
  font-size: 0.84rem;
  line-height: 1.55;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-actions .btn {
  justify-content: flex-start;
  padding-left: 18px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact-method:hover {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.contact-method .icon {
  flex: none;
  color: var(--saffron-deep);
}

.contact-method-label {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-error {
  margin-top: 10px;
  color: var(--danger);
  font-size: 0.78rem;
}

.contact-hidden,
.contact-noscript {
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.contact-fine {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
}

.contact-noscript p {
  margin: 10px 0 0;
}

.contact-page-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.related-section {
  padding: 46px 0 68px;
}

.related-section .section-head {
  margin-bottom: 20px;
}

.related-section .section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 26px;
}

.related-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  transition: border-color 0.15s ease;
}

.related-card:hover {
  border-color: var(--ink);
  background: transparent;
}

.related-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.related-card h3 {
  overflow-wrap: anywhere;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--ink);
}

.related-card > p {
  color: var(--muted);
  font-size: 0.76rem;
}

.related-meta {
  margin-top: auto;
  padding-top: 4px;
  color: var(--muted-2);
  font-size: 0.68rem;
}

/* --------------------------------------------------------------------------
   Post an ad
   -------------------------------------------------------------------------- */

.post-head {
  align-items: flex-start;
  border-bottom: 0;
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.post-layout {
  display: block;
  max-width: 780px;
  padding-bottom: 72px;
}

.post-main {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
}

.form-card {
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.form-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}

.step-num {
  display: block;
  flex: none;
  margin-top: 1px;
  color: var(--saffron-deep);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.form-card-head h2 {
  font-size: 1.42rem;
  letter-spacing: -0.01em;
}

.form-card-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.optional {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.photo-input-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.photo-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 26px 20px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fffcf6;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.photo-drop:hover,
.photo-drop.is-dragging {
  border-color: var(--saffron);
  background: var(--saffron-soft);
}

.photo-drop-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: var(--radius-sm);
  background: var(--saffron-soft);
  color: var(--saffron-deep);
  font-size: 1.2rem;
}

.photo-drop-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.photo-drop-help {
  color: var(--muted);
  font-size: 0.75rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.photo-grid:empty {
  display: none;
}

.photo-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}

.photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 18, 15, 0.72);
  color: #fff;
  font-size: 0.7rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.photo-remove:hover {
  background: var(--danger);
}

.photo-status {
  min-height: 1.1em;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.76rem;
}

.captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.captcha-box {
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #f7efdf;
}

.captcha-box img {
  display: block;
  max-width: 100%;
  height: auto;
}

.captcha-input {
  max-width: 280px;
  margin-top: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.terms-check {
  margin-top: 20px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.submit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.submit-note {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.74rem;
}

/* --------------------------------------------------------------------------
   Verify email
   -------------------------------------------------------------------------- */

.page-verify main {
  padding: 52px 0 76px;
  background: var(--paper);
}

.verify-lede {
  max-width: 520px;
  margin: 11px 0 0;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

.verify-lede strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.verify-preview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 21px 0;
  padding: 14px 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.verify-preview strong {
  font-size: 0.9rem;
  line-height: 1.45;
}

.verify-preview > span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
}

.verify-form {
  text-align: left;
  margin-top: 6px;
}

.verify-form label {
  display: block;
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code-input {
  width: 100%;
  margin: 8px 0 14px;
  padding: 13px 8px 13px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.52em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.code-input:focus {
  outline: none;
  border-color: var(--saffron);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(224, 118, 28, 0.16);
}

.verify-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  color: var(--line-strong);
  font-size: 0.79rem;
}

.resend-form {
  display: inline-flex;
}

.resend-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--saffron-deep);
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.resend-button:disabled {
  color: var(--muted-2);
  text-decoration: none;
  cursor: default;
}

.verify-help {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.65;
}

.verify-actions-center {
  justify-content: center;
  margin-top: 24px;
}

.verify-actions-center .btn {
  margin: 0 2px;
}

.dev-code {
  margin: 16px 0;
  padding: 10px 12px;
  border: 1px dashed #e0b25a;
  border-radius: var(--radius-sm);
  background: #fff8e6;
  color: #6b4a0f;
  font-size: 0.8rem;
  text-align: center;
}

.dev-code span {
  display: block;
  margin-bottom: 2px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.dev-code strong {
  font-size: 1rem;
  letter-spacing: 0.14em;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-hero {
  padding: 46px 0 34px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.about-hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.3rem);
  letter-spacing: -0.015em;
  line-height: 1.05;
}

.about-hero h1 em {
  font-style: italic;
  color: var(--saffron-deep);
  font-weight: 500;
}

.about-hero .page-lede {
  max-width: 720px;
}

.about-reading {
  max-width: 720px;
}

.about-hindi {
  margin-top: 18px;
  color: var(--saffron-deep);
  font-size: 1.05rem;
}

.about-reading h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  margin-bottom: 12px;
}

.reading-lede {
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.rule-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.rule-list li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.65;
  counter-increment: rule;
}

.rule-list li::before {
  content: counter(rule);
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--saffron-deep);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1;
}

.rule-list strong {
  color: var(--ink);
}

.prose p {
  margin-bottom: 13px;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.7;
}

.prose a {
  color: var(--saffron-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.about-contact {
  padding-top: 0;
}

.about-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}

.about-contact-card h2 {
  color: var(--ink);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 6px;
}

.about-contact-card p {
  max-width: 540px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.about-contact-card .btn {
  flex: none;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* --------------------------------------------------------------------------
   Error
   -------------------------------------------------------------------------- */

.page-error main {
  padding: 56px 0 86px;
  background: var(--paper);
}

.error-message {
  max-width: 560px;
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.7;
}

.error-retry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--saffron-deep);
  font-size: 0.79rem;
  font-weight: 500;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 24px;
}

.error-help {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.error-help .text-link {
  font-size: inherit;
  overflow-wrap: anywhere;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--green-deep);
  color: #d8e4db;
}

.brand-light .brand-name {
  color: var(--paper);
}

.footer-brand > p {
  max-width: 330px;
  margin-top: 14px;
  color: #a9c0b2;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-brand .footer-hindi {
  margin-top: 10px;
  color: #e8c07b;
  font-size: 0.9rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 20px;
  border-top: 1px solid rgba(251, 247, 239, 0.12);
  color: #9db6a7;
  font-size: 0.8rem;
}

.footer-bottom-right {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */ @media (max-width: 1180px) {
  .filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .filter-submit-wrap {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 1120px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .browse-layout {
    grid-template-columns: 222px minmax(0, 1fr);
    gap: 24px;
  }

  .ad-layout {
    grid-template-columns: minmax(0, 1fr) 306px;
    gap: 22px;
  }

  .site-nav .nav-inner {
    padding-right: 8px;
  }
}

@media (max-width: 980px) {
  .nav-inner {
    flex-wrap: wrap;
    min-height: 0;
    padding-bottom: 2px;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .header-search {
    display: none;
  }

  .masthead-actions {
    margin-left: auto;
  }

  .search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-panel-q,
  .search-submit {
    grid-column: 1 / -1;
  }

  .ad-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ad-aside {
    position: static;
    display: block;
  }

}

@media (max-width: 860px) {
  .browse-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 52px;
  }

  .browse-main::before {
    display: none;
  }

  .browse-sidebar {
    position: static;
    gap: 14px;
  }

  .sidebar-heading {
    padding: 0 0 10px;
  }

  .sidebar-nav {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 9px 0 2px;
    scrollbar-width: none;
  }

  .sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .sidebar-nav {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent);
  }

  .sidebar-link {
    flex: none;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    font-size: 0.79rem;
    white-space: nowrap;
  }

  .sidebar-link.is-active {
    border-color: var(--ink);
    background: transparent;
  }

  .sidebar-all {
    margin: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-count {
    font-size: 0.66rem;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }


  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .container,
  .container-narrow {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav-inner {
    padding-top: 2px;
    padding-bottom: 4px;
  }

  .nav-inner a {
    line-height: 1.25;
  }

  .masthead-inner {
    min-height: 72px;
    gap: 12px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .masthead-post {
    padding: 9px 13px;
    font-size: 0.79rem;
  }

  .nav-inner a {
    padding: 10px 10px;
    font-size: 0.78rem;
  }

  .hero {
    padding: 38px 0 30px;
  }

  .hero-search-head h1 {
    font-size: clamp(2.35rem, 9.5vw, 3.3rem);
  }

  .hero-search-head p {
    font-size: 0.96rem;
  }

  .search-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    padding: 14px;
    margin-top: 28px;
  }

  .search-panel-q,
  .search-submit {
    grid-column: auto;
  }

  .search-submit {
    width: 100%;
  }

  .section {
    padding: 50px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
  }

  .section-head > .text-link,
  .section-head > .btn {
    margin-top: 2px;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .category-tile {
    gap: 10px;
    padding: 11px 0;
  }

  .category-name {
    font-size: 0.82rem;
  }

  .category-count {
    font-size: 0.66rem;
  }

  .category-more {
    font-size: 0.74rem;
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-search,
  .filter-submit-wrap {
    grid-column: 1 / -1;
  }

  .filter-submit-wrap {
    justify-content: flex-start;
  }

  .filter-grid > .filter-field {
    grid-column: 1 / -1;
  }


  .filter-active {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .results-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .page-numbers {
    order: -1;
    width: 100%;
    justify-content: center;
  }

  .field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-card {
    padding: 20px 0 0;
  }

  .form-card-head h2 {
    font-size: 1.28rem;
  }

  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .submit-row {
    flex-wrap: wrap;
  }

  .related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .related-section {
    padding-top: 36px;
    padding-bottom: 52px;
  }

  .flash {
    flex-wrap: wrap;
  }

  .page-verify main {
    padding: 32px 0 54px;
  }

  .code-input {
    font-size: 1.45rem;
    letter-spacing: 0.38em;
  }

  .about-hero {
    padding: 40px 0 34px;
  }

  .about-hero h1 {
    font-size: clamp(2.1rem, 8vw, 2.9rem);
  }

  .about-contact-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 24px 0;
  }

  .page-error main {
    padding: 36px 0 60px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-bottom: 20px;
  }

  .footer-bottom-right {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .brand-mark {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-size: 1.2rem;
  }

  .masthead-post {
    padding: 8px 11px;
    font-size: 0.74rem;
  }

  .category-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-panel-field input,
  .search-panel-field select {
    min-height: 44px;
  }

  .filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .submit-row .btn {
    width: 100%;
  }

  .code-input {
    font-size: 1.25rem;
    letter-spacing: 0.32em;
    padding-left: 12px;
  }

  .verify-links {
    flex-direction: column;
    gap: 8px;
  }

  .verify-links > span {
    display: none;
  }

  .verify-actions-center {
    flex-direction: column;
  }

  .verify-actions-center .btn {
    margin: 0;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Page-level and noticeboard elements
   -------------------------------------------------------------------------- */

.page-home .header-search,
.page-browse .header-search {
  display: none;
}

.page-home .masthead-actions,
.page-browse .masthead-actions {
  margin-left: auto;
}

.page-post .masthead-actions {
  display: none;
}

.related-type {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Contact details page is a ruled fallback page, not a centered card. */
.page-contact main {
  padding-bottom: 56px;
}

.contact-page-panel {
  max-width: 720px;
  margin: 0;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
}

.contact-page-panel h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.16;
  overflow-wrap: anywhere;
}

/* Verify is a left-aligned notice, not a centered card with a mail icon. */
.verify-panel {
  max-width: 560px;
  margin: 0;
  padding: 26px 0 0;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.verify-panel h1 {
  font-size: clamp(2rem, 4vw, 2.65rem);
  letter-spacing: -0.01em;
}

/* About is one reading sheet: no flag illustration, no feature grids, no bands. */
.about-hero .container,
.about-contact .container {
  max-width: 720px;
}

.about-reading > p {
  max-width: 720px;
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.7;
}

.about-reading > p strong {
  color: var(--ink);
}

.about-reading > .section-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.safety-list {
  max-width: 720px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.safety-list li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.65;
}

.safety-list strong {
  color: var(--ink);
}

.legal-kicker {
  margin-bottom: 9px;
  color: var(--saffron-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-transform: uppercase;
}

.legal-copy {
  max-width: 720px;
}

.legal-copy h3 {
  margin: 24px 0 7px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.03rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.legal-copy p,
.legal-copy li {
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.7;
}

.legal-copy p {
  margin-bottom: 11px;
}

.legal-copy ul {
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal-copy li + li {
  margin-top: 6px;
}

.legal-copy a {
  color: var(--saffron-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.legal-callout {
  margin: 22px 0 4px;
  padding: 15px 17px;
  border-left: 3px solid var(--saffron-deep);
  background: var(--saffron-soft);
}

.legal-callout p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
}

/* Error page is a ruled notice, not a centered card. */
.error-panel {
  max-width: 640px;
  margin: 0;
  padding: 26px 0 0;
  border: 0;
  border-top: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.error-panel h1 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

/* Footer is a colophon: brand on one side, one link row on the other. */
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  padding-top: 44px;
  padding-bottom: 32px;
}

.footer-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a {
  color: #d8e4db;
  font-size: 0.9rem;
  transition: color 0.15s ease;
  overflow-wrap: anywhere;
}

.footer-links a:hover {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 40px;
    padding-bottom: 28px;
  }
}

@media (max-width: 700px) {
  .footer-links {
    gap: 8px 14px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer-bottom-right {
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Movies: a weekly film bulletin in the noticeboard's own language
   -------------------------------------------------------------------------- */

.movies-home {
  padding-top: 0;
}

.movies-home-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.movies-home-copy {
  max-width: 720px;
}

.movies-home-copy h2 {
  font-size: clamp(1.55rem, 2.5vw, 1.95rem);
}

.movies-home-copy > p {
  max-width: 640px;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.movies-home-copy .movies-home-venues {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

.movies-home-link {
  flex: none;
  margin-bottom: 4px;
}

.page-movies main {
  padding-bottom: 12px;
}

.movies-page-head > div {
  min-width: 0;
}

.movies-week {
  flex: none;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.movies-notice {
  margin: 0 0 22px;
  padding: 12px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-size: 0.85rem;
  line-height: 1.6;
}

.movies-notice strong {
  color: var(--ink);
}

.movies-notice-demo,
.movies-notice-demo strong {
  color: var(--saffron-deep);
}

.movies-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding-bottom: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.movies-meta strong {
  color: var(--ink);
  font-weight: 700;
}

.movies-language,
.movies-theater-index {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.movies-theater-index {
  border-bottom: 1px solid var(--line-strong);
}

.movies-label {
  flex: 0 0 90px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.8;
  text-transform: uppercase;
}

.movies-language-links,
.movies-theater-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  min-width: 0;
  font-size: 0.86rem;
  line-height: 1.8;
}

.movies-language-link,
.movies-theater-links a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.movies-language-link:hover,
.movies-theater-links a:hover {
  color: var(--saffron-deep);
  text-decoration-color: currentColor;
}

.movies-language-link.is-active {
  color: var(--ink);
  font-weight: 700;
  text-decoration-color: var(--saffron);
}

.movies-empty {
  max-width: 700px;
  margin: 24px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.movies-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.movie-theater {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--ink);
  scroll-margin-top: 18px;
}

.movie-theater-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.movie-theater-head > div {
  min-width: 0;
}

.movie-theater-head h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.movie-theater-address {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.movie-theater-link {
  flex: none;
  margin-top: 4px;
  font-size: 0.8rem;
}

.movie-theater-empty {
  max-width: 640px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.movie-list {
  margin-top: 14px;
  border-top: 1px solid var(--line);
}

.movie-entry {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--line);
}

.movie-entry:last-child {
  border-bottom: 0;
}

.movie-poster-frame {
  position: relative;
  width: 92px;
  min-width: 92px;
}

.movie-poster-source {
  position: absolute;
  right: 3px;
  bottom: 3px;
  z-index: 1;
  max-width: calc(100% - 6px);
  padding: 2px 3px;
  border-radius: 2px;
  background: rgba(20, 80, 58, 0.92);
  color: #fff;
  font-size: 0.42rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  pointer-events: none;
}

.movie-poster-link {
  display: block;
}

.movie-poster {
  display: block;
  width: 92px;
  height: 138px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
}

.movie-plate[hidden],
.movie-poster[hidden] {
  display: none;
}

.movie-plate {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 92px;
  height: 138px;
  padding: 8px 7px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper-3);
  text-align: center;
}

.movie-plate-language {
  color: var(--saffron-deep);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.movie-plate-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.movie-plate-year {
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1;
}

.movie-entry-body {
  min-width: 0;
}

.movie-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 14px;
}

.movie-title {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.movie-language {
  color: var(--saffron-deep);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.movie-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.movie-plot {
  max-width: 66ch;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.58;
}

.movie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 16px;
  margin-top: 8px;
}

.movie-actions .text-link {
  font-size: 0.8rem;
}

.showtime-groups {
  margin-top: 12px;
}

.showtime-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 5px 0;
  border-top: 1px dotted var(--line);
}

.showtime-row:first-child {
  border-top: 1px solid var(--line);
}

.showtime-date {
  color: var(--muted);
  font-size: 0.71rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
  text-transform: uppercase;
}

.showtime-times {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  min-width: 0;
}

.showtime-time {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: -2px -4px;
  padding: 2px 4px;
  gap: 4px;
  color: var(--ink-2);
  font-size: 0.84rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

@media (pointer: coarse) {
  a.showtime-time {
    min-height: 44px;
  }
}

a.showtime-time {
  text-decoration: underline;
  text-decoration-color: rgba(156, 74, 13, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a.showtime-time:hover {
  color: var(--saffron-deep);
  text-decoration-color: currentColor;
}

.showtime-format {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.movies-closed {
  margin-top: 34px;
  padding: 14px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.movies-closed p {
  max-width: 780px;
}

.movies-closed strong {
  color: var(--ink-2);
}

.movies-source {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.movies-source p + p {
  margin-top: 4px;
}

.movies-source a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.movies-source a:hover {
  color: var(--saffron-deep);
}

@media (max-width: 860px) {
  .movies-home-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

}

@media (max-width: 700px) {
  .movies-page-head {
    gap: 12px;
  }

  .movies-week {
    margin-bottom: 0;
    white-space: normal;
  }

  .movies-language,
  .movies-theater-index {
    flex-direction: column;
    gap: 2px;
    padding: 10px 0;
  }

  .movies-label {
    flex: none;
  }

  .movie-theater {
    margin-top: 24px;
    padding-top: 24px;
  }

  .movie-theater-head {
    flex-direction: column;
    gap: 6px;
  }

  .movie-theater-link {
    margin-top: 0;
  }

  .movie-entry {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0 20px;
  }

  .movie-poster-frame {
    width: 72px;
    min-width: 72px;
  }

  .movie-poster {
    width: 72px;
    height: 108px;
  }

  .movie-poster-source {
    right: 2px;
    bottom: 2px;
    padding: 1px 2px;
    font-size: 0.38rem;
  }

  .movie-plate {
    width: 72px;
    height: 108px;
    padding: 6px 5px;
  }

  .movie-plate-title {
    -webkit-line-clamp: 4;
    font-size: 0.66rem;
  }

  .movie-plate-language {
    font-size: 0.5rem;
  }

  .movie-plate-year {
    font-size: 0.54rem;
  }

  .showtime-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 6px 0;
  }

  .movies-source {
    margin-top: 24px;
  }
}

/* --------------------------------------------------------------------------
   News: a community reading desk in the noticeboard's own language
   -------------------------------------------------------------------------- */

.page-news main {
  padding-bottom: 16px;
}

.news-page-head {
  align-items: flex-start;
}

.news-page-head > div:first-child {
  min-width: 0;
}

.news-desk-meta {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 3px;
  min-width: 172px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: right;
}

.news-desk-label {
  color: var(--saffron-deep);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-desk-meta time {
  color: var(--ink-2);
}

.news-status {
  margin: 0 0 20px;
  padding: 10px 0;
  border-top: 1px solid var(--saffron-line);
  border-bottom: 1px solid var(--saffron-line);
  color: var(--ink-2);
  font-size: 0.84rem;
  line-height: 1.6;
}

.news-status strong {
  color: var(--ink);
}

.news-status-error {
  border-color: var(--danger-line);
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 26px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
}

.news-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  color: var(--ink-2);
  font-size: 0.89rem;
  line-height: 1.4;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.news-tab:hover {
  color: var(--saffron-deep);
}

.news-tab.is-active {
  border-color: var(--saffron);
  color: var(--ink);
  font-weight: 700;
}

.news-tab-count {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.news-lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
  padding: 0 0 30px;
  border-bottom: 1px solid var(--ink);
}

.news-image-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.news-lead-image {
  aspect-ratio: 16 / 10;
}

.news-lead-story.news-lead--no-image {
  grid-template-columns: minmax(0, 1fr);
}

.news-lead--no-image .news-lead-image {
  display: none;
}

.news-lead--no-image .news-lead-copy {
  max-width: 760px;
}

.news-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-image[hidden] {
  display: none;
}

.news-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 12px;
  background: var(--paper-3);
  color: var(--muted);
  text-align: center;
}

.news-image-fallback[hidden] {
  display: none;
}

.news-fallback-mark {
  color: var(--green);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1;
}

.news-fallback-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-lead-copy {
  min-width: 0;
  padding-top: 2px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.news-source {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid var(--saffron-line);
  background: var(--saffron-soft);
  color: var(--saffron-deep);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.news-meta time {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.news-lead-title {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3.1vw, 2.75rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.news-lead-title a:hover,
.news-item-copy h3 a:hover {
  color: var(--saffron-deep);
}

.news-lead-snippet {
  max-width: 60ch;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.62;
}

.news-read-link {
  margin-top: 16px;
  font-size: 0.86rem;
}

.news-feed {
  padding-top: 26px;
}

.news-feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}

.news-feed-head h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.news-feed-head p {
  color: var(--muted);
  font-size: 0.75rem;
  text-align: right;
}

.news-item {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: 0;
}

.news-item-image {
  align-self: start;
  aspect-ratio: 4 / 3;
}

.news-item-copy {
  min-width: 0;
}

.news-item-copy h3 {
  margin-top: 8px;
  overflow-wrap: anywhere;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.32;
}

.news-item-copy > p {
  max-width: 70ch;
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.88rem;
  line-height: 1.58;
}

.news-empty {
  max-width: 680px;
  padding: 26px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.news-empty h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.news-empty p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.6;
}

.news-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.news-source-list a {
  color: var(--saffron-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-empty-line {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.news-colophon {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.news-colophon p + p {
  margin-top: 5px;
}

.news-colophon a {
  color: var(--saffron-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Visa Bulletin: a ruled reference sheet with a working checker
   -------------------------------------------------------------------------- */

.page-visa main {
  padding-bottom: 16px;
}

.visa-page-head {
  align-items: flex-start;
}

.visa-stamp {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 2px;
  min-width: 190px;
  padding-top: 3px;
  text-align: right;
}

.visa-stamp-label {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.visa-stamp strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
}

.visa-stamp .text-link {
  justify-content: flex-end;
  font-size: 0.76rem;
}

.visa-status {
  margin: 0 0 22px;
  padding: 10px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-size: 0.84rem;
  line-height: 1.6;
}

.visa-status strong {
  color: var(--ink);
}

.visa-status-error {
  border-color: var(--danger-line);
}

.priority-checker {
  margin: 0 0 34px;
  padding: 22px 0 24px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.priority-checker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.priority-checker-head > div {
  min-width: 0;
}

.priority-checker-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
}

.priority-checker-head p {
  max-width: 650px;
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.priority-checker-head .priority-checker-note {
  flex: 0 1 260px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.55;
  text-align: right;
}

.priority-form {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) auto;
  gap: 16px;
  align-items: end;
  margin-top: 20px;
}

.priority-form .field > label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.priority-form input,
.priority-form select {
  min-height: 44px;
  background-color: var(--white);
}

.priority-submit-wrap .btn {
  min-height: 44px;
}

.priority-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.priority-prompt,
.priority-error,
.priority-result-heading {
  grid-column: 1 / -1;
}

.priority-prompt,
.priority-error {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.priority-error {
  color: var(--danger);
  font-weight: 600;
}

.priority-result-heading {
  margin-bottom: 12px;
  color: var(--saffron-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.priority-outcome {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 16px 0 2px;
  border-top: 1px solid var(--line-strong);
}

.priority-outcome-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.priority-outcome-state {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.15;
}

.priority-outcome-state.state-current {
  color: var(--green);
}

.priority-outcome-state.state-waiting {
  color: var(--saffron-deep);
}

.priority-outcome-state.state-unavailable {
  color: var(--danger);
}

.priority-outcome-state.state-unknown {
  color: var(--muted);
}

.priority-outcome-copy {
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.55;
}

.priority-outcome-detail {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.priority-outcome-note {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dotted var(--line);
  color: var(--muted-2);
  font-size: 0.72rem;
  line-height: 1.5;
}

.priority-noscript {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8rem;
}

.visa-charts {
  margin-top: 6px;
}

.visa-charts-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}

.visa-charts-head h2 {
  font-size: clamp(1.55rem, 2.6vw, 2rem);
}

.visa-charts-head p {
  max-width: 680px;
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.visa-charts-head .visa-charts-meta {
  flex: none;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: right;
}

.visa-chart {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.visa-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
}

.visa-chart-head h3 {
  font-size: 1.35rem;
}

.visa-chart-head p {
  max-width: 570px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: right;
}

.visa-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-strong);
}

.visa-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.visa-table th,
.visa-table td {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.visa-table thead th {
  padding-top: 8px;
  padding-bottom: 8px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.visa-table .visa-group-row th {
  padding-top: 13px;
  padding-bottom: 9px;
  border-top: 0;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visa-table tbody tr:not(.visa-group-row):hover {
  background: #fffaf2;
}

.visa-category {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.visa-category-name {
  display: block;
  max-width: 280px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.visa-cutoff {
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.visa-cutoff.status-current {
  color: var(--green);
}

.visa-cutoff.status-unavailable {
  color: var(--danger);
}

.visa-cutoff.status-unknown {
  color: var(--muted);
}

.visa-movement {
  display: inline-block;
  max-width: 190px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.visa-movement.movement-advanced {
  color: var(--green);
}

.visa-movement.movement-retrogressed {
  color: var(--danger);
}

.visa-movement.movement-none {
  color: var(--muted-2);
}

.visa-reading {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.visa-reading h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}

.visa-reading-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 18px;
}

.visa-reading-grid > div {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.visa-reading-grid h3 {
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.4;
}

.visa-reading-grid p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.82rem;
  line-height: 1.62;
}

.visa-reading-grid a {
  color: var(--saffron-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.visa-source {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.visa-source p + p {
  margin-top: 5px;
}

.visa-source a {
  color: var(--saffron-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 960px) {
  .news-lead-story {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 22px;
  }

  .priority-checker-head {
    flex-direction: column;
    gap: 8px;
  }

  .priority-checker-head .priority-checker-note {
    flex: none;
    max-width: 600px;
    margin-top: 0;
    text-align: left;
  }

  .priority-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .priority-submit-wrap {
    grid-column: 1 / -1;
  }

  .priority-submit-wrap .btn {
    width: auto;
  }

  .visa-charts-head {
    flex-direction: column;
    gap: 8px;
  }

  .visa-charts-head .visa-charts-meta {
    margin-top: 0;
    text-align: left;
  }

  .visa-reading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }
}

@media (max-width: 700px) {
  .news-desk-meta {
    min-width: 0;
    text-align: left;
  }

  .news-tabs {
    gap: 0 18px;
  }

  .news-tab {
    flex: none;
    white-space: nowrap;
  }

  .news-lead-story {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 24px;
  }

  .news-lead-title {
    font-size: clamp(1.7rem, 7vw, 2.35rem);
  }

  .news-item {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    padding: 15px 0;
  }

  .news-item-copy h3 {
    font-size: 1rem;
  }

  .news-item-copy > p {
    font-size: 0.82rem;
  }

  .news-feed-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .news-feed-head p {
    text-align: left;
  }

  .visa-stamp {
    min-width: 0;
    text-align: left;
  }

  .visa-stamp .text-link {
    justify-content: flex-start;
  }

  .priority-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .priority-submit-wrap .btn {
    width: 100%;
  }

  .visa-table-wrap {
    overflow: visible;
    border-bottom: 0;
  }

  .visa-table {
    display: block;
    min-width: 0;
  }

  .visa-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .visa-table tbody {
    display: block;
  }

  .visa-table tr.visa-group-row,
  .visa-table tbody tr:not(.visa-group-row) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 14px;
    align-items: baseline;
    padding: 11px 0;
    border-top: 1px solid var(--line);
  }

  .visa-table .visa-group-row th {
    display: block;
    grid-column: 1 / -1;
    padding: 9px 10px;
    border-top: 1px solid var(--line-strong);
  }

  .visa-table td {
    display: block;
    padding: 0;
    border: 0;
  }

  .visa-table td:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .visa-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    white-space: nowrap;
  }

  .visa-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }

  .visa-table td:nth-child(3)::before {
    content: "Since last month: ";
    color: var(--muted-2);
    font-size: 0.64rem;
    font-weight: 400;
    letter-spacing: 0.03em;
  }

  .visa-category-name {
    max-width: 230px;
  }

  .priority-result {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .priority-outcome + .priority-outcome {
    margin-top: 14px;
  }

  .visa-chart-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .visa-chart-head p {
    text-align: left;
  }

  .visa-reading-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .visa-reading-grid > div + div {
    margin-top: 14px;
  }
}

@media (max-width: 460px) {
  .news-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .news-source {
    font-size: 0.58rem;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link,
  .priority-checker {
    display: none !important;
  }

  .visa-table-wrap {
    overflow: visible;
  }

  .visa-table {
    min-width: 0;
  }
}

/* Compact site menu on phones. site.js owns the collapsed state; without
   JavaScript the button stays hidden and the full navigation remains usable. */
.nav-toggle-label {
  display: none;
}

@media (max-width: 700px) {
  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--card);
    color: var(--green);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
  }

  .nav-toggle-label[hidden] {
    display: none !important;
  }

  .nav-toggle-label .icon {
    width: 15px;
    height: 15px;
    transform: rotate(90deg);
    transition: transform 0.15s ease;
  }

  .nav-toggle-label:focus-visible {
    outline: 2px solid var(--saffron-deep);
    outline-offset: -3px;
  }

  .site-nav[data-collapsed="true"] {
    display: none;
  }

  .nav-toggle-label[aria-expanded="true"] .icon {
    transform: rotate(-90deg);
  }

  .nav-inner a {
    min-height: 44px;
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: 0.9rem;
  }

  .masthead-post {
    min-height: 44px;
    padding: 10px 15px;
    font-size: 0.84rem;
  }
}
