/* ShareIt.onl - Design system (SUDOKU-BY skeleton, savefrom.net-inspired green theme) */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

/* The [hidden] attribute must always win, even over a component's display rule
   (e.g. .uploader-options { display: flex }). Without this, JS-toggled panels
   like the uploader Options panel stay visible and the toggle appears dead. */
[hidden] { display: none !important; }

:root {
  --green: #15803d;
  --green-dark: #166534;
  --green-darker: #14532d;
  --green-light: #f0fdf4;
  --green-border: #bbf7d0;
  --accent: #f59e0b;
  --accent-light: #fffbeb;
  --text: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e2e8f0;
  --border-focus: #86efac;
  --navy: #0f172a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow: 0 4px 12px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.12);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --nav-height: 62px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface-2);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code { background: var(--surface-3); padding: .15em .4em; border-radius: 4px; font-size: .9em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 820px; }
.section { padding: 3.5rem 0; }
.section-tinted { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 1.75rem; font-weight: 800; margin-bottom: .5rem; }
.section-subtitle { color: var(--text-muted); margin-bottom: 2rem; max-width: 640px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }
.text-muted { color: var(--text-muted); }
.mt-3 { margin-top: 1rem; } .mt-4 { margin-top: 1.75rem; }
.mb-3 { margin-bottom: 1rem; } .mb-4 { margin-bottom: 1.75rem; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .55rem 1.25rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; border: 2px solid transparent; transition: all .15s;
  text-decoration: none !important; white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-outline:hover { background: var(--green-light); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-sm { padding: .35rem .85rem; font-size: .8rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ============ Cards ============ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-body { padding: 1.5rem; }
.card-header {
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); font-weight: 600;
  display: flex; align-items: center; gap: .5rem; color: var(--text);
}
h2.card-header { font-size: 1.05rem; margin: 0; line-height: 1.3; }
.card-footer {
  padding: 1rem 1.5rem; border-top: 1px solid var(--border);
  background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius);
  color: var(--text-muted); font-size: .9rem;
}

/* ============ Grids ============ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ============ Badges ============ */
.badge {
  display: inline-block; padding: .2rem .7rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600;
}
.badge-green { background: var(--green-light); color: var(--green-darker); }

/* ============ Nav ============ */
.site-nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-height);
  background: var(--surface); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; height: var(--nav-height); gap: 1.5rem; }
.nav-logo {
  display: flex; align-items: center; gap: .55rem;
  font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none !important;
}
.logo-tld { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; flex: 1; }
.nav-links a, .nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .45rem .8rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  cursor: pointer; text-decoration: none !important;
}
.nav-links a:hover, .nav-dropdown-trigger:hover { background: var(--surface-3); color: var(--text); }
.nav-links a.active { color: var(--green-dark); background: var(--green-light); }
.nav-actions { display: flex; align-items: center; gap: .75rem; }

.nav-has-dropdown { position: relative; }
.nav-mega {
  position: absolute; top: calc(100% + .5rem); left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 1.25rem; width: 440px;
  opacity: 0; visibility: hidden; transition: all .15s;
}
.nav-has-dropdown:hover .nav-mega,
.nav-has-dropdown:focus-within .nav-mega { opacity: 1; visibility: visible; }
.nav-mega-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.nav-mega-heading {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-light); margin-bottom: .5rem;
}
.nav-mega-col a {
  display: block; padding: .4rem .5rem; border-radius: var(--radius-sm);
  font-size: .88rem; color: var(--text); text-decoration: none !important;
}
.nav-mega-col a:hover { background: var(--green-light); color: var(--green-dark); }
.nav-mega-footer { border-top: 1px solid var(--border); margin-top: 1rem; padding-top: 1rem; text-align: center; }

