/* Travelicious Nepal
   Palette: Himalayan ink, Newar brick, prayer-flag saffron, valley mist. */
:root {
  --ink: #1f2433;
  --ink-2: #4e5566;
  --paper: #ffffff;
  --mist: #eef1f3;
  --line: #d8dce1;
  --brick: #a1402a;
  --brick-d: #7e2f1d;
  --saffron: #f0a202;
  --flag-blue: #2b5ba8;
  --flag-red: #c8322b;
  --flag-green: #2e8b57;
  --display: "Rozha One", "Noto Serif SC", Georgia, serif;
  --body:
    "Hind", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
  --gap: clamp(1rem, 3vw, 2rem);
  --r: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
}
.lang-zh body,
body.lang-zh {
  line-height: 1.85;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--brick);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
a:hover {
  color: var(--brick-d);
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 2px;
  border-radius: 2px;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}
.lang-zh h1,
.lang-zh h2,
.lang-zh h3,
.lang-zh h4 {
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}
h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}
h3 {
  font-size: 1.3rem;
}
p {
  margin: 0 0 1em;
}
.wrap {
  width: min(100% - 2 * var(--gap), var(--wrap));
  margin-inline: auto;
}
.muted {
  color: var(--ink-2);
}
.small {
  font-size: 0.92rem;
}
.visually-hidden,
.trap {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 50;
}
.skip:focus {
  left: 1rem;
}

/* Prayer-flag line: the brand's one flourish */
.flagline {
  display: flex;
  height: 5px;
}
.flagline i {
  flex: 1;
}
.flagline i:nth-child(1) {
  background: var(--flag-blue);
}
.flagline i:nth-child(2) {
  background: #e9ecef;
}
.flagline i:nth-child(3) {
  background: var(--flag-red);
}
.flagline i:nth-child(4) {
  background: var(--flag-green);
}
.flagline i:nth-child(5) {
  background: var(--saffron);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.9rem;
  padding: 0.55rem 1.3rem;
  background: var(--brick);
  color: #fff;
  border: 2px solid var(--brick);
  border-radius: var(--r);
  font: 600 1rem/1.2 var(--body);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--brick-d);
  border-color: var(--brick-d);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn-small {
  min-height: 2.4rem;
  padding: 0.35rem 1rem;
  font-size: 0.95rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.more {
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover {
  color: var(--ink);
}
.logo-mark {
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: "Rozha One", Georgia, serif;
  font-size: 1.45rem;
}
.brand-sub {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brick);
  margin-top: 0.2rem;
}
.nav-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}
.nav-cta {
  white-space: nowrap;
}
.primary ul,
.langs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.primary ul {
  gap: 0.15rem;
}
.primary a {
  display: block;
  white-space: nowrap;
  padding: 0.5rem 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.primary a:hover {
  color: var(--brick);
}
.primary a[aria-current] {
  border-bottom-color: var(--saffron);
}
.nav-cta[aria-current] {
  background: var(--brick-d);
}
.langs ul {
  gap: 0.25rem;
}
.langs a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1;
}
.langs a:hover {
  border-color: var(--line);
}
.langs a[aria-current] {
  border-color: var(--ink);
  font-weight: 600;
}
.flag {
  width: 1.35rem;
  height: 0.9rem;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(31, 36, 51, 0.18);
  flex: none;
}
.site-header .langs span {
  display: none;
}
.site-header .langs a {
  padding: 0.45rem;
}
.menu-toggle {
  display: none;
}

@media (max-width: 76rem) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    min-height: 2.75rem;
    padding: 0.4rem 0.8rem;
    background: none;
    border: 1px solid var(--ink);
    border-radius: var(--r);
    font: 600 0.95rem var(--body);
    color: var(--ink);
    cursor: pointer;
  }
  .bars,
  .bars::before,
  .bars::after {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: currentColor;
    position: relative;
  }
  .bars::before,
  .bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .bars::before {
    top: -6px;
  }
  .bars::after {
    top: 6px;
  }
  .nav-panel {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem var(--gap) 1.5rem;
  }
  .nav-panel.open {
    display: flex;
  }
  .primary ul {
    flex-direction: column;
  }
  .primary a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
  .primary a[aria-current] {
    border-bottom-color: var(--line);
    box-shadow: inset 4px 0 0 var(--saffron);
    padding-left: 0.75rem;
  }
  .site-header .langs span {
    display: inline;
  }
  .site-header .langs a {
    padding: 0.5rem 0.6rem;
    border-color: var(--line);
  }
  .nav-cta {
    align-self: flex-start;
  }
}
.no-js .nav-panel {
  display: flex;
  position: static;
}
@media (max-width: 76rem) {
  .no-js .header-inner {
    flex-wrap: wrap;
  }
  .no-js .menu-toggle {
    display: none;
  }
  .no-js .nav-panel {
    width: 100%;
    padding-inline: 0;
    border: 0;
  }
}

