/* ==========================================================================
   Júlia Čížová – blog & bookshop
   Single, self-contained stylesheet. Reproduces the original Typograph theme
   design (juliacizova.sk) without any WordPress/WooCommerce plugin assets.

   Sections:
     1. Design tokens
     2. Base
     3. Header + navigation
     4. Peach top band: hero + intro
     5. Content area
     6. Blog: post cards
     7. Sidebar / widgets
     9. Checkout / forms
    10. Buttons + notices
    11. Footer + scroll-to-top
    12. Komunita (member section)
    13. Responsive
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --peach: #fcefe7;        /* accent band + buttons */
  --peach-dark: #f4dccb;
  --ink: #1b1b1b;          /* headings */
  --text: #333333;         /* body text */
  --muted: #6b6b6b;        /* meta text; >=4.5:1 (AA) on --card, --page and --peach */
  --red: #ff4b4b;          /* impact: dropcaps, links, hovers */
  --olive: #b3af54;        /* product price */
  --page: #f7f7f7;         /* page background behind content */
  --card: #ffffff;
  --border: #ececec;
  --shell: 1100px;         /* max content shell width */
  --reading: 800px;        /* single-column reading width */
  --serif: "Frank Ruhl Libre", Georgia, "Times New Roman", Times, serif;
}

/* 2. Base --------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* 3. Header + navigation ------------------------------------------------ */
.site-header {
  background: var(--peach);
}
.site-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 30px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 34px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.main-nav a {
  color: var(--text);
  font-size: 18px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--red); text-decoration: none; }
.main-nav a.is-active { color: var(--red); border-bottom-color: var(--red); }

/* Mobile header + off-canvas nav */
.mobile-header {
  display: none;
  background: var(--peach);
  padding: 0 20px;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
}
.mobile-header .brand img { height: 30px; }
.nav-toggle {
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 360px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 1000;
  padding: 28px 24px;
  overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.mobile-nav__head span { font-size: 22px; color: var(--ink); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--border); }
.mobile-nav a,
.mobile-nav__logout { display: block; padding: 14px 4px; color: var(--text); font-size: 19px; }
.mobile-nav a:hover,
.mobile-nav__logout:hover { color: var(--red); text-decoration: none; }
.mobile-nav__logout {
  width: 100%;
  background: none;
  border: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 999;
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

/* 4. Peach top band: hero + intro -------------------------------------- */
.hero {
  background: var(--peach);
  text-align: center;
  padding: 90px 30px 60px;
}
.hero__eyebrow {
  font-size: 28px;
  font-weight: 300;
  color: var(--ink);
  margin: 0 0 14px;
}
.hero__title {
  font-size: 92px;
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
.hero__title .accent { color: var(--red); }
.hero__title .plain { color: var(--ink); }

/* Simple centered page heading (shop, category, auth, etc.) */
.page-heading {
  background: var(--peach);
  text-align: center;
  padding: 120px 30px 90px;
}
.page-heading h1 { font-size: 45px; margin: 0; }

.intro {
  background: var(--peach);
  text-align: center;
  padding: 20px 30px 130px;
}
.intro__inner {
  max-width: 550px;
  margin: 0 auto;
}
.intro a { border-bottom: 2px solid rgba(255, 75, 75, 0.25); }
.intro .signoff { font-style: italic; }

/* 5. Content area ------------------------------------------------------- */
.content {
  background: var(--card);
  max-width: var(--shell);
  margin: -40px auto 80px;
  padding: 60px 30px;
  position: relative;
  z-index: 1;
}
.content--narrow > * { max-width: var(--reading); margin-left: auto; margin-right: auto; }

.legal h2 { font-size: 28px; margin: 32px 0 12px; }
.legal p, .legal ul { margin: 0 0 14px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin: 0 0 6px; }
.legal code { font-size: 0.9em; }
.legal__updated { color: var(--muted); font-size: 16px; margin-top: 32px; }

/* 6. Blog: post cards --------------------------------------------------- */
.post-card {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 40px 0 60px;
  text-align: center;
  position: relative;
}
.post-card + .post-card { border-top: 1px solid var(--border); padding-top: 60px; }

.post-card__dropcap {
  font-size: 110px;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.post-card__title {
  font-size: 40px;
  line-height: 1.25;
  margin: 0 0 16px;
}
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--red); text-decoration: none; }

.post-meta {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 24px;
}
.post-meta a { color: var(--muted); }
.post-meta a:hover { color: var(--red); }
.post-meta .sep { margin: 0 10px; opacity: 0.5; }

.post-card__excerpt {
  max-width: 640px;
  margin: 0 auto 30px;
  font-size: 19px;
}

/* Peach pill button ("Otvoriť článok") */
.btn-more {
  display: inline-block;
  background: var(--peach);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 38px;
  border-radius: 2px;
  transition: box-shadow 0.15s linear;
}
.btn-more:hover { box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14); text-decoration: none; }