.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px; background: none; border: none; cursor: pointer;
}
.nav-hamburger span { height: 2.5px; background: var(--text); border-radius: 2px; transition: all .2s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-mobile-panel {
  position: fixed; inset: var(--nav-height) 0 0 0; z-index: 40;
  background: var(--surface); padding: 1.5rem;
  display: flex; flex-direction: column; gap: .25rem;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all .2s;
  overflow-y: auto;
}
.nav-mobile-panel.open { opacity: 1; visibility: visible; transform: none; }
.mob-link {
  padding: .8rem .75rem; border-radius: var(--radius-sm);
  font-weight: 600; color: var(--text); text-decoration: none !important;
  border-bottom: 1px solid var(--surface-3);
}
.mob-link:hover { background: var(--green-light); color: var(--green-dark); }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, var(--green-darker) 0%, var(--green-dark) 45%, var(--green) 100%);
  color: #fff; padding: 3.5rem 0 3rem; text-align: center;
}
.hero h1 { color: #fff; font-size: 2.7rem; margin-bottom: .75rem; letter-spacing: -.01em; }
.hero > .container > p { color: rgba(255,255,255,.88); font-size: 1.12rem; max-width: 640px; margin: 0 auto 2rem; }
.hero-compact { padding: 2.5rem 0 2.25rem; }
.hero-compact h1 { font-size: 2.1rem; }
.hero-trust {
  display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.75rem;
  margin-top: 1.5rem; font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.85);
}
.hero-trust-dark { color: var(--text-muted); justify-content: flex-start; }
.hero-eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: rgba(255,255,255,.8); margin-bottom: .5rem;
}
.share-cta { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.share-cta-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .share-cta { grid-template-columns: 1fr; } }

/* ============ Uploader ============ */
.uploader { max-width: 720px; margin: 0 auto; text-align: left; box-shadow: var(--shadow-lg); border: none; color: var(--text); }
.uploader-inner { padding: 1.5rem; }
.dropzone {
  border: 2px dashed var(--green-border); border-radius: var(--radius);
  background: var(--green-light); padding: 2.25rem 1.5rem; text-align: center;
  cursor: pointer; transition: all .15s; color: var(--green-dark);
}
.dropzone:hover, .dropzone.dragover { border-color: var(--green); background: #dcfce7; }
.dz-icon { margin: 0 auto .75rem; color: var(--green); }
.dz-title { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.dz-browse { color: var(--green-dark); text-decoration: underline; }
.dz-hint { font-size: .85rem; color: var(--text-muted); margin-top: .35rem; }

.file-list { list-style: none; margin-top: .75rem; }
.file-list li {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem .75rem; border-bottom: 1px solid var(--surface-3); font-size: .9rem;
}
.file-list .fl-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--text); }
.file-list .fl-size { color: var(--text-light); font-size: .82rem; }
.file-list .fl-remove {
  background: none; border: none; color: var(--text-light); cursor: pointer;
  font-size: 1.1rem; line-height: 1; padding: .25rem;
}
.file-list .fl-remove:hover { color: #ef4444; }

.uploader-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1rem; flex-wrap: wrap;
}
.expiry-label { font-size: .9rem; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: .5rem; }
.expiry-select {
  padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .9rem; background: var(--surface); color: var(--text);
}

.options-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  background: none; border: none; cursor: pointer; font-family: var(--font);
  font-size: .85rem; font-weight: 600; color: var(--text-muted); padding: .35rem .5rem;
  border-radius: var(--radius-sm);
}
.options-toggle:hover, .options-toggle.active { color: var(--green-dark); background: var(--green-light); }
.options-caret { transition: transform .18s ease; }
.options-toggle.active .options-caret { transform: rotate(180deg); }
.uploader-options {
  margin-top: 1rem; padding: 1.1rem; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface-2);
  display: flex; flex-direction: column; gap: 1rem;
}
.opt-field { display: flex; flex-direction: column; gap: .35rem; }
.opt-label { font-size: .85rem; font-weight: 600; color: var(--text); }
.opt-input {
  padding: .55rem .75rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .9rem;
}
.opt-input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-light); }
.opt-hint { font-size: .78rem; color: var(--text-light); }
.opt-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--text-muted); cursor: pointer; }
.opt-check input { margin-top: .2rem; width: 16px; height: 16px; accent-color: var(--green); flex-shrink: 0; }
.opt-check strong { color: var(--text); }

.share-badge {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem;
  padding: .5rem .85rem; border-radius: var(--radius-sm); font-size: .83rem; font-weight: 600;
  background: var(--green-light); color: var(--green-darker); border: 1px solid var(--green-border);
}
.share-badge-warn { background: var(--accent-light); color: #92400e; border-color: #fde68a; }
.lock-icon { color: var(--green); margin-bottom: 1rem; }
.password-form { max-width: 360px; margin: 1.25rem auto 0; }

.rolling-note {
  display: flex; align-items: flex-start; gap: .45rem; margin-top: 1rem;
  font-size: .8rem; color: var(--text-light); line-height: 1.5;
}
.rolling-note svg { flex-shrink: 0; margin-top: .1rem; color: var(--green); }

.progress-wrap { margin-top: 1.25rem; }
.progress-bar { height: 10px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green-dark), var(--green)); border-radius: 999px; transition: width .2s; }
.progress-label { font-size: .85rem; color: var(--text-muted); margin-top: .5rem; text-align: center; }

