/* ==========================================================================
   ExifClean — shared stylesheet, "Case File" design system
   One file, every page. Page-specific overrides live at the bottom of the
   page's <head> in a small <style> block only when unavoidable.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root{
  --bg:        #eceae2;
  --panel:     #e2ded2;
  --panel-2:   #d8d3c2;
  --ink:       #1c1a16;
  --mute:      #6b6558;
  --redact:    #17150f;
  --stamp:     #9c3324;
  --ok:        #2f6b4f;
  --line:      #c5c0b0;
  --line-soft: #d8d3c6;
  --radius:    0px;
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Public Sans', -apple-system, sans-serif;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
h1,h2,h3,h4,h5{ font-weight:700; line-height:1.2; margin:0; }
p{ margin:0; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; }

.type{ font-family:'Courier Prime', monospace; }
code{
  font-family:'Courier Prime', monospace; background:var(--panel);
  padding:2px 6px; font-size:0.9em; border:1px solid var(--line);
}
.raw-metadata{
  font-family:'Courier Prime', monospace; font-size:0.82rem; color:var(--ink);
  background:var(--panel); border:1px solid var(--line); padding:18px;
  max-height:480px; overflow-y:auto; white-space:pre-wrap; word-break:break-word;
  margin:0;
}

.uk-container{ max-width:1120px; margin:0 auto; padding:0 32px; }

/* ---------- Header ---------- */
.site-header{
  background:var(--bg);
  border-bottom:1px solid var(--line);
}
.header-container{
  max-width:1120px; margin:0 auto; padding:20px 32px;
  display:flex; align-items:center; justify-content:space-between;
  position:relative;
}
.logo-container{
  display:flex; align-items:baseline; gap:0;
  text-decoration:none; color:var(--ink);
}
.logo-text{
  font-family:'Courier Prime', monospace; font-weight:700;
  font-size:1.28rem; letter-spacing:-0.01em; color:var(--ink);
  display:inline-flex; align-items:center;
}
.logo-text .clean-mark{
  background:var(--redact); color:var(--bg);
  padding:2px 8px 1px; margin-left:3px; letter-spacing:0.02em;
}
.file-no{
  color:var(--mute); font-weight:400; font-size:0.72rem; letter-spacing:0.02em;
  font-family:'Courier Prime', monospace; margin-left:8px;
}
nav{ display:flex; align-items:center; gap:28px; }
.nav-links{ display:flex; align-items:center; gap:26px; }
.nav-links a{
  text-decoration:none; color:var(--mute); font-size:0.92rem;
  padding-bottom:2px; border-bottom:1px solid transparent;
}
.nav-links a:hover{ color:var(--ink); border-color:var(--line); }
.nav-links a.active{ color:var(--ink); border-color:var(--stamp); }
.mobile-menu-toggle{
  display:none; background:none; border:1px solid var(--line);
  padding:8px; color:var(--ink); cursor:pointer;
}
@media (max-width:860px){
  .mobile-menu-toggle{ display:flex; }
  .nav-links{
    position:absolute; top:100%; left:0; right:0; background:var(--bg);
    flex-direction:column; align-items:flex-start;
    gap:0; max-height:0; overflow:hidden; transition:max-height .2s ease;
  }
  .nav-links.mobile-open{ max-height:320px; border-bottom:1px solid var(--line); }
  .nav-links li{ width:100%; }
  .nav-links a{ display:block; width:100%; padding:14px 32px; border-bottom:1px solid var(--line-soft); }
}

