/* browsepantrysale.com — homepage, header and footer styles (shared by subpages) */
:root {
  /* palette from images/logo.png: dusty blue #88A8B8, sand #E2BE84, tan #B89868 */
  --ink: #1F2B32;
  --muted: #4D5C65;
  --blue: #88A8B8;
  --blue-deep: #35596B;
  --blue-dark: #284656;
  --blue-tint: #EEF3F6;
  --sand: #E2BE84;
  --sand-tint: #FBF6EE;
  --tan-text: #7A5A2C;
  --line: #DAE2E7;
  --paper: #FFFFFF;
  --surface: #F5F7F8;
  --head: "Sofia Sans Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 8px;
}

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

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

figure {
  margin: 0;
}

a {
  color: var(--blue-deep);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue-dark);
}

h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--ink);
  margin: 0 0 .5em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.3rem);
}

h3 {
  font-size: 1.3rem;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
}

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

.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--blue-deep);
  color: #FFFFFF;
  font-weight: 600;
  border-radius: var(--r);
}

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

:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Header: till-receipt strip ---------- */
.site-header {
  position: relative;
  z-index: 2;
  /* draws a hairline along the torn edge of the masked strip below */
  filter: drop-shadow(0 1px 0 #C3CED5);
}

.receipt {
  --tooth: 14px;
  --tooth-h: 7px;
  background: var(--paper);
  border-top: 3px solid var(--sand);
  padding-bottom: var(--tooth-h);
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth-h)) no-repeat,
    conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / var(--tooth) var(--tooth-h) repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth-h)) no-repeat,
    conic-gradient(from -45deg at 50% 100%, #000 90deg, #0000 0) bottom / var(--tooth) var(--tooth-h) repeat-x;
}

.head-row {
  display: flex;
  align-items: center;
  gap: 8px 28px;
  padding-top: 16px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  flex: none;
}

.brand img {
  height: 44px;
  width: auto;
}

.head-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  counter-reset: line;
  font-variant-numeric: tabular-nums;
}

.head-nav a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ink);
  text-decoration: none;
  font-size: .94rem;
  font-weight: 500;
  padding: 8px 0;
  counter-increment: line;
}

.head-nav a::before {
  content: none;
}

.head-nav a:hover {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.head-leader {
  flex: 1 1 24px;
  min-width: 24px;
  height: 4px;
  align-self: center;
  margin-top: 6px;
  background: radial-gradient(circle, #8C9AA3 1px, transparent 1.4px) 0 50% / 7px 4px repeat-x;
}

.head-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  min-height: 44px;
  color: var(--blue-deep);
  font-size: .97rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}

.head-cta:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.head-ext {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 879px) {
  .head-row {
    display: grid;
    grid-template-columns: auto minmax(16px, 1fr) auto;
    grid-template-areas:
      "brand leader cta"
      "nav nav nav";
    gap: 6px 12px;
    padding-top: 12px;
    padding-bottom: 8px;
  }

  .brand { grid-area: brand; }
  .head-leader { grid-area: leader; min-width: 0; margin-top: 4px; }
  .head-cta { grid-area: cta; font-size: .9rem; gap: 5px; }

  .brand img {
    height: 36px;
  }

  .head-nav {
    grid-area: nav;
    gap: 0 18px;
    padding-top: 4px;
    border-top: 1px dashed var(--line);
  }

  .head-nav a {
    font-size: .88rem;
    padding: 9px 0;
    gap: 5px;
  }
}

@media (max-width: 380px) {
  .brand img {
    height: 31px;
  }

  .head-cta {
    font-size: .85rem;
  }

  .head-nav {
    gap: 0 14px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--r);
  background: var(--blue-deep);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  background: var(--blue-dark);
  color: #FFFFFF;
}

.btn .ico {
  width: 17px;
  height: 17px;
}

.text-link {
  color: var(--blue-deep);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 5vw, 56px);
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  line-height: 1.04;
  max-width: 14em;
  margin-bottom: 20px;
}

.hero-sub {
  max-width: 36em;
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

/* Example fare card */
.fare-card {
  width: 100%;
  max-width: 440px;
  justify-self: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px 18px;
}

.fare-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.fare-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--blue-tint);
  color: var(--blue-deep);
  flex: none;
}

.fare-title {
  display: block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
}

.fare-meta {
  display: block;
  font-size: .86rem;
  color: var(--muted);
}

.fare-rows {
  margin: 0;
}

.fare-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}

.fare-row dt {
  color: var(--ink);
}

.fare-row dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}

.fare-tag {
  display: block;
  font-size: .8rem;
  color: var(--tan-text);
}

.fare-base dd {
  font-weight: 600;
}