.upload-error {
  margin-top: 1rem; padding: .75rem 1rem; border-radius: var(--radius-sm);
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: .9rem;
}

.upload-result { margin-top: 1.25rem; }
.result-check {
  display: flex; align-items: center; gap: .5rem; color: var(--green-dark);
  font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem;
}
.result-link-row { display: flex; gap: .5rem; }
.result-link {
  flex: 1; padding: .65rem .85rem; border: 2px solid var(--green-border);
  border-radius: var(--radius-sm); font-family: var(--font); font-size: .95rem;
  background: var(--green-light); color: var(--text); font-weight: 600; min-width: 0;
}
.result-meta { display: flex; gap: 1.25rem; margin-top: 1.25rem; align-items: flex-start; }
.result-qr { border: 1px solid var(--border); border-radius: var(--radius-sm); flex-shrink: 0; }
.result-notes p { font-size: .9rem; margin-bottom: .6rem; }

/* ============ Home sections ============ */
.steps-grid .step-card .card-body { text-align: left; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--green);
  color: #fff; font-weight: 800; font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: .9rem;
}
.step-card h3 { margin-bottom: .5rem; }
.step-card p { margin-bottom: 0; font-size: .92rem; }

.tool-card { text-decoration: none !important; transition: all .2s; overflow: hidden; }
.tool-card:hover { border-color: var(--green); }
.tool-card h3 { margin-bottom: .4rem; color: var(--text); }
.tool-card p { font-size: .9rem; margin-bottom: .75rem; }
.tool-card-img { border-radius: var(--radius-sm); margin-bottom: 1rem; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.tool-card-cta { color: var(--green-dark); font-weight: 600; font-size: .9rem; }
.tool-card-guides { background: var(--green-light); border-color: var(--green-border); display: flex; }
.tool-card-guides .card-body { display: flex; flex-direction: column; justify-content: center; }

/* Featured device guides (iOS / PC) on the homepage */
.device-guides .device-guide { text-decoration: none !important; transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease; }
.device-guides .device-guide:hover { transform: translateY(-3px); border-color: var(--green); box-shadow: var(--shadow-md, 0 10px 30px rgba(16, 40, 24, .1)); }
.device-guide .card-body { display: flex; gap: 1.1rem; align-items: flex-start; }
.device-guide-ico { flex-shrink: 0; width: 54px; height: 54px; border-radius: 14px; background: var(--green-light); color: var(--green-dark); display: flex; align-items: center; justify-content: center; }
.device-guide-ico svg { width: 28px; height: 28px; }
.device-guide h3 { margin-bottom: .35rem; color: var(--text); }
.device-guide p { font-size: .92rem; color: var(--text-muted); margin-bottom: .6rem; }
@media (max-width: 480px) { .device-guide .card-body { flex-direction: column; gap: .7rem; } }

.feature-split { align-items: center; gap: 3rem; }
.feature-list { list-style: none; }
.feature-list li {
  padding: .7rem 0 .7rem 2rem; position: relative; color: var(--text-muted);
  border-bottom: 1px solid var(--surface-3); font-size: .95rem;
}
.feature-list li::before {
  content: '✓'; position: absolute; left: .25rem; color: var(--green);
  font-weight: 800;
}
.feature-list strong { color: var(--text); }
.feature-img-wrap img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); padding: .9rem .25rem; }
.faq-item summary {
  cursor: pointer; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex-shrink: 0; color: var(--text-light); transition: transform .2s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-answer { padding-top: .6rem; color: var(--text-muted); font-size: .93rem; }

/* ============ HowTo steps ============ */
.howto-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.howto-steps li {
  counter-increment: step; position: relative; padding: 0 0 1.1rem 3rem; margin: 0;
  color: var(--text-muted); line-height: 1.6;
}
.howto-steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff;
  font-weight: 700; font-size: .95rem; display: flex; align-items: center; justify-content: center;
}
.howto-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--green-border);
}