.empty-note { color: var(--muted); font-style: italic; text-align: center; }

/* Single article ------------------------------------------------------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}
.article-body {
  font-size: 19px;
}
.article-body h2 { font-size: 30px; margin: 1.6em 0 0.6em; }
.article-body h3 { font-size: 24px; margin: 1.4em 0 0.5em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.article-body li { margin-bottom: 0.4em; }
.article-body a {
  color: inherit;
  box-shadow: inset 0 -2px 0 var(--peach);
  border-bottom: 2px solid var(--peach);
  transition: background 0.12s linear;
}
.article-body a:hover { background: var(--peach); text-decoration: none; }
/* Decorative pull quote */
.article-body blockquote {
  margin: 2em 0;
  padding: 8px 0 8px 28px;
  border: 0;
  border-left: 4px solid var(--red);
  font-family: var(--serif);
  font-style: italic;
  font-size: 27px;
  line-height: 1.5;
  color: var(--ink);
}
.article-body blockquote p { margin: 0; }
.article-body img { border-radius: 6px; }

/* Chapter label + bottom chapter pagination */
.chapter-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
}
.chapter-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.chapter-nav a,
.chapter-nav span {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
}
.chapter-nav__pages a:hover { background: var(--peach); }
.chapter-nav__pages .is-current { background: var(--peach); color: var(--ink); font-weight: 700; }
.chapter-nav__prev,
.chapter-nav__next { color: var(--red); font-weight: 500; }

/* Inline callouts */
.callout {
  margin: 2em 0;
  padding: 24px 28px;
  border-radius: 10px;
  background: var(--peach);
}
.callout h3 { margin: 0 0 8px; font-size: 24px; }
.callout p { margin: 0 0 16px; }
.callout--buy {
  display: flex;
  gap: 22px;
  align-items: center;
}
.callout--buy__cover {
  width: 110px;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(4px 8px 12px rgba(0, 0, 0, 0.18));
}
.callout--buy__body { flex: 1; }

/* Sidebar widgets */
.toc { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 6px; }
.toc li.is-current > a { color: var(--red); font-weight: 700; }
.widget--book__cover { display: block; box-shadow: none; margin-bottom: 10px; }
.widget--book__cover img {
  width: auto;
  max-height: 150px;
  filter: drop-shadow(4px 6px 10px rgba(0, 0, 0, 0.16));
}
.widget--book__title { font-weight: 500; margin: 0 0 12px; }

.article-back { margin-top: 40px; }

/* Comments ------------------------------------------------------------- */
.comments { max-width: var(--reading); margin: 60px auto 0; }
.comments__title { font-size: 24px; margin-bottom: 24px; }
.comments__title .count { color: var(--red); }
.comment {
  background: #fafafa;
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.comment__author { font-weight: 700; margin: 0 0 2px; }
.comment__date { color: var(--muted); font-weight: 400; font-size: 15px; }
.comment__body { margin: 0; }
.comments__empty, .comments__login { color: var(--muted); }
/* A held comment is visible to its author only, and says so. */
.comment--held { border-left: 3px solid var(--peach-dark); padding-left: 16px; }
.comment__pending {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-style: italic;
}
.comment--reply { margin: 16px 0 0 24px; background: var(--page); }
.comment__replies > summary,
.comment__reply-form > summary {
  cursor: pointer;
  color: var(--red);
  font-size: 17px;
  padding: 10px 0;
  min-height: 44px;
}
.comments__pages { display: flex; gap: 24px; margin: 24px 0; }
/* The reaction trio: warm, large enough to tap, no downvote. */
.reactions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
.reactions__form { margin: 0; }
.reaction {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  cursor: pointer;
}
.reaction--mine { background: var(--peach); border-color: var(--peach-dark); }
.reaction__count { color: var(--muted); }
.comment-form { margin-top: 28px; }
.comment-form label { display: block; font-weight: 500; margin-bottom: 8px; }
.comment-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  margin-bottom: 12px;
  resize: vertical;
}