/* Page heads */
.page-head {
  padding: clamp(1.5rem, 4vw, 3rem) 0 1.5rem;
}
.page-head .lead {
  max-width: 44rem;
}
.lead {
  font-size: 1.2rem;
  color: var(--ink-2);
}
.tagline {
  font-size: 1.15rem;
  color: var(--brick);
  font-weight: 500;
  margin-top: -0.25rem;
}
.crumbs ol {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.crumbs li + li::before {
  content: "/";
  margin-right: 0.35rem;
  color: var(--line);
}
.crumbs a {
  color: var(--ink-2);
}

/* Hero */
.hero {
  padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  max-width: 16ch;
}
.lang-zh .hero h1 {
  max-width: 13em;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
}
.hero .lead {
  max-width: 36rem;
}
.values {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.4rem;
  color: var(--ink-2);
  font-size: 0.98rem;
}
.values li {
  padding-left: 1.4rem;
  position: relative;
}
.values li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.7rem;
  height: 0.35rem;
  background: var(--saffron);
}
.hero-photos {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  aspect-ratio: 5 / 4;
}
.hp {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: var(--r);
}
.hp-1 {
  grid-row: 1 / 3;
}
@media (max-width: 52rem) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-photos {
    aspect-ratio: 16 / 10;
    order: -1;
  }
}

/* Bands and sections */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.section-tight {
  padding: 1.5rem 0 2.5rem;
}
.band {
  background: var(--mist);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.section-title {
  margin-bottom: 0.4rem;
}
.section-lead {
  color: var(--ink-2);
  max-width: 42rem;
  margin-bottom: 2rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
.band-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
}
@media (max-width: 52rem) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Day scale: the length of a trip, drawn to scale */
.dayscale {
  list-style: none;
  margin: 2.5rem 0 1rem;
  padding: 0;
  position: relative;
  height: 7rem;
}
.dayscale::before {
  content: "";
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  top: 1.6rem;
  height: 3px;
  background: var(--ink);
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px,
    transparent 2px 100%
  );
}
.dayscale li {
  position: absolute;
  top: 0;
  left: calc(1.6rem + (100% - 3.2rem) * var(--pos) / 100);
  transform: translateX(-50%);
}
.dayscale a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  text-align: center;
}
.dayscale .n {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--ink);
  font: 400 1.5rem/1 var(--display);
  padding-top: 0.15rem;
}
.dayscale .u {
  font-weight: 600;
  margin-top: 0.35rem;
  font-size: 0.95rem;
}
.dayscale .c {
  font-size: 0.82rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.dayscale a:hover .n,
.dayscale a[aria-current] .n {
  background: var(--saffron);
}
.dayscale a[aria-current] .u {
  color: var(--brick);
}
.page-head .dayscale {
  margin-top: 2rem;
}
@media (max-width: 44rem) {
  .dayscale {
    height: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 0.5rem;
  }
  .dayscale::before {
    display: none;
  }
  .dayscale li {
    position: static;
    transform: none;
    min-width: 0;
  }
  .dayscale .c {
    white-space: normal;
    font-size: 0.78rem;
    line-height: 1.3;
  }
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.75rem 1.25rem;
}
.cards-feature {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.card-img {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--mist);
  border-radius: var(--r);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-img img {
  transform: scale(1.03);
}
.card-body {
  display: block;
  padding-top: 0.7rem;
}
.card-title {
  display: block;
  font: 400 1.3rem/1.2 var(--display);
}
.lang-zh .card-title {
  font-weight: 700;
}
.card:hover .card-title {
  color: var(--brick);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.card-text {
  display: block;
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}
.card-big {
  grid-column: span 2;
  grid-row: span 2;
}
.card-big .card-img {
  aspect-ratio: auto;
  flex: 1;
  min-height: 16rem;
}
.card-big .card-title {
  font-size: 1.8rem;
}
@media (max-width: 60rem) {
  .cards-feature {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 34rem) {
  .cards-feature {
    grid-template-columns: 1fr;
  }
  .card-big {
    grid-column: auto;
    grid-row: auto;
  }
  .card-big .card-img {
    aspect-ratio: 3/2;
    min-height: 0;
  }
}

/* Topic lists */
.topic-list,
.topic-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}
.topic-list li + li {
  border-top: 1px solid var(--line);
}
.topic-list a,
.topic-grid a {
  display: block;
  padding: 0.9rem 0;
  text-decoration: none;
  color: var(--ink);
}
.topic-title {
  display: block;
  font: 400 1.25rem/1.3 var(--display);
}
.lang-zh .topic-title {
  font-weight: 700;
}
.topic-sum {
  display: block;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.topic-list a:hover .topic-title,
.topic-grid a:hover .topic-title {
  color: var(--brick);
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0 2rem;
  padding-bottom: 4rem;
}
.topic-grid li {
  border-top: 2px solid var(--ink);
}
.topic-grid a {
  padding: 1rem 0 1.5rem;
}

/* Destinations list */
.dest-row {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.dest-row-img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r);
}
.dest-row h3 {
  font-size: 1.7rem;
  margin-bottom: 0.35rem;
}
.dest-row h3 a {
  color: var(--ink);
  text-decoration: none;
}
.dest-row h3 a:hover {
  color: var(--brick);
}
@media (max-width: 44rem) {
  .dest-row {
    grid-template-columns: 1fr;
  }
}
.chips {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chips a {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
}
.chips a:hover {
  border-color: var(--brick);
  color: var(--brick);
}

/* Article layout */
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19rem;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: 4rem;
  align-items: start;
}
@media (max-width: 60rem) {
  .article-grid {
    grid-template-columns: 1fr;
  }
}
.prose {
  max-width: 42rem;
}
.lang-zh .prose {
  max-width: 40em;
}
.prose h2 {
  margin-top: 2.2rem;
}
.prose h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.3rem;
}
.prose ul,
.prose ol {
  padding-left: 1.3rem;
  margin: 0 0 1.25rem;
}
.prose li {
  margin-bottom: 0.4rem;
}
.prose li::marker {
  color: var(--brick);
}
.lead-photo {
  margin: 0 0 1.5rem;
}
.lead-photo img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--r);
}
.prose figure.wide {
  margin: 1.5rem 0;
}
.prose figure.wide img {
  width: 100%;
  border-radius: var(--r);
}
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.figures figure {
  margin: 0;
}
.figures img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
}
figcaption {
  font-size: 0.88rem;
  color: var(--ink-2);
  margin-top: 0.35rem;
}
.note {
  border-left: 4px solid var(--saffron);
  background: var(--mist);
  padding: 0.9rem 1.1rem;
}
.facts {
  margin: 0 0 1.5rem;
}
.facts > div {
  display: grid;
  grid-template-columns: minmax(8rem, 13rem) minmax(0, 1fr);
  gap: 0.25rem 1.25rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}