/* ============ Interactive task checklists ============ */
.article-body ul:has(> .task-item) { list-style: none; padding-left: 0; }
.task-item { margin-bottom: .5rem; }
.task-label { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; }
.task-label input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; margin-top: .1rem; flex-shrink: 0;
  border: 2px solid var(--green-border); border-radius: 5px; background: var(--surface);
  cursor: pointer; position: relative; transition: all .15s;
}
.task-label:hover input[type="checkbox"] { border-color: var(--green); }
.task-label input[type="checkbox"]:checked { background: var(--green); border-color: var(--green); }
.task-label input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.task-label input[type="checkbox"]:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.task-text { flex: 1; }
.task-label input[type="checkbox"]:checked + .task-text { color: var(--text-light); text-decoration: line-through; }

.faq-more-links { margin-top: 1.25rem; font-size: .88rem; color: var(--text-muted); }
.faq-more-links a { color: var(--green-dark); }

/* ============ FAQ hub ============ */
.faq-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.faq-jump a {
  padding: .4rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: var(--green-light); color: var(--green-darker); border: 1px solid var(--green-border);
  text-decoration: none !important;
}
.faq-jump a:hover { background: var(--green); color: #fff; border-color: var(--green); }
.faq-category { margin-bottom: 2.5rem; scroll-margin-top: calc(var(--nav-height) + 1rem); }
.faq-cat-title { font-size: 1.3rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--green-border); }
.faq-more { display: inline-block; margin-top: .6rem; font-weight: 600; font-size: .88rem; color: var(--green-dark); }
.faq-short-answer { font-size: 1.1rem; font-weight: 500; color: var(--text); margin: .5rem 0 1.5rem; padding: 1rem 1.25rem; background: var(--green-light); border-radius: var(--radius); border-left: 4px solid var(--green); }
.faq-contact-card { background: var(--green-light); border-color: var(--green-border); text-align: center; }
.faq-contact-card h3 { margin-bottom: .4rem; }