/* ---------- Buttons ---------- */
.uk-button{
  font-family:'Public Sans'; font-weight:600; font-size:0.94rem;
  padding:13px 22px; border:1px solid var(--redact); background:var(--bg);
  color:var(--ink); cursor:pointer; border-radius:var(--radius);
}
.uk-button-primary{ background:var(--redact); color:var(--bg); border-color:var(--redact); }
.uk-button-primary:hover{ background:#000; }
.uk-button-secondary{ background:transparent; border:1px solid var(--line); color:var(--ink); }
.uk-button-secondary:hover{ border-color:var(--redact); }
.uk-input{
  border:1px solid var(--line); background:var(--bg); color:var(--ink);
  padding:12px 14px; font-family:'Public Sans'; font-size:0.94rem; border-radius:var(--radius);
}
.uk-input:focus{ outline:none; border-color:var(--redact); }

/* ---------- Hero / Upload ---------- */
.main-grid.header-section-grid{
  display:grid; grid-template-columns:1.05fr 1.95fr; gap:48px;
  padding:56px 0 48px; align-items:start;
}
.hero-section h1{ font-size:2.5rem; letter-spacing:-0.01em; }
.hero-section p{ color:var(--mute); font-size:1.05rem; max-width:44ch; margin-top:16px; }
.hero-section b{ color:var(--ink); font-family:'Courier Prime'; font-weight:700; font-size:0.85rem; letter-spacing:0.02em; }
.example-link{ color:var(--ink); text-decoration:none; }
.example-link u{ text-decoration:none; border-bottom:1px dotted var(--mute); }
.example-link:hover u{ border-color:var(--ink); }

.upload-zone{
  background:var(--panel); border:1px dashed var(--line);
  padding:40px 32px; text-align:center; cursor:pointer;
  transition:border-color .15s ease, background .15s ease;
}
.upload-zone:hover, .upload-zone.dragover{ border-color:var(--stamp); background:var(--panel-2); }
.upload-zone .upload-icon{ width:40px; height:40px; margin:0 auto 16px; color:var(--mute); }
.upload-zone h3{ font-size:1.1rem; font-weight:600; }
.upload-zone .uk-text-muted{ color:var(--mute); font-size:0.88rem; margin-top:8px; }

.upload-zone .url-load-section{ border-top:1px solid var(--line); padding-top:1.5rem; margin-top:1.5rem; text-align:left; }
.upload-zone .url-load-label{ font-weight:700; font-size:0.8rem; letter-spacing:0.04em; color:var(--mute); margin-bottom:0.75rem; }
.upload-zone .url-load-row{ display:flex; gap:0.5rem; }
.upload-zone .url-load-row .uk-input{ flex:1; }
.upload-zone .url-load-note{ color:var(--stamp); font-size:0.72rem; margin-top:0.6rem; }
.upload-zone .url-load-note svg{ width:14px; height:14px; display:inline-block; vertical-align:text-bottom; margin-right:4px; }

/* Wide screens: the dropzone is now the clear focal point of the hero grid,
   so its text/controls need to scale up with the extra room, not sit
   at mobile sizing inside a much bigger box. */
@media (min-width:901px){
  .upload-zone{ padding:64px 48px; }
  .upload-zone .upload-icon{ width:52px; height:52px; margin-bottom:20px; }
  .upload-zone h3{ font-size:1.55rem; }
  .upload-zone .uk-text-muted{ font-size:1.02rem; }
  .upload-zone .url-load-label{ font-size:0.88rem; }
  .upload-zone .url-load-note{ font-size:0.82rem; }
  .upload-zone .url-load-row .uk-input{ font-size:1rem; padding:14px 16px; }
  .upload-zone .url-load-row .uk-button{ font-size:1rem; padding:14px 24px; }
}
.file-input{ display:none; }

/* ---------- Results / Dossier layout ---------- */
#results{ display:none; }
#results .main-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:1px;
  background:var(--line); border:1px solid var(--line); margin-bottom:24px;
}
#results .main-grid > div{ background:var(--bg); padding:28px; }

.upload-another-btn{
  background:var(--bg); border:1px solid var(--line); color:var(--ink);
  padding:10px 18px; font-size:0.85rem; font-weight:600; cursor:pointer;
  display:inline-flex; align-items:center; gap:8px;
}
.upload-another-btn:hover{ border-color:var(--redact); }

.image-preview{ border:1px solid var(--line); }

.metadata-stats{
  margin-top:18px; padding:14px 16px; background:var(--panel);
  border:1px solid var(--line); font-size:0.9rem;
}
.metadata-info{ font-weight:600; }
.metadata-info span{ color:var(--stamp); font-family:'Courier Prime'; }