.fare-total {
  border-bottom: 0;
  border-top: 2px solid var(--ink);
  margin-top: 6px;
  padding-top: 14px;
}

.fare-total dt,
.fare-total dd {
  font-weight: 700;
  font-size: 1.12rem;
}

.fare-note {
  margin: 10px 0 0;
  font-size: .82rem;
  color: var(--muted);
}

/* ---------- Section tiles ---------- */
.tiles {
  padding-bottom: clamp(48px, 7vw, 80px);
}

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

.tile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.tile .ico {
  width: 28px;
  height: 28px;
  stroke-width: 1.3;
  color: var(--blue-deep);
}

.tile:hover {
  border-color: var(--blue);
  background: var(--blue-tint);
  color: var(--ink);
}

/* ---------- How it works ---------- */
.how {
  padding: clamp(48px, 7vw, 80px) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.how h2 {
  max-width: 20em;
  margin-bottom: 32px;
}

.how-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
  counter-reset: step;
}

.how-list li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
}

.how-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--blue-deep);
  background: var(--paper);
}

.how-list h3 {
  margin-bottom: 6px;
}

.how-list p {
  margin: 0;
  color: var(--muted);
  max-width: 34em;
}

/* ---------- Full-cost table ---------- */
.check {
  padding: clamp(56px, 8vw, 96px) 0;
}

.check-head {
  max-width: 40em;
  margin-bottom: 28px;
}

.check-head p {
  color: var(--muted);
  margin: 0;
}

.table-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.check-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .98rem;
}

.check-table thead th {
  background: var(--sand-tint);
  border-bottom: 1px solid #E8D9BF;
  font-family: var(--head);
  font-size: 1.08rem;
  font-weight: 700;
  text-align: left;
  vertical-align: middle;
  padding: 16px 20px;
}

.th-in {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.check-table .ico {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.ico.miss {
  color: #9A5B3A;
}

.ico.got {
  color: var(--blue-deep);
}

.check-table tbody th,
.check-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.check-table tbody tr:first-child th,
.check-table tbody tr:first-child td {
  border-top: 0;
}

.check-table tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.check-table td {
  color: var(--muted);
}

.check-table td:last-child {
  color: var(--ink);
  background: #F8FAFB;
}

/* ---------- Before you book (article rows) ---------- */
.guides {
  padding: 0 0 clamp(56px, 8vw, 96px);
}

.guides h2 {
  margin-bottom: 24px;
}

.guide-list {
  display: grid;
}

.guide {
  display: grid;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.guide:last-child {
  border-bottom: 1px solid var(--line);
}

.guide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
}

.guide h3 {
  margin-bottom: 8px;
}

.guide p {
  color: var(--muted);
  max-width: 38em;
  margin-bottom: 16px;
}

.more {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
}

.more:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
}

/* ---------- FAQ ---------- */
.faq {
  padding: clamp(56px, 8vw, 96px) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.faq-grid {
  display: grid;
  gap: 20px;
}

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

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .ico {
  color: var(--blue-deep);
  transition: transform .2s ease;
}

.faq details[open] summary .ico {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 40em;
}

/* ---------- Closing ---------- */
.closing {
  padding: clamp(48px, 7vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.closing-row {
  display: grid;
  gap: 20px;
  align-items: center;
}

.closing h2 {
  margin: 0;
  max-width: 16em;
}

.closing-note {
  margin: 12px 0 0;
  font-size: .88rem;
  color: var(--muted);
  max-width: 30em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: .94rem;
}

.footer-top {
  display: grid;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 36px;
}

.footer-id .brand {
  margin-bottom: 16px;
}

.footer-id .brand img {
  height: 40px;
}

.footer-note {
  color: var(--muted);
  max-width: 34em;
  margin-bottom: .7em;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-head {
  font-weight: 600;
  margin: 0 0 4px;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  padding: 2px 0;
}

.footer-col a:hover {
  color: var(--blue-deep);
  text-decoration: underline;
}

.footer-base {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}

.footer-base-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  padding-bottom: 24px;
}

.footer-base p {
  margin: 0;
}

/* ---------- Small screens ---------- */
@media (max-width: 719px) {
  .guide {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    padding: 20px 0;
  }

  .guide img {
    aspect-ratio: 1 / 1;
  }

  .guide h3 {
    font-size: 1.15rem;
  }

  .guide p {
    font-size: .95rem;
  }

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

  .check-table thead {
    display: none;
  }

  .check-table,
  .check-table tbody,
  .check-table tr,
  .check-table th,
  .check-table td {
    display: block;
    width: 100%;
  }

  .check-table tbody tr {
    padding: 16px 18px;
    border-top: 1px solid var(--line);
  }

  .check-table tbody tr:first-child {
    border-top: 0;
  }

  .check-table tbody th,
  .check-table td {
    padding: 0;
    border: 0;
    white-space: normal;
  }

  .check-table tbody th {
    font-family: var(--head);
    font-size: 1.12rem;
    margin-bottom: 8px;
  }

  .check-table td {
    padding: 6px 0;
  }

  .check-table td::before {
    content: attr(data-label);
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: var(--tan-text);
  }

  .check-table td:last-child {
    background: none;
  }
}

@media (min-width: 720px) {
  .tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .how-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .how-list li {
    padding-left: 0;
    padding-top: 52px;
  }

  .guide {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

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

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

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 64px;
  }

  .fare-card {
    justify-self: end;
  }

  .faq-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 48px;
  }
}

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

  .faq summary .ico {
    transition: none;
  }
}

/* hdr6:start */
/* Header v6: till receipt with the logo printed in the centre; short line
   items on the left, a dotted leader running to the offer on the right. */
.bp-head {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 1px 0 #C3CED5);
}

.bp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "nav brand total";
  align-items: center;
  column-gap: 36px;
  min-height: 82px;
  padding-top: 10px;
  padding-bottom: 8px;
}

.bp-brand {
  grid-area: brand;
  display: inline-flex;
}

.bp-brand img {
  width: auto;
  height: 42px;
}

.bp-nav {
  grid-area: nav;
  display: flex;
  gap: 26px;
  font-family: var(--head);
}

.bp-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 4px;
}