/* ============ Admin panel ============ */
.badge-red { background: #fef2f2; color: #b91c1c; }
.badge-gray { background: var(--surface-3); color: var(--text-muted); }
.btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.admin-stat { font-size: 1.8rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.admin-stat-l { font-size: .82rem; color: var(--text-muted); margin-top: .2rem; }
.admin-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.admin-search { display: inline-flex; gap: .5rem; margin-left: auto; }
.admin-table code, .admin-kv code { font-size: .85rem; }
.admin-kv th { white-space: nowrap; width: 160px; }
.admin-preview { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.admin-fileicon { height: 160px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border-radius: var(--radius-sm); font-weight: 700; color: var(--text-light); text-transform: uppercase; }
.admin-fname { font-weight: 600; font-size: .88rem; margin-top: .6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-danger { border-color: #fecaca; }

/* ============ Glossary / sitemap / search ============ */
.glossary-jump { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.glossary-jump a { padding: .3rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--green-light); color: var(--green-darker); border: 1px solid var(--green-border); text-decoration: none !important; }
.glossary-jump a:hover { background: var(--green); color: #fff; }
.glossary-list { margin: 0; }
.glossary-item { padding: 1rem 0; border-bottom: 1px solid var(--border); scroll-margin-top: calc(var(--nav-height) + 1rem); }
.glossary-item dt { font-weight: 700; font-size: 1.05rem; color: var(--text); margin-bottom: .3rem; }
.glossary-item dd { margin: 0; color: var(--text-muted); }
.sitemap-cols { align-items: start; }
.sitemap-heading { font-size: 1.05rem; margin-bottom: .75rem; padding-bottom: .4rem; border-bottom: 2px solid var(--green-border); }
.sitemap-links { list-style: none; margin: 0 0 1.5rem; }
.sitemap-links li { margin-bottom: .4rem; }
.sitemap-links a { color: var(--green-dark); font-size: .9rem; }
.search-form { display: flex; gap: .5rem; max-width: 560px; margin: 0 auto; }
.search-form input { flex: 1; padding: .65rem .9rem; border: 2px solid var(--green-border); border-radius: var(--radius-sm); font-family: var(--font); font-size: .95rem; }
.search-results .related-title .badge { margin-left: .4rem; }

/* ============ Breadcrumbs ============ */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: .4rem;
  font-size: .85rem; color: var(--text-muted); margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--green-dark); }
.breadcrumb .sep { color: var(--text-light); }
.breadcrumb-light { justify-content: center; margin-bottom: 1rem; color: rgba(255,255,255,.75); }
.breadcrumb-light a { color: rgba(255,255,255,.9); }
.breadcrumb-light .sep { color: rgba(255,255,255,.5); }

/* Global top breadcrumb bar - Aligned to the same container as the nav logo */
.breadcrumb-bar { background: var(--surface-2); border-bottom: 1px solid var(--border); }
.breadcrumb-bar .breadcrumb { margin: 0; padding: .7rem 0; }

/* ============ Guides ============ */
.cluster-block { margin-bottom: 3rem; }
.cluster-head h2 a { color: var(--text); }
.cluster-head h2 a:hover { color: var(--green-dark); text-decoration: none; }
.cluster-head { margin-bottom: 1.25rem; }
.cluster-head p { margin-bottom: 0; }

.article-card { text-decoration: none !important; transition: all .2s; overflow: hidden; display: flex; flex-direction: column; }
.article-card:hover { border-color: var(--green); }
.article-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.article-card h3 { font-size: .98rem; margin-bottom: .4rem; color: var(--text); }
.article-card p { font-size: .85rem; margin-bottom: .6rem; }
.article-card-meta { font-size: .78rem; color: var(--text-light); font-weight: 600; }

/* ============ Article layout ============ */
.article-layout {
  display: grid; grid-template-columns: 230px minmax(0, 1fr) 280px;
  gap: 2rem; align-items: start;
}
.article-toc-col, .article-side-col { position: sticky; top: calc(var(--nav-height) + 1.5rem); display: flex; flex-direction: column; gap: 1.25rem; }
.toc-card .card-header { font-size: .9rem; }
.article-toc { display: flex; flex-direction: column; padding: .75rem 0; }
.toc-link {
  padding: .35rem 1.25rem; font-size: .85rem; color: var(--text-muted);
  border-left: 3px solid transparent; text-decoration: none !important;
}
.toc-link:hover { color: var(--green-dark); }
.toc-link.active { color: var(--green-dark); border-left-color: var(--green); background: var(--green-light); }
.toc-l3 { padding-left: 2rem; font-size: .8rem; }

.article-main { min-width: 0; }
.article-main h1 { font-size: 2rem; margin: .6rem 0; }
.article-byline { font-size: .85rem; color: var(--text-light); margin-bottom: 1.25rem; }
.article-hero-img { border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 1.75rem; }

.article-body h2 {
  margin: 2.25rem 0 .9rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
}
.article-body h3 { margin: 1.5rem 0 .6rem; }
.article-body ul, .article-body ol { margin: 0 0 1rem 1.4rem; color: var(--text-muted); }
.article-body li { margin-bottom: .4rem; }
.article-body table {
  width: 100%; border-collapse: collapse; font-size: .88rem; margin: 1rem 0 1.5rem;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
}
.article-body th {
  padding: .65rem 1rem; font-weight: 700; text-align: left;
  border-bottom: 2px solid var(--border); background: var(--surface-2);
}
.article-body td { padding: .6rem 1rem; border-bottom: 1px solid var(--surface-3); color: var(--text-muted); }
.article-body tr:nth-child(even) td { background: var(--surface-2); }
/* Inline "Use ShareIt Now" CTA, injected after the first paragraph of guides/blog posts */
.inline-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  margin: 1.5rem 0; padding: 1.1rem 1.35rem;
  background: var(--green-light); border: 1px solid var(--green-border);
  border-radius: var(--radius); flex-wrap: wrap;
}
.inline-cta-copy { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.inline-cta-copy strong { color: var(--text); font-size: 1.02rem; font-weight: 700; }
.inline-cta-copy span { color: var(--text-muted); font-size: .9rem; }
.inline-cta-btn { flex-shrink: 0; white-space: nowrap; }
/* Amber accent variant (set `cta_color: amber` on a page) */
.inline-cta-amber { background: #fff7ed; border-color: #fed7aa; }
.inline-cta-amber .inline-cta-btn { background: #f59e0b; box-shadow: 0 6px 16px rgba(245, 158, 11, .28); }
.inline-cta-amber .inline-cta-btn:hover { background: #d97706; }
@media (max-width: 560px) {
  .inline-cta { flex-direction: column; align-items: stretch; text-align: left; }
  .inline-cta-btn { width: 100%; text-align: center; }
}

.callout, .article-body blockquote {
  border-left: 4px solid var(--green); background: var(--green-light);
  padding: .9rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.5rem;
  color: var(--text-muted);
}
.callout > :last-child { margin-bottom: 0; }
.callout ul, .callout ol { margin-bottom: 0; margin-left: 1.2rem; }
.callout > strong:first-child, .callout p:first-child strong:first-child { color: var(--text); }
.callout-tip { border-left-color: #0ea5e9; background: #f0f9ff; }
.callout-note { border-left-color: #64748b; background: var(--surface-2); }
.callout-warn { border-left-color: var(--accent); background: var(--accent-light); }
.callout-key { border-left-color: var(--green-dark); background: var(--green-light); }
.callout-title { display: block; font-weight: 700; color: var(--text); margin-bottom: .5rem; font-size: .95rem; }

.side-cta-card { background: var(--green-light); border-color: var(--green-border); }
.side-cta-card h3 { margin-bottom: .4rem; }
.side-cta-card p { font-size: .88rem; }
.related-list { display: flex; flex-direction: column; gap: 0; padding: .5rem 1.5rem; }
.related-item {
  padding: .75rem 0; border-bottom: 1px solid var(--surface-3);
  display: flex; flex-direction: column; gap: .15rem; text-decoration: none !important;
}
.related-item:last-child { border-bottom: none; }
.related-title { font-weight: 600; font-size: .88rem; color: var(--text); }
.related-item:hover .related-title { color: var(--green-dark); }
.related-meta { font-size: .76rem; color: var(--text-light); }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: var(--surface); }
.compare-table th { padding: .8rem 1rem; text-align: left; font-weight: 700; background: var(--surface-2); border-bottom: 2px solid var(--border); white-space: nowrap; }
.compare-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--surface-3); color: var(--text-muted); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .row-highlight td { background: var(--green-light); color: var(--text); }

.platform-tiles .platform-tile { text-decoration: none !important; transition: border-color .2s; text-align: center; }
.platform-tile:hover { border-color: var(--green); }
.platform-tile .card-body { display: flex; flex-direction: column; gap: .35rem; align-items: center; padding: 1.5rem 1rem; }
.pt-name { font-weight: 700; font-size: 1.05rem; color: var(--text); }
.pt-cta { font-size: .82rem; color: var(--green-dark); font-weight: 600; }

.external-tools { margin-top: 2.5rem; }
.external-tools-title { font-size: 1.15rem; margin-bottom: 1rem; }
.external-card { text-decoration: none !important; transition: border-color .2s; }
.external-card:hover { border-color: var(--green); }
.external-card-label {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; color: var(--green-dark); font-size: .95rem; margin-bottom: .35rem;
}
.external-card p { font-size: .88rem; margin-bottom: 0; }
.article-card .badge { margin-bottom: .5rem; }

.platform-note {
  margin-top: 1.25rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--accent-light); border: 1px solid #fde68a; color: #92400e; font-size: .9rem;
}

/* ============ Share view ============ */
.share-view-card .card-header svg { color: var(--green); }
.share-file-list { list-style: none; }
.share-file-list li {
  display: flex; align-items: center; gap: 1rem;
  padding: .8rem .25rem; border-bottom: 1px solid var(--surface-3);
}
.sf-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-size { color: var(--text-light); font-size: .85rem; }
.share-view-meta {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  margin-top: 1rem; font-size: .85rem; color: var(--text-muted);
}
.expired-body { padding: 3rem 2rem; }
.expired-icon { font-size: 2.5rem; font-weight: 800; color: var(--text-light); margin-bottom: 1rem; }
.expired-body h1 { font-size: 1.6rem; margin-bottom: .75rem; }

/* ============ Footer ============ */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(6, 1fr);
  gap: 1.5rem; padding-bottom: 2rem; border-bottom: 1px solid #1e293b;
}
.footer-brand { font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: .6rem; }
.footer-desc { font-size: .85rem; color: #94a3b8; margin-bottom: 0; }
.footer-heading {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: #64748b; margin-bottom: .75rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .45rem; }
.footer-links a { color: #cbd5e1; font-size: .87rem; text-decoration: none; }
.footer-links a:hover { color: #4ade80; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding-top: 1.5rem; font-size: .82rem; color: #64748b;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 260px; }
  .article-toc-col { display: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { justify-content: space-between; }
  .hero h1 { font-size: 2rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .feature-split { gap: 1.5rem; }
  .article-layout { grid-template-columns: 1fr; }
  .article-side-col { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .result-meta { flex-direction: column; }
  .uploader-controls { flex-direction: column; align-items: stretch; }
  .uploader-controls .btn { width: 100%; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero h1 { font-size: 1.65rem; }
  .container { padding: 0 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
