@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cinzel-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: 'Cinzel';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cinzel-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;
}

/* ── FONTS ───────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 500;
  font-display: optional;
  src: url('assets/fonts/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: 300 500;
  font-display: optional;
  src: url('assets/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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── PAPER DESIGN SYSTEM ────────────────────────────────────────────────── */
:root {
  --bg:          #F7F7F4;
  --surface:     #FFFFFF;
  --surface-alt: #F4F4F0;
  --text:        #1A1A1A;
  --text-muted:  #6B7280;
  --border:      #F3F4F6;       /* gray-100 */
  --border-mid:  rgba(229,231,235,.5); /* gray-200/50 */

  --orange:    #f5a623;
  --orange-dk: #d4891a;

  /* radius scale */
  --r-sm:   0.25rem;
  --r-md:   0.5rem;
  --r-lg:   1rem;    /* 16px */
  --r-xl:   1.5rem;  /* 24px */
  --r-2xl:  2rem;    /* 32px */
  --r-3xl:  3rem;    /* 48px */
  --r-full: 9999px;

  --shadow-sm:   0 1px 2px rgba(0,0,0,.04), 0 1px 6px rgba(0,0,0,.03);
  --shadow-hero: 0 20px 60px -15px rgba(0,0,0,.06);
  --max: 1280px;
}

/* ── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-gutter: stable; height: 100%; overflow: hidden; }

/* ── BASE ────────────────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  height: 100%;
  overflow: hidden;
  margin: 0;
}

/* Actual scroll container: keeps the page's scroll gesture from reaching the
   WKWebView root, which is what lets iOS/Chrome-iOS rubber-band past the
   fixed mobile call bar at the bottom. */
#scroll-area {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  /* paper diagonal stripe texture */
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(0,0,0,.03),
    rgba(0,0,0,.03) 1px,
    transparent 1px,
    transparent 1.5rem
  );
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: .6; }

/* ── NAV ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1A1A1A;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 4.25rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-size: .875rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo img { height: 2rem; width: auto; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  font-size: .875rem;
  font-weight: 400;
  color: #fff;
  transition: opacity .15s;
}
.nav-links a:hover { opacity: .6; text-decoration: none; }

.nav-phone {
  font-size: .875rem;
  font-weight: 500;
  background: var(--orange);
  color: var(--text) !important;
  padding: .5rem 1.25rem;
  border-radius: var(--r-full);
  transition: opacity .15s;
  white-space: nowrap;
}
.nav-phone:hover { opacity: .8; text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.375rem;
  color: #fff;
  border-radius: var(--r-md);
}

@media (max-width: 1002px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .nav-phone { margin-left: auto; }

  .nav-links {
    display: none;
    position: absolute;
    top: 4.25rem;
    left: 0; right: 0;
    background: #1A1A1A;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 2rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    gap: 1.25rem;
    margin-left: 0;
    box-shadow: 0 12px 32px rgba(0,0,0,.06);
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--bg);
  border-radius: var(--r-3xl);
  border: 1px solid var(--border-mid);
  padding: 3rem 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 700px) {
  .hero { padding: 3rem 1.5rem; border-radius: var(--r-2xl); }
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}
.hero-logo {
  height: 15rem;
  width: 15rem;
}
.hero-company {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
  margin-bottom: 2rem;
}
@media (max-width: 600px) {
  .hero h1 { white-space: normal; }
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--text);
  color: #fff;
  font-family: inherit;
  font-weight: 400;
  font-size: 1rem;
  padding: 1rem 2.25rem;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { opacity: .85; text-decoration: none; color: #fff; transform: none; }
.btn:active { transform: scale(.98); }

.btn-secondary {
  display: inline-block;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-weight: 400;
  font-size: 1rem;
  padding: 1rem 2.25rem;
  border-radius: var(--r-full);
  border: 1px solid var(--border-mid);
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  line-height: 1;
}
.btn-secondary:hover { background: #f9f9f6; text-decoration: none; opacity: 1; }

.btn-orange {
  background: var(--orange);
  color: var(--text);
}
.btn-orange:hover { background: var(--orange-dk); opacity: 1; }

/* ── TRUST BAR ───────────────────────────────────────────────────────────── */
.partners-marquee {
  margin-top: 2rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.partners-track {
  display: flex;
  width: max-content;
  animation: scroll-logos 28s linear infinite;
}
.partners-slide {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 0 2rem;
}
.partner-logo {
  height: 10rem;
  width: 10rem;
  object-fit: contain;
  flex-shrink: 0;
}
.partner-logo-text {
  font-family: 'Cinzel', serif;
  font-weight: 400;
  font-size: 1.4rem;
  font-variant: small-caps;
  color: #6b6b6b;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
@keyframes scroll-logos {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECTIONS ────────────────────────────────────────────────────────────── */
section { padding: 0 2rem; margin: 0; }

.section-outer {
  padding: 1rem 2rem;
  background: rgba(255,255,255,.5);
  scroll-margin-top: 4.25rem;
}

#hero.section-outer,
#artiklid-hero.section-outer {
  padding-top: 2rem;
}

#tellimine.section-outer,
#artiklid-hero.section-outer {
  padding-bottom: 2rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-card {
  background: var(--bg);
  border-radius: var(--r-3xl);
  padding: 2.5rem;
  border: 1px solid var(--border-mid);
  text-align: center;
}

@media (max-width: 700px) {
  .section-card { padding: 2rem 1.5rem; border-radius: var(--r-2xl); }
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -.03em;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  max-width: 720px;
  margin: -1rem auto 2rem;
  line-height: 1.7;
}
.section-subtitle:last-child { margin-bottom: 0; }

/* ── STATS STRIP ─────────────────────────────────────────────────────────── */

.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-3xl);
  padding: 1.75rem 2rem;
  gap: 0;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
}