/* 7. Sidebar / widgets -------------------------------------------------- */
.sidebar { font-size: 17px; }
.widget { margin-bottom: 36px; }
.widget__title {
  font-size: 20px;
  margin: 0 0 10px;
}
.widget__title::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: var(--ink);
  margin-top: 7px;
}

/* 9. Checkout / forms ------------------------------------------------- */
.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}
.table th, .table td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border);
}
.table th { font-size: 16px; color: var(--muted); font-weight: 500; }
.table .num { text-align: right; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.form-title { font-size: 24px; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 16px; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
.field-row { display: flex; gap: 16px; }
.field-row .field { flex: 1; }
.code-input { text-align: center; font-size: 26px; letter-spacing: 12px; }

.order-summary { border: 1px solid var(--border); border-radius: 8px; padding: 20px 24px; }
.order-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.order-line:last-of-type { border-bottom: 0; }
.order-line__qty { color: var(--muted); font-size: 15px; }
.order-total { display: flex; justify-content: space-between; padding-top: 16px; font-size: 20px; font-weight: 700; }

/* 10. Buttons + notices ----------------------------------------------- */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 3px;
  padding: 14px 26px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14); }
.btn--primary { background: var(--red); color: #fff; }
.btn--cart { background: #e9e6ed; color: #515151; font-weight: 700; }
.btn--muted { background: var(--peach); color: var(--ink); }
.btn--danger { background: #fff; color: #a12a2a; border: 1px solid #e5a3a3; }
.btn--block { display: block; width: 100%; text-align: center; }

/* Account pages */
.account-hello { color: var(--muted); margin-bottom: 28px; }
.order-card,
.address-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 16px;
}
.order-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.order-card__number { font-weight: 700; }
.order-card__date { color: var(--muted); font-size: 15px; }
.order-card__status {
  margin-left: auto;
  background: var(--peach);
  color: var(--ink);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 14px;
}
.address-card__actions { display: flex; gap: 16px; }
.badge {
  display: inline-block;
  background: var(--peach);
  color: var(--ink);
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 13px;
  margin-left: 6px;
}

.notice { padding: 14px 16px; border-radius: 6px; margin-bottom: 18px; }
.notice--error { background: #fdecec; border: 1px solid #f3b4b4; color: #a12a2a; }
.notice--success { background: #e9f8ee; border: 1px solid #bfe6cd; color: #1c7c43; }

/* Admin (/admin) */
.admin-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.admin-nav a { color: var(--ink); font-weight: 500; }
.admin-nav a:hover { color: var(--red); text-decoration: none; }
.stock-counts { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 0 0 1rem; padding: 0; list-style: none; }
.desk-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.admin-banner {
  background: #fff6e8;
  border: 1px solid #e6c48a;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.admin-place {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: flex-end;
  margin: 12px 0;
}
.admin-place label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.admin-slots { margin: 0; padding-left: 18px; }
.admin-original { color: var(--muted); font-size: 15px; }
.admin-originality { margin-bottom: 20px; }

/* Consent banner: asked once, answered with two ordinary buttons. Fixed to
   the bottom so it never hides the article a visitor came to read. */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}
.consent__text { margin: 0; max-width: 620px; font-size: 16px; line-height: 1.6; }
.consent__text a { color: var(--ink); text-decoration: underline; }
.consent__text a:hover { color: var(--red); }
.consent__actions { display: flex; gap: 12px; }

/* Admin filters, tables and the Van Westendorp chart (`curves::render_svg`). */
.admin-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 24px;
}
.admin-filter label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.admin-filter input,
.admin-filter select { font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; }
.vw-chart { width: 100%; max-width: 720px; height: auto; margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; margin: 0 0 32px; }
.admin-table th, .admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 18px;
}
.admin-table th { color: var(--muted); font-weight: 500; }
.admin-range { font-size: 19px; }
.admin-rate { margin-left: 6px; color: var(--muted); font-size: 14px; white-space: nowrap; }

.center { text-align: center; }
.stack > * + * { margin-top: 18px; }

/* Simple form page (login/verify) */
.simple-form { max-width: var(--reading); margin: 0 auto; font-size: 19px; }

/* 11. Footer + scroll-to-top ------------------------------------------ */
.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding: 60px 30px 70px;
  background: var(--page);
}
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--red); }
.site-footer p { margin: 0 auto 10px; max-width: 760px; line-height: 1.7; }
.footer-logout {
  display: inline;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
}
.footer-logout:hover { color: var(--red); }

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--peach);
  color: var(--ink);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 900;
}
.scroll-top.is-visible { display: inline-flex; }
.scroll-top svg { width: 20px; height: 20px; }