.remove-btn{
  width:100%; margin-top:16px; padding:15px; border:none;
  background:var(--stamp) !important; color:#f4f1e8; font-weight:700;
  font-size:0.92rem; letter-spacing:0.03em; display:flex; align-items:center;
  justify-content:center; gap:10px; cursor:pointer;
}
.remove-btn:hover{ background:#7c2a1c !important; }
.remove-icon{ width:20px; height:20px; }

.section-header{
  display:flex; align-items:center; gap:10px; margin-bottom:14px;
  padding-bottom:10px; border-bottom:1px solid var(--line);
}
.section-icon{ width:18px; height:18px; color:var(--stamp); }
.section-title{ font-size:0.98rem; font-weight:700; font-family:'Courier Prime'; letter-spacing:0.01em; }

/* metadata table — generated by main.js, IDs/classes untouched */
.metadata-row{
  display:flex; justify-content:space-between; gap:16px; padding:9px 0;
  border-bottom:1px dotted var(--line); font-size:0.86rem;
}
.metadata-row:last-child{ border-bottom:none; }
.metadata-key{ color:var(--mute); font-family:'Courier Prime'; white-space:nowrap; }
.metadata-value{ color:var(--ink); text-align:right; word-break:break-word; }

/* camera / location cards */
.uk-card.uk-card-body{ background:var(--bg); padding:0; }

.location-coords{ margin-bottom:14px; }
.coord-label{ color:var(--mute); font-family:'Courier Prime'; }
.coord-value{ color:var(--ink); }
.location-map{ width:100%; height:260px; border:1px solid var(--line); filter:grayscale(0.4) contrast(1.05); }

/* privacy + strip grid */
.privacy-strip-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:1px;
  background:var(--line); border:1px solid var(--line); margin-bottom:24px;
}
.privacy-analysis-card, .strip-metadata-card{ background:var(--bg); padding:28px; }
.privacy-header, .strip-header{ display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.privacy-icon, .strip-icon{ width:18px; height:18px; color:var(--stamp); }
.privacy-title, .strip-title{ font-family:'Courier Prime'; font-size:0.98rem; font-weight:700; }
.privacy-intro{ color:var(--mute); font-size:0.88rem; margin-bottom:12px; }
.privacy-list{ display:flex; flex-direction:column; gap:10px; }
.privacy-item{ display:flex; align-items:center; gap:10px; font-size:0.9rem; }
.privacy-bullet{
  width:8px; height:8px; flex:none; background:var(--stamp);
}
.privacy-bullet.location, .privacy-bullet.creation, .privacy-bullet.device{ background:var(--stamp); }

.savings-label{ color:var(--mute); font-size:0.85rem; margin-bottom:6px; }
.savings-amount{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:10px; }
.savings-size{ font-family:'Courier Prime'; font-size:0.92rem; }
.savings-percent{ font-family:'Courier Prime'; color:var(--stamp); font-weight:700; }
.progress-bar{ height:6px; background:var(--panel-2); margin-bottom:20px; overflow:hidden; }
.progress-fill{ height:100%; background:var(--stamp); }

.strip-button{
  width:100%; padding:14px; border:1px solid var(--redact) !important;
  background:var(--redact) !important; color:var(--bg) !important;
  font-weight:600; font-size:0.92rem; display:flex; align-items:center;
  justify-content:center; gap:10px; cursor:pointer; margin-bottom:14px;
}
.strip-button:hover{ background:#000 !important; }
.strip-button:disabled{ background:#a9a291 !important; border-color:#a9a291 !important; cursor:not-allowed; }

#downloadButton{ width:100%; margin-bottom:14px; }

.preserve-checkbox{ display:flex; align-items:center; justify-content:space-between; font-size:0.88rem; color:var(--mute); }
.toggle-switch{ position:relative; display:inline-block; width:40px; height:22px; }
.toggle-switch input{ opacity:0; width:0; height:0; }
.toggle-slider{
  position:absolute; inset:0; background:var(--panel-2); border:1px solid var(--line);
  cursor:pointer; transition:.15s;
}
.toggle-slider::before{
  content:""; position:absolute; width:14px; height:14px; left:3px; top:3px;
  background:var(--mute); transition:.15s;
}
.toggle-switch input:checked + .toggle-slider{ background:var(--redact); }
.toggle-switch input:checked + .toggle-slider::before{ transform:translateX(18px); background:var(--bg); }

/* full metadata block */
.uk-card-body#metadataContentWrap, .uk-card.uk-card-body{ border:1px solid var(--line); padding:28px; margin-top:0; }

/* ---------- Content sections ---------- */
.content-section{ padding:64px 0; border-top:1px solid var(--line); }
/* On the 3 tool pages, main.js/meta-view.js/privacy-checker.js add
   .results-active to <body> once a file is loaded — the marketing/how-to/
   FAQ content below the tool hides while you're actively using it, and
   reappears once you reset or haven't uploaded anything yet. */
body.results-active .content-section{ display:none; }
.content-section h2{ font-size:1.7rem; text-align:center; margin-bottom:10px !important; }
.content-section > p{ text-align:center; color:var(--mute) !important; max-width:640px; margin:0 auto 40px !important; }

/* how-to steps: a genuine sequence, numbered on purpose */
.how-to-steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.step-box{ background:var(--bg); padding:26px 22px; }
.step-number-badge{
  width:28px; height:28px; border:1px solid var(--stamp); color:var(--stamp);
  display:flex; align-items:center; justify-content:center;
  font-family:'Courier Prime'; font-weight:700; font-size:0.85rem; margin-bottom:16px;
}
.step-content h4{ font-size:1.02rem; margin-bottom:8px; }
.step-content p{ color:var(--mute); font-size:0.88rem; }

/* reasons / metadata-types registers — flat ledger, not SaaS cards */
.reasons-grid, .metadata-types-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line);
}
.reason-card, .metadata-type-card{ background:var(--bg); padding:26px 24px; position:relative; }
.reason-icon, .metadata-type-icon{ display:none; } /* icons dropped — the register reads by label, not glyph */
.reason-title, .metadata-type-title{
  font-size:1.02rem; font-weight:700; margin-bottom:10px;
  padding-bottom:10px; border-bottom:1px solid var(--line-soft);
}
.reason-card::before, .metadata-type-card::before{
  content:"RISK"; font-family:'Courier Prime'; font-size:0.68rem; letter-spacing:0.06em;
  color:var(--stamp); display:block; margin-bottom:8px;
}
.metadata-type-card::before{ content:"FIELD GROUP"; color:var(--mute); }
.reason-card.info::before{ content:"NOTE"; color:var(--mute); }
.reason-description{ color:var(--mute); font-size:0.9rem; margin-bottom:14px; }
.reason-example{
  font-size:0.84rem; border-top:1px dotted var(--line); padding-top:12px; color:var(--ink);
}
.reason-example strong{ font-family:'Courier Prime'; color:var(--stamp); }
.metadata-items-list li{
  font-size:0.86rem; color:var(--mute); padding:6px 0; border-bottom:1px dotted var(--line-soft);
}
.metadata-items-list li:last-child{ border-bottom:none; }

/* comparison — redacted vs cleared exhibit pair */
.comparison-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); }
.comparison-card{ background:var(--bg); padding:28px; }
.comparison-header{ display:flex; align-items:center; gap:10px; margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.comparison-icon{ width:26px; height:26px; display:flex; align-items:center; justify-content:center; border:1px solid; flex:none; }
.comparison-icon svg{ width:14px; height:14px; }
.comparison-icon.danger{ border-color:var(--stamp); color:var(--stamp); }
.comparison-icon.success{ border-color:var(--ok); color:var(--ok); }
.comparison-title{ font-family:'Courier Prime'; font-size:0.92rem; font-weight:700; }
.comparison-title.danger{ color:var(--stamp); }
.comparison-title.success{ color:var(--ok); }
.comparison-list li{ display:flex; align-items:flex-start; gap:10px; font-size:0.88rem; color:var(--mute); padding:8px 0; border-bottom:1px dotted var(--line-soft); }
.comparison-list li:last-child{ border-bottom:none; }
.comparison-list li svg{ width:15px; height:15px; flex:none; margin-top:2px; }

/* FAQ (index.html / metadata-viewer.html / privacy-checker.html pattern —
   JS toggles .active on .faq-question + .faq-answer, wrapped in .faq-container) */
.faq-container{ margin:0 auto; border-top:1px solid var(--line); }
.faq-container .faq-item{ border-bottom:1px solid var(--line); }
.faq-container .faq-question{
  display:flex; justify-content:space-between; align-items:center;
  padding:18px 4px; cursor:pointer; font-weight:600; font-size:0.98rem;
  transition:color .15s ease;
}
.faq-container .faq-question:hover{ color:var(--stamp); }
.faq-container .faq-question .faq-chevron{ width:16px; height:16px; color:var(--mute); transition:transform .15s ease; flex:none; }
.faq-container .faq-question.active .faq-chevron{ transform:rotate(180deg); color:var(--stamp); }
.faq-container .faq-answer{ max-height:0; overflow:hidden; transition:max-height .2s ease; }
.faq-container .faq-answer.active{ max-height:400px; }
.faq-container .faq-answer p{ color:var(--mute); font-size:0.9rem; padding:0 4px 18px; }

/* contact.html: collapsed-by-default FAQ, toggled by contact.js (display:none/block) */
.uk-card.uk-card-body.faq-section .faq-item{ padding:18px 0; border-top:1px dotted var(--line); }
.uk-card.uk-card-body.faq-section .faq-item:first-child{ border-top:none; }
.uk-card.uk-card-body.faq-section .faq-question{
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  cursor:pointer; font-weight:600; font-size:0.98rem; margin-bottom:0;
}
.uk-card.uk-card-body.faq-section .faq-question:hover{ color:var(--stamp); }
.uk-card.uk-card-body.faq-section .faq-question .faq-chevron{ width:16px; height:16px; color:var(--mute); transition:transform .15s ease; flex:none; }
.uk-card.uk-card-body.faq-section .faq-question.active .faq-chevron{ transform:rotate(180deg); color:var(--stamp); }
.uk-card.uk-card-body.faq-section .faq-answer{ color:var(--mute); font-size:0.9rem; padding-top:10px; }
.uk-card.uk-card-body.faq-section > h2{ font-size:1.4rem; margin-bottom:6px; }
.uk-card.uk-card-body.faq-section > p.uk-text-muted{ color:var(--mute); margin-bottom:20px; }

/* ---------- Footer ---------- */
.site-footer{ border-top:1px solid var(--line); margin-top:40px; }
.footer-content{ max-width:1120px; margin:0 auto; padding:48px 32px 28px; }
.footer-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; margin-bottom:32px; }
.footer-section h3{
  font-family:'Courier Prime'; font-size:0.78rem; letter-spacing:0.04em;
  color:var(--mute); margin-bottom:14px;
}
.footer-section ul{ display:flex; flex-direction:column; gap:10px; }
.footer-section a{ color:var(--ink); text-decoration:none; font-size:0.92rem; }
.footer-section a:hover{ border-bottom:1px solid var(--ink); }
.footer-bottom{
  border-top:1px solid var(--line); padding-top:20px;
  font-family:'Courier Prime'; font-size:0.78rem; color:var(--mute);
}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .main-grid.header-section-grid{ grid-template-columns:1fr; }
  #results .main-grid, .privacy-strip-grid, .comparison-grid{ grid-template-columns:1fr; }
  .how-to-steps{ grid-template-columns:1fr 1fr; }
  .reasons-grid, .metadata-types-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:600px){
  .how-to-steps, .reasons-grid, .metadata-types-grid{ grid-template-columns:1fr; }
  .hero-section h1{ font-size:2rem; }
  .uk-container, .header-container, .footer-content{ padding-left:20px; padding-right:20px; }
}

