/* ============================================
   VOWZA — SHARED STYLESHEET
   Every page on the site links to this one file
   (<link rel="stylesheet" href="style.css">) instead of
   repeating these rules in every HTML file. Change something
   here once, and it updates everywhere.

   COLOUR SYSTEM (redesign, Oct 2026)
   - Green  = actions: primary buttons, progress bars, links
   - Rose   = highlights: active tab underline, selected sidebar
              item, banners, notification counts
   - Status pills: light green (confirmed/paid), amber (due/
     awaiting), soft rose (quote/saved), red tint (declined)
   ============================================ */

:root {
  /* Base */
  --ivory: #FAF7F2;          /* page background (warm cream) */
  --surface: #FFFFFF;        /* cards and panels */
  --ink: #2A2522;            /* main text */
  --ink-soft: #6B635C;       /* supporting text */
  --border: #E4DED5;
  --border-strong: #D6CFC6;

  /* Green: actions */
  --evergreen: #2F4A3A;
  --evergreen-dark: #233829;
  --green-tint: #E4EDE6;

  /* Rose: highlights */
  --rose: #C97B76;
  --rose-dark: #8E4A45;
  --rose-tint: #F6E3E0;
  --blush: var(--rose-tint); /* older name, kept so existing pages still work */

  /* Status */
  --amber-tint: #FBF0D9;
  --amber-text: #8A6D1D;
  --red: #B4534A;
  --red-tint: #F6E4E2;
  --gold: #C9A227;           /* review stars */

  /* Shape and type */
  --radius: 8px;
  --radius-card: 12px;
  --radius-panel: 14px;
  --shadow-hover: 0 10px 24px rgba(42, 37, 34, 0.07);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Work Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
}
a { text-decoration: none; color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 640px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--evergreen); outline-offset: 2px; }
[hidden] { display: none !important; } /* hidden always wins over display rules */

/* ============================================
   HEADER + NAVIGATION
   Pages using layout.js have an empty <header class="site"
   data-active="..."> that layout.js fills in. Older pages
   still have their header written out, and these rules
   style both.
   ============================================ */
header.site { padding: 18px 0; border-bottom: 1px solid var(--border); background: var(--ivory); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wordmark { font-family: var(--font-serif); font-size: 30px; font-weight: 600; line-height: 1; }
.tagline { font-size: 13px; color: var(--ink-soft); }
nav a { font-size: 14px; margin-left: 22px; color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--ink); }
nav a.active { color: var(--ink); font-weight: 500; border-bottom-color: var(--rose); }