.stat-number {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 300;
  letter-spacing: -.03em;
  color: var(--orange);
  line-height: 1.1;
  text-align: center;
}

.stat-number--area {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.35;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border-mid);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .stats-strip {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 1.25rem;
  }
  .stat-item { flex: 1 1 40%; }
  .stat-divider { display: none; }
}

/* ── SERVICES GRID ───────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: left;
}
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  min-width: 0;
}
.service-card:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  background: var(--surface-alt);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -.01em;
  margin-bottom: .6rem;
  color: var(--text);
  overflow-wrap: break-word;
}

.service-card p {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  overflow-wrap: break-word;
}

/* ── CONTACT FORM ────────────────────────────────────────────────────────── */
.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .5rem;
  color: var(--text);
}
.form-group label .req { color: #DC2626; margin-left: 0.125rem; }

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #E5E7EB;
  border-radius: var(--r-lg);
  padding: .75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 300;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(26,26,26,.06);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.form-submit {
  margin-top: .75rem;
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  font-family: inherit;
  font-weight: 400;
  transition: opacity .15s;
}
.form-submit:hover { opacity: .85; }

.form-msg {
  margin-top: 1rem;
  padding: .875rem 1.125rem;
  border-radius: var(--r-lg);
  font-size: .9rem;
  border: 1px solid transparent;
  font-weight: 300;
}
.form-msg.success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.form-msg.error   { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  margin-top: auto;
}

.footer-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-left, .footer-right {
  font-size: .8rem;
  font-weight: 300;
  color: rgba(255,255,255,.85);
}
.footer-right {
  white-space: nowrap;
  flex-shrink: 0;
}
.footer-right a {
  color: rgba(255,255,255,.85);
  transition: color .15s;
}
.footer-right a:hover { color: #fff; text-decoration: none; }

@media (max-width: 860px) {
  .footer-bar { flex-direction: column; height: auto; padding: 1rem 1.25rem; gap: .35rem; text-align: center; }
}

/* ── REFERENCES ──────────────────────────────────────────────────────────── */
.refs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--border-mid);
}

.refs-tab {
  flex: 1 1 0;
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem .25rem .75rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  text-align: center;
  transition: color .15s, border-color .15s;
}

.refs-tab:hover {
  color: var(--text);
}

.refs-tab.active {
  color: var(--text);
  border-bottom-color: var(--orange);
}

.refs-tab--placeholder {
  color: var(--text-muted);
  opacity: .6;
}

.refs-panels { margin-top: 1.5rem; }

.refs-panel {
  display: none;
}

.refs-panel.active {
  display: block;
}

.refs-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.refs-group {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.refs-group-title {
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--orange-dk);
  margin: 0 0 .75rem;
}

.refs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.refs-list li {
  font-size: .9rem;
  color: var(--text);
  padding: .3rem 0;
}

.refs-year--placeholder .refs-year-label {
  color: var(--text-muted);
  border-bottom-color: var(--border-mid);
}