/* ==========================================================================
   Shared page furniture: breadcrumb, page header, article layout
   Used by help / faq / privacy / terms / contact
   ========================================================================== */
.breadcrumb{
  padding:20px 0 0; font-family:'Courier Prime'; font-size:0.8rem; color:var(--mute);
}
.breadcrumb a{ color:var(--mute); text-decoration:none; border-bottom:1px dotted var(--mute); }
.breadcrumb a:hover{ color:var(--ink); }

.page-header{ padding:28px 0 44px; border-bottom:1px solid var(--line); margin-bottom:44px; }
.page-header h1{ font-size:2.1rem; max-width:22ch; }
.page-header p{ color:var(--mute); margin-top:14px; max-width:60ch; font-size:1.02rem; }
.last-updated{
  display:inline-block; font-family:'Courier Prime'; font-size:0.76rem; color:var(--stamp);
  border:1px solid var(--stamp); padding:3px 9px; margin-top:16px; margin-bottom:36px;
}

/* Article layout (help / privacy / terms) */
.help-layout{ display:block; }
.help-content, .privacy-content, .terms-content, .about-content, .faq-content{ max-width:74ch; padding-bottom:70px; }
.help-section, .privacy-section, .terms-section, .about-section{
  padding:36px 0; border-top:1px solid var(--line);
}
.help-section:first-of-type, .privacy-section:first-of-type, .terms-section:first-of-type, .about-section:first-of-type{ border-top:none; padding-top:0; }
.help-section h2, .privacy-section h2, .terms-section h2, .about-section h2{
  font-size:1.4rem; margin-bottom:14px; display:flex; align-items:baseline; gap:10px;
}
.section-number{
  font-family:'Courier Prime'; color:var(--stamp); font-size:0.85rem; font-weight:700;
}
.help-section h3, .privacy-subsection h3, .terms-subsection h3{
  font-size:1.05rem; margin:22px 0 10px;
}
.privacy-subsection, .terms-subsection{ margin-top:18px; }
.help-section p, .privacy-section p, .terms-section p, .about-section p,
.privacy-subsection p, .terms-subsection p{ color:var(--mute); font-size:0.96rem; margin-bottom:8px; }
.help-section ul, .privacy-list, .terms-list{ margin:12px 0 12px 0; }
.help-section li, .privacy-list li, .terms-list li{
  color:var(--mute); font-size:0.94rem; padding:6px 0 6px 18px; position:relative;
  border-bottom:1px dotted var(--line-soft);
}
.help-section li::before, .privacy-list li::before, .terms-list li::before{
  content:"–"; position:absolute; left:0; color:var(--stamp);
}
.help-section li strong, .privacy-list li strong, .terms-list li strong{ color:var(--ink); }
.help-section li:last-child, .privacy-list li:last-child, .terms-list li:last-child{ border-bottom:none; }