.facts > div:last-child {
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-weight: 600;
}
.facts dd {
  margin: 0;
  color: var(--ink-2);
}
@media (max-width: 36rem) {
  .facts > div {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.side {
  display: grid;
  gap: 1.25rem;
  position: sticky;
  top: 6rem;
}
@media (max-width: 60rem) {
  .side {
    position: static;
  }
}
.side-box {
  border-top: 3px solid var(--ink);
  padding-top: 1rem;
}
.side-title {
  font: 600 1rem/1.3 var(--body);
  margin-bottom: 0.6rem;
}
.side-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.side-list a {
  color: var(--ink);
  text-decoration: none;
}
.side-list a:hover,
.side-list a[aria-current] {
  color: var(--brick);
}
.side-list a[aria-current] {
  font-weight: 600;
}
.side-cta p {
  font: 400 1.2rem/1.3 var(--display);
}
.lang-zh .side-cta p {
  font-weight: 700;
}
.side-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.ticks li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.6rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.75rem;
  width: 0.8rem;
  height: 0.45rem;
  border-left: 2px solid var(--flag-green);
  border-bottom: 2px solid var(--flag-green);
  transform: rotate(-45deg);
}

/* Tours */
.toc ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.toc a {
  font-weight: 600;
}
.tour {
  padding: 2rem 0 2.5rem;
  border-top: 2px solid var(--ink);
  scroll-margin-top: 6rem;
}
.tour:first-child {
  padding-top: 0;
  border-top: 0;
}
.tour-head {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.tour-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
}
.tour-head p {
  color: var(--ink-2);
}
@media (max-width: 40rem) {
  .tour-head {
    grid-template-columns: 1fr;
  }
}
.day {
  margin: 0 0 1.25rem;
}
.day-title {
  font: 600 1rem/1.3 var(--body);
  color: var(--brick);
  margin: 0 0 0.4rem;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.steps li {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.3rem 0;
  position: relative;
}
.steps li::before {
  content: "";
  position: absolute;
  left: 4.9rem;
  top: 0.95rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--saffron);
}
.steps::before {
  content: "";
  position: absolute;
  left: 5.1rem;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 1px;
  background: var(--line);
}
.steps .time {
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.steps .what {
  padding-left: 0.9rem;
}
.tour-places {
  font-size: 0.95rem;
  margin-top: 1rem;
}

/* Forms */
.form {
  display: grid;
  gap: 1.1rem;
  max-width: 44rem;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.row-3 {
  grid-template-columns: 1.4fr 1fr 1fr;
}
@media (max-width: 40rem) {
  .row,
  .row-3 {
    grid-template-columns: 1fr;
  }
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.req {
  color: var(--brick);
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #9aa1ac;
  border-radius: var(--r);
  padding: 0.65rem 0.75rem;
  min-height: 2.9rem;
}
textarea {
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--saffron);
  outline-offset: 0;
  border-color: var(--ink);
}
[aria-invalid="true"] {
  border-color: var(--flag-red);
  border-width: 2px;
}
.field-error {
  color: #a12420;
  font-size: 0.92rem;
  margin: 0.3rem 0 0;
}
.form .btn {
  justify-self: start;
}
.notice {
  padding: 1rem 1.25rem;
  border-radius: var(--r);
  margin-bottom: 1.5rem;
}
.notice p:last-child {
  margin: 0;
}
.notice-ok {
  background: #e8f3ec;
  border-left: 4px solid var(--flag-green);
}
.notice-err {
  background: #fbeae8;
  border-left: 4px solid var(--flag-red);
}
.contact-dl {
  margin: 0 0 1rem;
}
.contact-dl div {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-dl dt {
  font-size: 0.85rem;
  color: var(--ink-2);
}
.contact-dl dd {
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d7dae1;
  padding: 3.5rem 0 1.5rem;
  margin-top: 0;
}
.site-footer a {
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 2rem;
}
@media (max-width: 52rem) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 34rem) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
.brand-footer {
  color: #fff;
  margin-bottom: 1rem;
}
.brand-footer:hover {
  color: #fff;
}
.brand-footer .brand-sub {
  color: var(--saffron);
}
.footer-h {
  font: 600 0.95rem/1.3 var(--body);
  color: #fff;
  margin-bottom: 0.75rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  padding: 0.2rem 0;
}
.footer-links a,
.footer-contact a {
  text-decoration: none;
}
.footer-links a:hover,
.footer-contact a:hover {
  text-decoration: underline;
}
.footer-contact {
  font-style: normal;
  line-height: 1.9;
}
.site-footer .langs ul {
  flex-direction: column;
  gap: 0.35rem;
}
.site-footer .langs a {
  color: #fff;
  padding: 0.25rem 0;
}
.site-footer .langs a[aria-current] {
  border-color: transparent;
  text-decoration: underline;
}
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  font-size: 0.88rem;
  color: #a9afbb;
}
.footer-base p {
  margin: 0;
}

.error-page {
  padding-bottom: 5rem;
}

@media print {
  .site-header,
  .site-footer,
  .flagline,
  .side,
  .actions,
  .btn {
    display: none !important;
  }
  .article-grid {
    display: block;
  }
}
/* ===== Purano site jasto orange background ===== */
:root {
  --brick: #7a2e03; /* link ra button ko rang: orange mathi padhna milne gadha khairo */
  --brick-d: #5a2102;
  --ink-2: #5e2c0a; /* halka text ko rang */
  --mist: #ffe3a8;
  --line: rgba(122, 46, 3, 0.22);
}

/* Mukhya background: image bichma, mathi bata, side-side dohorincha */
body {
  background: #fea501 url("../img/bg/mainbg.jpg") center top repeat-x;
}

/* Mathi ko menu bar halka orange */
.site-header {
  background: rgba(254, 165, 1, 0.94);
  border-bottom-color: rgba(122, 46, 3, 0.25);
}
.nav-panel {
  background: transparent;
}
@media (max-width: 76rem) {
  .nav-panel {
    background: #fea501;
  }
}

/* Section haru pardarshi, background dekhiyos */
.band {
  background: rgba(255, 255, 255, 0.22);
}
.dayscale .n {
  background: #fff6e0;
}
.values li::before {
  background: var(--brick);
}

/* Bhitra ka page ma lamo lekh seto box bhitra, padhna sajilo (purano site jastai) */
.article-grid,
.topic-grid {
  background: #fff;
  border-radius: 6px;
  padding: clamp(1rem, 3vw, 2.25rem);
  margin-bottom: 3rem;
}
.side {
  top: 6.5rem;
}
