/* Self-hosted Inter (SIL OFL) — replaces the Google Fonts CDN, which sent every visitor's IP
   and browser fingerprint to Google on every page load, including the Privacy Policy page
   itself, before any consent step (docs/compliance/terms-privacy-gap-audit.md finding #3).
   Two subsets only (not Google's full ~9 unicode-range set) since the app is English-only;
   latin-ext is kept for accented characters in customer names. One file per subset serves all
   four weights via Inter's variable-font weight axis — same file, different font-weight
   declarations, exactly how Google's own CSS does it. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

html { scrollbar-gutter: stable; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-accent: #1700F4;
  --color-accent-hover: #00095B;
  --color-accent-active: #3730a3;
  --color-text-secondary: #6b7280;
  --color-border: #e5e7eb;
  --color-surface: #fff;
  --color-surface-muted: #f9fafb;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
}

input, button, textarea, select { font-family: inherit; }
body { font-family: 'Inter', system-ui, sans-serif; font-weight: 500; background: #f9f9f9; color: #111; padding: 0.5rem 1.5rem 1.5rem; }
.container { max-width: 768px; margin: 0 auto; }
h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1.25rem; }
/* ── site header ──────────────────────────────────────────── */
.site-header { display: flex; align-items: center; gap: 0.5rem; padding-bottom: 0.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--color-border); }
.site-brand { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; color: #111; text-decoration: none; }
.site-brand:hover { color: var(--color-accent); }
.site-tag { font-size: 0.68rem; font-weight: 600; color: #6b7280; background: #f3f4f6; border: 1px solid var(--color-border); padding: 0.1rem 0.4rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.05em; }
.site-nav { margin-left: auto; align-self: stretch; display: flex; align-items: stretch; gap: 1.25rem; }
.site-nav a { position: relative; display: flex; align-items: center; font-size: 0.85rem; font-weight: 600; color: var(--color-accent); text-decoration: none; }
.site-nav a:hover { color: var(--color-accent-hover); }
/* bottom: -0.5rem reaches through .site-header's padding-bottom (line 26 above) to sit flush with its border-bottom — keep both values in sync */
.site-nav > a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -0.5rem; height: 2px; background: var(--color-accent); }


/* ── user menu ────────────────────────────────────────────── */
.user-menu { position: relative; display: flex; align-items: center; }
.avatar-btn { width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 2px solid var(--color-accent); background: #fff; color: var(--color-accent); font-weight: 600; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s; }
.avatar-btn.persona { font-size: 1rem; }
.avatar-btn:hover { border-color: var(--color-accent-hover); color: var(--color-accent-hover); }
.user-menu::after { content: ''; position: absolute; top: 100%; left: -1rem; right: -1rem; height: 0.5rem; }
.user-menu-dropdown { display: none; position: absolute; top: calc(100% + 0.5rem); right: 0; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 0.35rem 0; min-width: 180px; box-shadow: 0 6px 20px rgba(0,0,0,0.1); z-index: 100; }
.user-menu-dropdown.open { display: block; }
.user-email { padding: 0.45rem 0.9rem; font-size: 0.8rem; color: #6b7280; font-weight: 500; border-bottom: 1px solid var(--color-border); }
.user-menu-dropdown a, .logout-btn { display: block; width: 100%; text-align: left; padding: 0.45rem 0.9rem; font-size: 0.85rem; color: var(--color-accent); text-decoration: none; background: none; border: none; cursor: pointer; transition: background 0.15s; }
.user-menu-dropdown a:hover, .logout-btn:hover { background: #f9fafb; color: var(--color-accent-hover); }
.logout-btn { font-family: inherit; font-weight: 400; }

/* ── modal ─────────────────────────────────────────────────── */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { background: var(--color-surface); border-radius: var(--radius-lg); padding: 1.5rem; min-width: 300px; max-width: 500px; box-shadow: 0 20px 25px rgba(0,0,0,0.15); }
.modal h3 { margin-bottom: 1rem; font-size: 1rem; }
.modal-checkbox { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; cursor: pointer; font-size: 0.9rem; font-weight: 500; }
.modal-checkbox input[type="checkbox"] { width: 1rem; height: 1rem; cursor: pointer; }
.modal-buttons { display: flex; gap: 0.75rem; justify-content: flex-end; }
.modal-cancel, .modal-confirm { padding: 0.5rem 1rem; border: 1px solid var(--color-border); border-radius: 999px; font-size: 0.9rem; cursor: pointer; transition: all 0.15s; }
.modal-cancel { background: #f9fafb; color: #374151; }
.modal-cancel:hover { background: #f3f4f6; }
.modal-confirm { background: #17a2b8; color: #fff; border-color: #17a2b8; }
.modal-confirm:hover { background: #138496; }

/* ── tables ────────────────────────────────────────────────── */
.orders-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; }
.orders-table th { background: var(--color-surface-muted); text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--color-border); font-weight: 600; }
.orders-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.orders-table tr:last-child td { border-bottom: none; }
.admin-link { color: var(--color-accent); text-decoration: none; font-weight: 600; }
.admin-link:hover { color: var(--color-accent-hover); text-decoration: underline; }
.pager { margin-top: 1rem; display: flex; gap: 0.5rem; align-items: center; }
.pager a { padding: 0.3rem 0.75rem; border: 1px solid #d1d5db; border-radius: 999px; text-decoration: none; color: #374151; font-size: 0.85rem; }
.pager a.pager-prev::before { content: "\2039"; margin-right: 0.3rem; }
.pager a.pager-next::after { content: "\203A"; margin-left: 0.3rem; }
.pager-info { font-size: 0.85rem; color: #555; }
.admin-info { color: #555; font-size: 0.85rem; margin-bottom: 0.75rem; }

/* ── terms / privacy ──────────────────────────────────────── */
.terms-page p, .privacy-page p { padding: 0.5rem 0; }
.terms-page ul, .privacy-page ul { padding: 0 2.5rem; }

/* ── service notice ──────────────────────────────────────────── */
.service-notice { font-size: 0.95rem; color: #555; line-height: 1.6; margin: 1rem 0; }
.service-notice a { color: var(--color-accent); font-weight: 600; }

/* ── site footer ──────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--color-border); padding-top: 1rem; margin-top: 2rem; font-size: 0.8rem; color: var(--color-accent); }
.site-footer a { color: var(--color-accent); text-decoration: none; }
.site-footer a:hover { color: var(--color-accent-hover); text-decoration: underline; text-decoration-thickness: 1px; }

/* ── mobile layout (≤768px) ──────────────────────────────── */
/* Same breakpoint duplicated in gallery.css and order-ui.css — keep in sync.
   No shared CSS variable: media query conditions can't reference custom
   properties (resolved too late in the pipeline), and there's no build step
   here to add a preprocessor for it. */
@media (max-width: 768px) {
  body { padding: 0.5rem 1rem 1rem; }
  .card { padding: 1rem; }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem 0.75rem;
  }

  table.orders-table { display: block; overflow-x: auto; }
}