.contact-info{ color:var(--mute); font-size:0.94rem; }
.contact-info a{ color:var(--ink); border-bottom:1px solid var(--line); text-decoration:none; }

/* Alert / highlight boxes */
.alert, .highlight-box{
  border:1px solid var(--line); border-left:3px solid var(--stamp);
  background:var(--panel); padding:16px 18px; margin:18px 0; font-size:0.92rem; color:var(--ink);
}
.alert strong, .highlight-box strong{ font-family:'Courier Prime'; color:var(--stamp); }
.alert-success{ border-left-color:var(--ok); }
.alert-success strong{ color:var(--ok); }
.alert-warning{ border-left-color:#8a6d1f; }
.alert-warning strong{ color:#8a6d1f; }

/* Step guide (help.html) — a genuine sequence */
.step-guide{ display:flex; flex-direction:column; }
.step-guide .step{ display:flex; gap:20px; padding:20px 0; border-top:1px dotted var(--line); }
.step-guide .step:first-child{ border-top:none; }
.step-number{
  flex:none; width:30px; height:30px; border:1px solid var(--stamp); color:var(--stamp);
  display:flex; align-items:center; justify-content:center; font-family:'Courier Prime';
  font-weight:700; font-size:0.85rem;
}
.step-guide .step-content h3{ margin-top:0; }

/* Troubleshooting */
.troubleshooting-item{ padding:22px 0; border-top:1px dotted var(--line); }
.troubleshooting-item:first-child{ border-top:none; }
.troubleshooting-item h3{ font-size:1.02rem; margin-bottom:8px; }
.troubleshooting-item .solution{
  font-family:'Courier Prime'; font-size:0.76rem; letter-spacing:0.05em; color:var(--stamp);
  margin-bottom:8px;
}

/* Rights grid (privacy.html) */
.rights-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); margin:16px 0; }
.rights-item{ background:var(--bg); padding:16px 18px; font-size:0.92rem; color:var(--mute); }
.rights-item strong{ display:block; color:var(--ink); font-family:'Courier Prime'; font-size:0.85rem; margin-bottom:4px; }