/* 12. Komunita (member section) ---------------------------------------
   The member audience is 50+, so everything here is deliberately larger than
   the public site: 22px body copy, 56px minimum tap targets, generous spacing.
   Same tokens, no new colours. */
.member { --member-tap: 56px; font-size: 22px; }
.member .member-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px 32px;
  margin: 0 0 28px;
}
.member-eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.member-badge {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 18px;
  background: var(--peach);
  border-radius: 999px;
  font-size: 18px;
}
.member-badge--archive { background: var(--peach-dark); }
.member-recipe__title { font-size: 26px; color: var(--ink); margin: 0; }
.member-credit { font-size: 16px; color: var(--muted); font-weight: 400; }
.member-tasks { margin: 0; padding-left: 1.2em; }
.member-task {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  min-height: var(--member-tap);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.member-task:last-child { border-bottom: 0; }
.member-task__category {
  color: var(--muted);
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.member-task__title { flex: 1 1 60%; }
.member-task__points { color: var(--olive); white-space: nowrap; }
.member-body { margin: 32px 0; }
.member-archive__list { list-style: none; margin: 0; padding: 0; }
.member-archive__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  min-height: var(--member-tap);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.member-archive__list li:last-child { border-bottom: 0; }
.member-archive__list li.is-current a { color: var(--ink); font-weight: 700; }
.member-archive__recipe { color: var(--muted); font-size: 18px; }
.member-locked { background: var(--peach); }
.member .btn { min-height: var(--member-tap); display: inline-flex; align-items: center; }
.member-standing { background: var(--peach); }
.member-standing__level { margin: 0 0 6px; font-size: 24px; }
.member-standing__next, .member-standing__streak { color: var(--muted); font-size: 18px; }
.member-standing__streak { margin: 0; }
.member-standing__save { margin: 12px 0 0; color: var(--ink); font-size: 18px; }
.member-checklist__list { list-style: none; margin: 0; padding: 0; }
.member-checklist__item { border-bottom: 1px solid var(--border); }
.member-checklist__item:last-child { border-bottom: 0; }
.member-checklist__item form { margin: 0; }
.member-checklist__toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: var(--member-tap);
  padding: 14px 4px;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--serif);
  font-size: 21px;
  text-align: left;
  cursor: pointer;
}
.member-checklist__box {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--olive);
  border-radius: 4px;
  color: var(--olive);
  font-size: 20px;
}
.member-checklist__label { flex: 1 1 auto; }
.member-checklist__category {
  display: block;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.member-checklist__points { color: var(--olive); white-space: nowrap; }
.member-checklist__item.is-done .member-checklist__label { color: var(--muted); }
.member-checklist__item.is-done .member-checklist__box { background: var(--olive); color: var(--card); }
.member-photos__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
}
.member-photos__item img { width: 100%; height: auto; border-radius: 4px; display: block; }
.member-photos__author { display: block; color: var(--muted); font-size: 16px; margin-top: 6px; }
.member-photos__empty { color: var(--muted); }
.member-photos__form input[type="file"] { display: block; margin: 12px 0 16px; font-size: 18px; }
.member-goal { background: var(--peach); }
.member-goal__sentence { font-size: 24px; margin: 0 0 16px; }
.member-goal__bar {
  height: 22px;
  background: var(--card);
  border: 1px solid var(--peach-dark);
  border-radius: 999px;
  overflow: hidden;
}
.member-goal__fill { display: block; height: 100%; background: var(--olive); }
.member-ranking__list { margin: 0; padding-left: 1.4em; }
.member-ranking__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}
.member-ranking__list li.is-me { font-weight: 700; }
.member-ranking__points { color: var(--olive); }
.member-pings__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.member-pings__form:last-child { border-bottom: 0; }
.member-pings__name { flex: 0 0 auto; font-weight: 700; }
.member-pings__form select { flex: 1 1 200px; min-height: 44px; font-family: var(--serif); font-size: 17px; }
.member-inbox { list-style: none; margin: 0; padding: 0; }
.member-inbox__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-height: var(--member-tap);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.member-inbox__unread { color: var(--red); font-size: 17px; }
.member-inbox__date { color: var(--muted); font-size: 17px; margin-left: auto; }
.dm { margin: 0 0 20px; padding: 0 0 12px; border-bottom: 1px solid var(--border); }
.dm:last-child { border-bottom: 0; }
.dm--mine .dm__body { color: var(--ink); font-weight: 500; }
.dm--held { opacity: 0.75; }
.dm__body { margin: 0 0 4px; }
.dm__meta { margin: 0; color: var(--muted); font-size: 16px; }
.dm__report { margin: 4px 0 0; }
.dm__report-button {
  border: 0;
  background: none;
  padding: 6px 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  text-decoration: underline;
  cursor: pointer;
}
.member-dm-block { margin-top: 24px; }
.queue-item__preview { white-space: pre-wrap; }
.queue-item__reporter { color: var(--muted); font-size: 17px; }
.queue-item__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; }
/* Present for screen readers, absent for everyone else. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.paying-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--peach);
  border-bottom: 1px solid var(--peach-dark);
}
.paying-banner p { margin: 0; }
.paying-banner__cancel { display: inline; margin: 0; }
#stripe-embed { min-height: 320px; margin: 16px 0; }

/* Preview bar: shown to a signed-in admin while preview mode is armed
   (`partials/preview_bar.html`). Sticks to the top like .paying-banner, above
   it (40) and the consent banner (50), below the mobile menu (1000). */