.refs-placeholder-note {
  font-size: .9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── BLOG LIST ───────────────────────────────────────────────────────────── */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.post-card img {
  width: 45%;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.post-card-body {
  padding: 1.75rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.post-card h2 {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: .75rem;
  color: var(--text);
  letter-spacing: -.02em;
}

.post-card-date {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 300;
}

.post-card p {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.post-card p:last-of-type { margin-bottom: 0; }

.post-card-body .post-body {
  margin-top: 1.25rem;
}

.post-body h2 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -.01em;
  margin: 1.25rem 0 .35rem;
}
.post-body h3 {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  margin: 1rem 0 .25rem;
}
.post-body ul,
.post-body ol {
  list-style: revert;
  padding-left: 1.5rem;
  margin: .5rem 0 .75rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.65;
}
.post-body li { margin-bottom: .25rem; color: var(--text-muted); }

@media (max-width: 600px) {
  .post-card { flex-direction: column; }
  .post-card img { width: 100%; }
}

/* ── PAGE HERO (blog / post pages) ───────────────────────────────────────── */
.page-hero {
  background: var(--text);
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
  border-radius: 0 0 var(--r-2xl) var(--r-2xl);
}
.page-hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -.04em;
}

/* ── SINGLE POST ─────────────────────────────────────────────────────────── */
.post-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.post-article h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: .6rem;
}
.post-article .post-meta { font-size: .85rem; color: var(--text-muted); font-weight: 300; margin-bottom: 2.5rem; }
.post-article .post-body { line-height: 1.85; font-size: 1.05rem; font-weight: 300; }
.post-article .post-body p { margin-bottom: 1.5rem; }
.post-article img { max-width: 100%; border-radius: var(--r-xl); margin: 1.25rem 0; box-shadow: var(--shadow-hero); }
.post-article .back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: .875rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: .02em;
}
.post-article .back-link:hover { color: var(--text); opacity: 1; text-decoration: none; }

/* ── MOBILE CALL BAR ─────────────────────────────────────────────────────── */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 200;
  background: var(--text);
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-call-bar a {
  display: block;
  text-align: center;
  color: #fff;
  font-weight: 400;
  font-size: .9rem;
  text-decoration: none;
  padding: 1rem 1.5rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
@media (max-width: 700px) {
  .mobile-call-bar { display: block; }
  .site-footer { padding-bottom: 3.625rem; }
}

/* ── ADMIN FAB ───────────────────────────────────────────────────────────── */
.admin-fab {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,.35);
  font-size: .75rem;
  font-family: inherit;
  font-weight: 300;
  padding: 0;
  transition: color .15s;
}
.admin-fab:hover { color: rgba(255,255,255,.7); }

/* ── MODAL ───────────────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open {
  display: flex;
}
.modal-card {
  background: #fff;
  border-radius: var(--r-2xl);
  padding: 2rem;
  width: 100%;
  width: 80vw;
  max-width: 80vw;
  max-height: 80vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -.02em;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: .25rem;
  line-height: 1;
}
.modal-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: .75rem 1rem;
  border-radius: var(--r-md);
  font-size: .875rem;
}
.modal-img-current {
  display: none;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
}
.modal-img-current.visible {
  display: flex;
}
.modal-img-filename {
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 300;
  word-break: break-all;
}

.btn-file-pick {
  display: inline-block;
  background: none;
  border: 1px solid var(--border-mid);
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 400;
  padding: .5rem 1.25rem;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: border-color .15s;
}
.btn-file-pick:hover { border-color: rgba(107,114,128,.5); }

.modal-file-chosen {
  margin-left: .75rem;
  font-size: .875rem;
  color: var(--text-muted);
  font-weight: 300;
}

.modal-actions {
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  padding-top: .5rem;
}

/* ── POST ADMIN ACTIONS ──────────────────────────────────────────────────── */
.post-admin-actions {
  display: flex;
  gap: .5rem;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.btn-post-edit, .btn-post-delete {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: .75rem;
  font-family: inherit;
  padding: .3rem .75rem;
  cursor: pointer;
  transition: background .15s;
}
.btn-post-edit:hover { background: var(--surface-alt); }
.btn-post-delete { border-color: #fecaca; color: #dc2626; }
.btn-post-delete:hover { background: #fef2f2; }

/* ── LIGHTBOX ────────────────────────────────────────────────────────────── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,.9);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: var(--r-lg);
}

/* ── UTILITIES ───────────────────────────────────────────────────────────── */
.loading { text-align: center; color: var(--text-muted); padding: 1rem; font-weight: 300; }
.empty   { text-align: center; color: var(--text-muted); padding: 1rem; font-size: 1.05rem; font-weight: 300; }