/* ==========================================================================
   Tool pages: metadata-viewer / privacy-checker
   ========================================================================== */
.viewer-grid{
  display:grid; grid-template-columns:1fr 1.1fr; gap:1px; background:var(--line);
  border:1px solid var(--line); margin-bottom:1px;
}
.viewer-grid > div{ background:var(--bg); padding:28px; }
.image-preview-container, .image-preview-section{ display:flex; flex-direction:column; align-items:center; }
.image-preview-container .image-preview, .image-preview-section .image-preview{ border:1px solid var(--line); max-width:100%; }

.metadata-tools{ display:flex; flex-direction:column; gap:12px; margin-bottom:16px; }
.metadata-search{ width:100%; }
.view-toggle{ display:flex; border:1px solid var(--line); }
.view-toggle button{
  flex:1; background:var(--bg); border:none; border-right:1px solid var(--line);
  padding:10px; font-family:'Courier Prime'; font-size:0.8rem; color:var(--mute); cursor:pointer;
}
.view-toggle button:last-child{ border-right:none; }
.view-toggle button.active{ background:var(--redact); color:var(--bg); }

.export-buttons{ display:flex; gap:1px; background:var(--line); border:1px solid var(--line); margin-bottom:16px; }
.export-button{
  flex:1; background:var(--bg); border:none; padding:10px; font-size:0.82rem;
  color:var(--ink); cursor:pointer; font-weight:600;
}
.export-button:hover{ background:var(--panel); }

.analysis-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.stat-item{ background:var(--bg); padding:16px 10px; text-align:center; }
.stat-value{ font-family:'Courier Prime'; font-size:1.3rem; font-weight:700; color:var(--stamp); }
.stat-label{ font-size:0.72rem; color:var(--mute); margin-top:4px; text-transform:uppercase; letter-spacing:0.04em; }

.metadata-categories{
  display:grid; grid-template-columns:1fr 1fr; gap:1px; align-items:start;
  background:var(--line); border:1px solid var(--line); margin-top:1px;
}
.category-card{ background:var(--bg); border:none; }
.category-header{
  display:flex; align-items:center; gap:10px; padding:14px 20px; cursor:pointer;
  background:var(--panel);
}
.category-header .category-icon{ width:14px; height:14px; color:var(--mute); transition:transform .15s ease; }
.category-header.collapsed .category-icon{ transform:rotate(-90deg); }
.category-title{ flex:1; font-family:'Courier Prime'; font-size:0.9rem; font-weight:700; }
.category-count{
  font-family:'Courier Prime'; font-size:0.76rem; color:var(--mute);
  border:1px solid var(--line); padding:2px 8px;
}
.category-card.privacy-sensitive .category-header{ border-left:3px solid var(--stamp); }
.category-card.privacy-technical .category-header{ border-left:3px solid var(--mute); }
.category-card.privacy-safe .category-header{ border-left:3px solid var(--ok); }
.category-content{ padding:6px 20px; max-height:2000px; overflow:hidden; transition:max-height .2s ease, padding .2s ease; }
.category-content.collapsed{ max-height:0; padding:0 20px; }

.how-to-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.step-card{ background:var(--bg); padding:24px 20px; }
.step-card .step-number{ margin-bottom:14px; }
.step-title{ display:flex; align-items:center; gap:8px; font-size:1rem; margin-bottom:8px; }
.step-icon{ width:16px; height:16px; color:var(--stamp); flex:none; }
.step-description{ color:var(--mute); font-size:0.86rem; }

.features-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.feature-card{ background:var(--bg); padding:24px 22px; }
.feature-icon{ width:20px; height:20px; color:var(--stamp); margin-bottom:12px; }
.feature-title{ font-size:1rem; margin-bottom:8px; }
.feature-description{ color:var(--mute); font-size:0.88rem; }