.bp-nav a:hover {
  color: var(--blue-deep);
  text-decoration-line: underline;
}

.bp-total {
  grid-area: total;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bp-leader {
  flex: 1 1 auto;
  min-width: 18px;
  height: 4px;
  margin-top: 4px;
  background: radial-gradient(circle, #8C9AA3 1px, transparent 1.4px) 0 50% / 7px 4px repeat-x;
}

.bp-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  color: var(--blue-deep);
  font-family: var(--head);
  font-size: 1.06rem;
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 4px;
}

.bp-cta svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bp-cta:hover {
  color: var(--blue-dark);
  text-decoration-line: underline;
}

@media (max-width: 760px) {
  .bp-row {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand brand"
      "nav total";
    column-gap: 0;
    row-gap: 6px;
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 4px;
  }

  .bp-brand {
    justify-self: center;
    padding-bottom: 8px;
  }

  .bp-brand img { height: 34px; }

  .bp-nav {
    gap: 14px;
    padding-top: 2px;
  }

  .bp-nav a,
  .bp-cta { font-size: .95rem; }

  .bp-nav,
  .bp-total {
    border-top: 1px dashed var(--line);
  }

  .bp-total { gap: 6px; padding-left: 10px; }
  .bp-leader { min-width: 10px; }
}

@media (max-width: 370px) {
  .bp-nav { gap: 11px; }
  .bp-nav a,
  .bp-cta { font-size: .9rem; }
}
/* hdr6:end */

/* blog:start */
/* Header: fifth nav item (Blog) needs a little less spacing on small screens. */
@media (max-width: 760px) {
  .bp-nav { gap: 12px; }
}

@media (max-width: 400px) {
  .bp-nav { gap: 9px; }
  .bp-nav a,
  .bp-cta { font-size: .86rem; }
}

/* Homepage "From the blog": latest three posts as receipt line items. */
.latest {
  padding: 0 0 clamp(56px, 8vw, 96px);
}

.latest-grid {
  display: grid;
  gap: 18px 56px;
}

.latest-head h2 {
  margin-bottom: 8px;
}

.latest-head p {
  color: var(--muted);
  max-width: 24em;
  margin-bottom: 10px;
}

.latest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}

.latest-list li {
  border-bottom: 1px dashed #C3CED5;
}

.latest-item {
  display: block;
  padding: 16px 0 15px;
  color: var(--ink);
  text-decoration: none;
}

.latest-label {
  display: block;
  margin-bottom: 2px;
  color: var(--tan-text);
  font-size: .82rem;
  font-weight: 600;
}

.latest-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.latest-title {
  font-family: var(--head);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.25;
}

.latest-dots {
  flex: 1 1 24px;
  min-width: 24px;
  height: 4px;
  background: radial-gradient(circle, #8C9AA3 1px, transparent 1.4px) 0 50% / 7px 4px repeat-x;
}

.latest-min {
  flex: none;
  color: var(--muted);
  font-size: .9rem;
  font-variant-numeric: tabular-nums;
}

.latest-item:hover .latest-title {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 559px) {
  .latest-dots { display: none; }
  .latest-line { justify-content: space-between; }
}

@media (min-width: 900px) {
  .latest-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
/* blog:end */