/* layout.js header: main nav in the middle, account links on the right */
.site-nav { display: flex; gap: 28px; margin-right: auto; margin-left: 48px; }
.site-nav a { margin-left: 0; }
.site-account { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.site-account a, .site-account button { color: var(--ink-soft); font: inherit; font-size: 14px; background: none; border: none; padding: 0; cursor: pointer; }
.site-account a:hover, .site-account button:hover { color: var(--ink); }

/* ============================================
   BUTTONS
   .btn.primary = green action (one main action per area)
   .btn.ghost   = white secondary button
   .btn.soft    = rose-tinted action, for gentle prompts
                  like "Reply" or "Pay now" inside a list
   ============================================ */
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.btn:hover { border-color: var(--evergreen); color: var(--evergreen); }
.btn.primary { background: var(--evergreen); border-color: var(--evergreen); color: #fff; }
.btn.primary:hover { background: var(--evergreen-dark); border-color: var(--evergreen-dark); color: #fff; }
button.btn { font: inherit; font-size: 14px; font-weight: 500; appearance: none; -webkit-appearance: none; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn.ghost:hover { border-color: var(--evergreen); color: var(--evergreen); }
.btn.ghost.saved { background: var(--rose-tint); border-color: var(--rose-tint); color: var(--rose-dark); }
.btn.soft { background: var(--rose-tint); border-color: var(--rose-tint); color: var(--rose-dark); }
.btn.soft:hover { border-color: var(--rose); color: var(--rose-dark); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.full { display: block; width: 100%; }
.btn.danger { border-color: var(--red); color: var(--red); background: var(--surface); }
.btn.danger:hover { background: var(--red); color: #fff; }

/* ============================================
   PAGE HEADINGS (used at the top of most pages)
   ============================================ */
.page-head { padding: 36px 0 24px; }
.page-head h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 46px;
  line-height: 1.05;
  margin: 0 0 8px;
}
.page-head p { color: var(--ink-soft); font-size: 16px; margin: 0; }

/* ============================================
   CARD GRID (supplier list, shortlist, mini-cards)
   ============================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  padding-bottom: 60px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card .photo { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block; }
.card .body { padding: 18px 18px 20px; }
.card .category { font-size: 12px; color: var(--ink-soft); }
.card h3 { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; margin: 4px 0 6px; }
.card .meta { font-size: 13px; color: var(--ink-soft); display: flex; justify-content: space-between; margin-bottom: 10px; }
.card .rating { font-size: 13px; color: var(--ink); margin-bottom: 4px; }
.card .rating .stars { color: var(--gold); }
.card .availability { font-size: 13px; display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.card .actions { display: flex; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--evergreen); display: inline-block; }
.dot.grey { background: #C9C2B5; }
.dot.gold { background: var(--gold); }

/* ============================================
   FILTER CHIPS
   ============================================ */
.filters { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 32px; }
.filters span { font-size: 13px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 20px; color: var(--ink-soft); background: #fff; cursor: pointer; user-select: none; transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease; }
.filters span:hover { border-color: var(--evergreen); color: var(--evergreen); }
.filters span.active { background: var(--evergreen); color: #fff; border-color: var(--evergreen); }
.filters span.active:hover { color: #fff; }

/* ============================================
   FORMS (wedding setup, booking request, onboarding, etc.)
   ============================================ */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 32px; max-width: 560px; margin: 0 auto; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Work Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--ivory);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--evergreen); outline-offset: 1px; }
table.admin input { width: 100%; padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px; font-family: inherit; font-size: 13px; background: var(--ivory); }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.checkbox-grid label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; }
.checkbox-grid input { width: auto; }

/* ============================================
   AUTH / START SCREEN (two big role-choice buttons)
   ============================================ */
.auth-choice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 520px; margin: 0 auto; }
.auth-choice a {
  display: block;
  padding: 34px 20px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.auth-choice a:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(43,38,32,0.08); border-color: var(--evergreen); }
.auth-choice .icon { font-size: 30px; margin-bottom: 12px; }
.auth-choice h3 { font-family: 'Cormorant Garamond', serif; font-size: 20px; margin: 0 0 6px; }
.auth-choice p { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ============================================
   STATUS BADGES (booking status, enquiries, payments)
   Add a dot with <span class="status-badge confirmed">
   <i class="dot"></i>Confirmed</span> if wanted.
   ============================================ */
.status-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 12px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.status-badge .dot { width: 7px; height: 7px; background: currentColor; }
.status-badge.confirmed, .status-badge.accepted, .status-badge.paid, .status-badge.available { background: var(--green-tint); color: var(--evergreen); }
.status-badge.pending, .status-badge.due, .status-badge.awaiting { background: var(--amber-tint); color: var(--amber-text); }
.status-badge.quote, .status-badge.saved, .status-badge.contacted { background: var(--rose-tint); color: var(--rose-dark); }
.status-badge.declined, .status-badge.unavailable, .status-badge.overdue { background: var(--red-tint); color: var(--red); }
.status-badge.neutral { background: #EEE9E2; color: var(--ink-soft); }

/* ============================================
   LIST ROWS (messages, enquiries, bookings — a repeating
   row pattern instead of a grid of cards)
   ============================================ */
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.list-row:last-child { border-bottom: none; }
.list-row .info h3 { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600; margin: 0 0 4px; }
.list-row .info p { font-size: 13px; color: var(--ink-soft); margin: 0; }
.list-row .actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ============================================
   DASHBOARD STAT TILES (supplier dashboard, admin dashboard)
   ============================================ */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 40px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px; text-align: center; }
.stat-card .number { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 600; color: var(--evergreen); }
.stat-card .label { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.quick-actions a {
  display: block;
  text-align: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}
.quick-actions a:hover { border-color: var(--evergreen); color: var(--evergreen); }

/* ============================================
   SECTIONS (used on the supplier profile & other detail pages)
   ============================================ */
section.block { padding: 36px 0; border-top: 1px solid var(--border); }
section.block h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 26px; margin: 0 0 18px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 120px; gap: 10px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

.services { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.services li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.services li:last-child { border-bottom: none; }

.package { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--border); }
.package:last-child { border-bottom: none; }
.package.recommended { border-left: 3px solid var(--evergreen); padding-left: 16px; }
.package .name { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; }
.package .desc { font-size: 13px; color: var(--ink-soft); margin-top: 4px; max-width: 460px; }
.package .price { font-size: 18px; font-weight: 600; white-space: nowrap; }

.avail-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 420px; }
.avail-grid div { aspect-ratio: 1; border-radius: 6px; background: #E9E3D8; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ink-soft); cursor: default; }
.avail-grid div.open { background: var(--evergreen); color: #fff; }
.avail-grid div.booked { background: #D8CFC0; color: #A79C87; }
.avail-grid div.unavailable { background: #F0EAE0; color: #C9C2B5; text-decoration: line-through; }
.legend { display: flex; gap: 20px; margin-top: 16px; font-size: 13px; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.review { padding: 20px 0; border-bottom: 1px solid var(--border); }
.review:last-child { border-bottom: none; }
.review .stars { color: var(--gold); font-size: 14px; margin-bottom: 6px; }
.review p { margin: 0 0 8px; font-size: 15px; line-height: 1.55; }
.review .name { font-size: 13px; color: var(--ink-soft); }

/* ============================================
   ADMIN TABLE
   ============================================ */
table.admin { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin th { text-align: left; padding: 12px 14px; background: var(--evergreen); color: #fff; font-weight: 500; }
table.admin td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
table.admin tr:last-child td { border-bottom: none; }

/* ============================================
   EMPTY STATE (used when a list has nothing in it yet)
   ============================================ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty-state h3 { font-family: 'Cormorant Garamond', serif; color: var(--ink); font-size: 22px; margin-bottom: 8px; }

/* ============================================
   FOOTER
   ============================================ */
footer { border-top: 1px solid var(--border); padding: 30px 0; text-align: center; font-size: 13px; color: var(--ink-soft); }

/* ============================================
   MOBILE STYLES
   ============================================ */
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .auth-choice { grid-template-columns: 1fr; }
  nav a { margin-left: 14px; font-size: 13px; }
  .page-head h1 { font-size: 34px; }
  .wordmark { font-size: 26px; }
  .site-nav { order: 3; width: 100%; margin: 4px 0 0; gap: 22px; }
}


/* =====================================================================
   Vowza: Google rating block on supplier profiles
   Append to style.css. Swap fallback colours for your own variables.
   ===================================================================== */

.google-reviews {
  margin: 32px 0;
  padding: 24px;
  border: 1px solid var(--border, #e4dfd7);
  border-radius: 12px;
}
.google-reviews[hidden] { display: none; }

.gr-title { margin: 0 0 12px; font-size: 1.15rem; }

.gr-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.gr-score { font-size: 2.25rem; font-weight: 700; line-height: 1; }
.gr-summary .gr-stars { display: block; font-size: 1.1rem; }
.gr-count { display: block; font-size: 14px; color: var(--text-muted, #5f5b55); }

.gr-stars { color: #e7a42c; letter-spacing: 1px; }

.gr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.gr-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gr-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.gr-author { display: block; font-weight: 600; color: inherit; }
.gr-meta { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.gr-when { color: var(--text-muted, #5f5b55); }

.gr-text {
  margin: 0;
  max-width: 70ch;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 5;       /* long reviews are cut to 5 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gr-foot {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  align-items: center; justify-content: space-between;
  margin-top: 20px; padding-top: 14px;
  border-top: 1px solid var(--border, #e4dfd7);
  font-size: 14px;
}

/* Google's attribution styling guidance for text attribution */
.gr-attribution {
  font-family: Roboto, Arial, sans-serif;
  font-size: 12px;
  color: #5e5e5e;
}

/* =====================================================================
   REDESIGN COMPONENTS (Stage 1)
   ===================================================================== */

/* ---------- My Wedding layout: sidebar + main area ----------
   <div class="wrap app-shell">
     <aside class="side-nav" data-active="suppliers"></aside>
     <main class="app-main"> ...page content... </main>
   </div>
   layout.js fills in the sidebar links. */
.app-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding-top: 28px; padding-bottom: 60px; }
.app-main { min-width: 0; }
.app-main > .page-head:first-child { padding-top: 0; }

.side-nav { position: sticky; top: 24px; align-self: start; }
.side-nav .side-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; margin: 0 0 14px 12px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius);
  font-size: 15px; color: var(--ink);
}
.side-nav a:hover { background: rgba(201, 123, 118, 0.08); }
.side-nav a.active { background: var(--rose-tint); color: var(--rose-dark); font-weight: 500; }
.side-nav svg { width: 20px; height: 20px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.count-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--rose); color: #fff; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }
.count-badge[hidden] { display: none; }

/* ---------- Panels: the white boxes on dashboard pages ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-panel); padding: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { font-family: var(--font-serif); font-size: 28px; font-weight: 600; margin: 0; }
.panel-head a { font-size: 14px; color: var(--rose-dark); }
.panel-head a:hover { text-decoration: underline; }

/* ---------- Summary tiles: "$20,000 total spend" etc. ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.tile .tile-icon { width: 48px; height: 48px; border-radius: var(--radius); background: var(--rose-tint); color: var(--rose-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tile .tile-icon.green { background: var(--green-tint); color: var(--evergreen); }
.tile .tile-value { font-family: var(--font-serif); font-size: 32px; font-weight: 600; line-height: 1.1; }
.tile .tile-label { font-size: 14px; color: var(--ink-soft); margin-top: 2px; }

/* ---------- Progress bar ---------- */
.progress { height: 8px; background: #EEE9E2; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--evergreen); border-radius: 999px; }
.progress.rose > span { background: var(--rose); }

/* ---------- Rose banner: "Next payment due" ---------- */
.banner { background: var(--rose-tint); border-radius: var(--radius-card); padding: 18px 22px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.banner .banner-label { font-size: 14px; color: var(--rose-dark); }
.banner .banner-text { font-size: 17px; font-weight: 500; }
.banner .btn { margin-left: auto; }

/* ---------- Tabs: "All bookings (5) | Payments due (2)" ---------- */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button, .tabs a { font: inherit; font-size: 15px; background: none; border: none; padding: 10px 0; color: var(--ink-soft); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs .active, .tabs [aria-selected="true"] { color: var(--ink); font-weight: 500; border-bottom-color: var(--rose); }

/* ---------- Mobile: sidebar becomes a scrolling row of tabs ---------- */
@media (max-width: 900px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 16px; }
  .side-nav { position: static; min-width: 0; }
  .side-nav .side-title { display: none; }
  .side-nav ul { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .side-nav a { white-space: nowrap; padding: 8px 12px; font-size: 14px; }
  .side-nav svg { width: 18px; height: 18px; }
}


/* =====================================================================
   SUPPLIER PORTAL LAYOUT (supplier pages, drawn by supplier-common.js)
   Sidebar on the left, top bar and page on the right.
   Classes start with "pt-" (portal) so they never clash with other pages.
   ===================================================================== */
body.pt-portal > footer { display: none; }
.pt-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }

.pt-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; padding: 26px 16px 18px; background: var(--surface); border-right: 1px solid var(--border); }
.pt-brand { padding: 0 10px; }
.pt-brand .wordmark { display: block; font-size: 32px; }
.pt-brand span { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.pt-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pt-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius); font-size: 15px; color: var(--ink); }
.pt-nav a:hover { background: rgba(201, 123, 118, 0.08); }
.pt-nav a, .pt-nav a.active { margin-left: 0; border-bottom: none; }  /* undo the site header's nav link styles */
.pt-main .page-head.wrap { padding-left: 24px; padding-right: 24px; }
.pt-nav a.active { background: var(--rose-tint); color: var(--rose-dark); font-weight: 500; }
.pt-nav svg, .pt-top svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.pt-me { margin-top: auto; border-top: 1px solid var(--border); padding: 14px 10px 0; display: grid; gap: 10px; }
.pt-me .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pt-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #EFE8DD; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 18px; color: #8a7d6a; }
.pt-me strong { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-me small { display: block; font-size: 12px; color: var(--ink-soft); }
.pt-logout { font: inherit; font-size: 13px; background: none; border: none; padding: 0; color: var(--ink-soft); cursor: pointer; text-align: left; text-decoration: underline; }
.pt-logout:hover { color: var(--ink); }

.pt-main { min-width: 0; display: flex; flex-direction: column; }
.pt-top { display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 64px; padding: 12px 32px; border-bottom: 1px solid var(--border); }
.pt-top .btn { display: inline-flex; align-items: center; gap: 8px; }
.pt-top .btn svg { width: 16px; height: 16px; }
.pt-main #pageContent { flex: 1; padding-bottom: 40px; }

/* Phones and small tablets: sidebar becomes a top bar with a swipeable menu */
@media (max-width: 900px) {
  .pt-shell { grid-template-columns: minmax(0, 1fr); }
  .pt-side { position: static; height: auto; gap: 12px; padding: 16px 16px 10px; border-right: none; border-bottom: 1px solid var(--border); }
  .pt-brand { display: flex; align-items: baseline; gap: 10px; }
  .pt-brand .wordmark { font-size: 26px; }
  .pt-brand span { margin: 0; }
  .pt-nav ul { display: flex; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .pt-nav ul::-webkit-scrollbar { display: none; }
  .pt-nav a { white-space: nowrap; padding: 8px 12px; font-size: 14px; }
  .pt-me { display: none; }
  .pt-top { justify-content: flex-start; gap: 10px; padding: 10px 16px; min-height: 0; }
  .pt-top .pt-logout-top { display: inline; margin-left: auto; }
}
.pt-logout-top { display: none; }