/* privacy-checker: score + analysis cards */
.privacy-overview{ display:flex; flex-direction:column; justify-content:center; gap:20px; }
.privacy-score{ display:flex; align-items:center; gap:20px; }
.score-circle{
  flex:none; width:74px; height:74px; border:2px solid var(--stamp); color:var(--stamp);
  display:flex; align-items:center; justify-content:center; font-family:'Courier Prime';
  font-size:1.8rem; font-weight:700;
}
.score-circle.score-low{ border-color:var(--ok); color:var(--ok); }
.score-circle.score-medium{ border-color:#8a6d1f; color:#8a6d1f; }
.score-circle.score-high{ border-color:var(--stamp); color:var(--stamp); }
.score-title{ font-size:1.1rem; }
.score-description{ color:var(--mute); font-size:0.88rem; margin-top:4px; }
.threat-summary{ display:flex; flex-wrap:wrap; gap:8px; }
.threat-badge{
  font-family:'Courier Prime'; font-size:0.74rem; border:1px solid var(--line);
  padding:4px 10px; color:var(--mute); background:var(--bg) !important;
}
.threat-badge.threat-location, .threat-badge.threat-identity{ border-color:var(--stamp) !important; color:var(--stamp) !important; }
.threat-badge.threat-timing, .threat-badge.threat-device{ border-color:#8a6d1f !important; color:#8a6d1f !important; }

.analysis-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); border-top:none; }
.analysis-card{ background:var(--bg); padding:24px; }
.card-header{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.card-icon{ width:26px; height:26px; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; flex:none; color:var(--mute); }
.card-title{ flex:1; font-size:0.98rem; }
.risk-level{
  font-family:'Courier Prime'; font-size:0.72rem; border:1px solid var(--line); padding:3px 8px; color:var(--mute);
}
.risk-level.risk-low{ border-color:var(--ok); color:var(--ok); }
.risk-level.risk-medium{ border-color:#8a6d1f; color:#8a6d1f; }
.risk-level.risk-high{ border-color:var(--stamp); color:var(--stamp); }
.finding-list{ display:flex; flex-direction:column; gap:1px; background:var(--line-soft); }
.finding-item{ background:var(--bg); padding:10px 12px; font-size:0.86rem; }
.finding-title{ font-weight:600; display:block; }
.finding-description{ color:var(--mute); display:block; margin-top:2px; }
.finding-impact{
  display:inline-block; margin-top:6px; font-family:'Courier Prime'; font-size:0.7rem;
  border:1px solid var(--line); padding:2px 7px; color:var(--mute);
}
.finding-impact.impact-high{ border-color:var(--stamp); color:var(--stamp); }
.finding-impact.impact-medium{ border-color:#8a6d1f; color:#8a6d1f; }
.finding-impact.impact-low, .finding-impact.impact-info{ border-color:var(--ok); color:var(--ok); }
.location-map-container{ margin-top:14px; }
.location-map-container .location-map{ width:100%; height:200px; border:1px solid var(--line); filter:grayscale(0.4); }
.location-coords{ display:flex; flex-direction:column; gap:4px; margin-top:10px; }
.coord-item{ display:flex; justify-content:space-between; font-size:0.84rem; }
.coord-item .coord-label{ color:var(--mute); font-family:'Courier Prime'; }

.recommendations{ border:1px solid var(--line); border-top:none; padding:24px; }
.recommendations-header{ display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.recommendations-list{ display:flex; flex-direction:column; gap:1px; background:var(--line-soft); }
.recommendation-item{ background:var(--bg); display:flex; gap:14px; padding:14px; align-items:flex-start; }
.recommendation-priority{
  flex:none; width:24px; height:24px; border:1px solid var(--stamp); color:var(--stamp);
  display:flex; align-items:center; justify-content:center; font-family:'Courier Prime'; font-size:0.78rem; font-weight:700;
}
.recommendation-priority.priority-2{ border-color:#8a6d1f; color:#8a6d1f; }
.recommendation-priority.priority-3{ border-color:var(--mute); color:var(--mute); }
.recommendation-title{ font-weight:600; font-size:0.92rem; }
.recommendation-description{ color:var(--mute); font-size:0.86rem; margin-top:2px; }

.threats-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.threat-card{ background:var(--bg); padding:26px; }
.threat-icon{ display:none; }
.threat-card::before{ content:"CRITICAL"; font-family:'Courier Prime'; font-size:0.68rem; color:var(--stamp); letter-spacing:0.05em; display:block; margin-bottom:8px; }
.threat-card.warning::before{ content:"NOTABLE"; color:#8a6d1f; }
.threat-title{ font-size:1.02rem; margin-bottom:8px; padding-bottom:10px; border-bottom:1px solid var(--line-soft); }
.threat-description{ color:var(--mute); font-size:0.9rem; margin-bottom:12px; }
.threat-examples-title{ font-family:'Courier Prime'; font-size:0.74rem; color:var(--mute); margin-bottom:6px; }
.threat-examples-list{ color:var(--mute); font-size:0.84rem; }

.risk-levels-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.risk-level-card{ background:var(--bg); padding:26px; text-align:center; }
.risk-score{
  width:52px; height:52px; margin:0 auto 14px; border:2px solid; display:flex; align-items:center;
  justify-content:center; font-family:'Courier Prime'; font-size:1.4rem; font-weight:700;
}
.risk-score.low, .risk-level-title.low{ border-color:var(--ok); color:var(--ok); }
.risk-score.medium, .risk-level-title.medium{ border-color:#8a6d1f; color:#8a6d1f; }
.risk-score.high, .risk-level-title.high{ border-color:var(--stamp); color:var(--stamp); }
.risk-level-title{ font-size:1rem; margin-bottom:8px; }
.risk-level-description{ color:var(--mute); font-size:0.88rem; }

.practices-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.practice-card{ background:var(--bg); padding:24px 22px; }
.practice-number{ font-family:'Courier Prime'; color:var(--stamp); font-size:0.85rem; font-weight:700; margin-bottom:10px; }
.practice-title{ font-size:0.98rem; margin-bottom:8px; }
.practice-description{ color:var(--mute); font-size:0.86rem; }

/* ==========================================================================
   faq.html — its own toggle mechanism (parent .faq-item.active)
   ========================================================================== */
.faq-category-title{
  font-family:'Courier Prime'; font-size:0.85rem; letter-spacing:0.03em;
  color:var(--mute); margin:36px 0 4px; padding-bottom:10px; border-bottom:1px solid var(--line);
}
section.faq-section .faq-category-title:first-child{ margin-top:0; }
section.faq-section + section.faq-section{ margin-top:44px; }
section.faq-section .faq-item{ border-bottom:1px solid var(--line); }
section.faq-section .faq-question{
  display:flex; justify-content:space-between; align-items:center;
  padding:18px 4px; cursor:pointer; font-weight:600; font-size:0.98rem;
  transition:color .15s ease;
}
section.faq-section .faq-question:hover{ color:var(--stamp); }
section.faq-section .faq-toggle{ width:16px; height:16px; color:var(--mute); flex:none; transition:transform .15s ease; }
section.faq-section .faq-item.active .faq-toggle{ transform:rotate(180deg); color:var(--stamp); }
.faq-answer-content{ padding:0 4px 18px; color:var(--mute); font-size:0.9rem; max-width:66ch; }
section.faq-section .faq-item .faq-answer{ max-height:0; overflow:hidden; transition:max-height .2s ease; }
section.faq-section .faq-item.active .faq-answer{ max-height:600px; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); margin-bottom:44px; }
.contact-grid > div{ background:var(--bg); padding:28px; }
.contact-method{ display:flex; align-items:flex-start; gap:14px; padding:16px 0; border-top:1px dotted var(--line); }
.contact-method:first-child{ border-top:none; }
.contact-icon{ width:20px; height:20px; color:var(--stamp); flex:none; margin-top:2px; }
.response-time{ font-family:'Courier Prime'; font-size:0.8rem; color:var(--stamp); margin-top:16px; }
.uk-text-center{ text-align:center; }
.uk-text-large{ font-size:1.15rem; }
.uk-margin-large{ margin-top:40px; margin-bottom:40px; }

/* ==========================================================================
   404 / error page
   ========================================================================== */
.error-container{ display:flex; align-items:center; justify-content:center; min-height:60vh; padding:60px 0; }
.error-content{ text-align:center; max-width:480px; }
.error-icon{ width:56px; height:56px; margin:0 auto 20px; color:var(--stamp); }
.error-code{ font-family:'Courier Prime'; font-size:4rem; font-weight:700; color:var(--stamp); line-height:1; }
.error-title{ font-size:1.4rem; margin:14px 0 10px; }
.error-message{ color:var(--mute); font-size:0.98rem; margin-bottom:28px; }
.help-text{ color:var(--mute); font-size:0.86rem; margin-bottom:24px; }
.actions{ display:flex; gap:14px; justify-content:center; }
.btn{ padding:13px 24px; text-decoration:none; font-weight:600; font-size:0.92rem; border:1px solid var(--redact); }
.btn-primary{ background:var(--redact); color:var(--bg); }
.btn-primary:hover{ background:#000; }
.btn-secondary{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-secondary:hover{ border-color:var(--redact); }

@media (max-width:900px){
  .viewer-grid, .analysis-grid, .contact-grid, .rights-grid{ grid-template-columns:1fr; }
  .how-to-grid, .features-grid, .threats-grid, .risk-levels-grid, .practices-grid{ grid-template-columns:1fr 1fr; }
  .analysis-stats{ grid-template-columns:1fr 1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:600px){
  .how-to-grid, .features-grid, .threats-grid, .risk-levels-grid, .practices-grid, .analysis-stats, .metadata-categories{ grid-template-columns:1fr; }
  .actions{ flex-direction:column; }
  .footer-grid{ grid-template-columns:1fr; }
}