.preview-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 8px 16px;
  background: var(--ink);
  border-bottom: 3px solid var(--red);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}
.preview-bar p { margin: 0; }
.preview-bar__facts { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.preview-bar__fact strong { margin-right: 4px; color: var(--peach-dark); }
.preview-bar__fact--alert { color: #ffb4b4; font-weight: 700; }
.preview-bar__notice {
  margin-top: 6px;
  padding: 4px 10px;
  background: #2e5a34;
  border-radius: 3px;
}
.preview-bar__notice--error { background: #7a2020; }
.preview-bar__controls { margin-top: 6px; }
.preview-bar__controls summary { cursor: pointer; font-weight: 700; }
.preview-bar__forms { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 8px 0 4px; }
.preview-bar__form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 0; }
.preview-bar__form label { display: flex; flex-direction: column; gap: 2px; }
.preview-bar__form select,
.preview-bar__form input[type="number"],
.preview-bar__form input[type="tel"] {
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.preview-bar__form input[type="number"] { width: 9em; }
.preview-bar__form input[readonly] { background: #d8d8d8; }
.preview-bar .btn { padding: 6px 14px; font-size: 14px; }

/* Article editor (admin) ------------------------------------------------ */
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible,
.editor-link input:focus-visible,
.editor-toolbar .btn:focus-visible,
.editor-switch .btn:focus-visible { outline: 3px solid #1b1b1b; outline-offset: 2px; }
.field-error { color: #a12a2a; font-size: 15px; margin: 6px 0 0; }
.editor-state { color: var(--muted); }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.editor-body { min-height: 420px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 15px; line-height: 1.5; }
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.editor-toolbar .btn { min-height: 44px; min-width: 44px; padding: 8px 12px; font-weight: 500; }
.editor-link { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.editor-link label { margin: 0; font-size: 15px; }
.editor-link input { flex: 1 1 220px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; font: inherit; }
.editor-link .btn { min-height: 44px; padding: 8px 12px; font-weight: 500; }
.editor-switch { display: none; gap: 8px; margin-bottom: 16px; }
.editor-switch .btn { min-height: 44px; }
.editor-switch .btn[aria-pressed="true"] { background: var(--peach-dark); }
.editor-preview { grid-template-columns: 1fr; }
.editor-pane--preview { min-width: 0; }

/* 13. Responsive ------------------------------------------------------ */
@media (max-width: 900px) {
  .editor-grid { grid-template-columns: 1fr; }
  .editor-switch { display: flex; }
  .editor-grid[data-show="edit"] .editor-pane--preview { display: none; }
  .editor-grid[data-show="preview"] .editor-pane--edit { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 64px; }
}

@media print {
  .site-header, .mobile-header, .site-footer, .consent, .preview-bar { display: none !important; }
}

@media (max-width: 768px) {
  .site-header { display: none; }
  .mobile-header { display: flex; }
  .content { padding: 40px 20px; margin-bottom: 48px; }
  .hero { padding: 60px 20px 40px; }
  .hero__title { font-size: 52px; }
  .page-heading { padding: 70px 20px 50px; }
  .page-heading h1 { font-size: 34px; }
  .post-card__title { font-size: 30px; }
  .post-card__dropcap { font-size: 88px; }
  .field-row { flex-direction: column; gap: 0; }
}
