:root{
  --ink:#0b1020;
  --paper:#f7f3ea;
  --paper2:#fffdf7;
  --navy:#0b2a5b;

  /* Army accents */
  --army:#4b5320;        /* olive drab */
  --army2:#2f3a1b;       /* deep olive */
  --gold:#caa43b;        /* warm brass */

  --blue:#1d4ed8;
  --red:#dc2626;

  --shadow: 0 18px 40px rgba(0,0,0,.18);
  --shadow2: 0 10px 24px rgba(0,0,0,.14);
  --line: rgba(11,16,32,.12);
  --muted: rgba(11,16,32,.66);
  --muted2: rgba(11,16,32,.54);
}


*{box-sizing:border-box}
html,body{
  margin:0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(900px 600px at 10% 20%, rgba(29,78,216,.14), transparent 55%),
    radial-gradient(900px 600px at 90% 10%, rgba(220,38,38,.12), transparent 55%),
    radial-gradient(700px 520px at 70% 80%, rgba(75,83,32,.22), transparent 60%),
    radial-gradient(700px 520px at 18% 78%, rgba(47,58,27,.20), transparent 60%),
    linear-gradient(180deg, rgba(202,164,59,.10), transparent 45%),
    #0a1022;
}

/* faint camo speckle */
body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.18;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(75,83,32,.50) 0 18px, transparent 19px),
    radial-gradient(circle at 80% 35%, rgba(47,58,27,.55) 0 22px, transparent 23px),
    radial-gradient(circle at 55% 70%, rgba(202,164,59,.35) 0 14px, transparent 15px),
    radial-gradient(circle at 30% 78%, rgba(75,83,32,.40) 0 16px, transparent 17px);
  background-size: 520px 420px;
  mix-blend-mode: overlay;
}

 /* big ribbon backdrop */
.backdrop{
  position: fixed;
  inset: -200px -200px auto -200px;
  height: 680px;
  pointer-events:none;
  transform: rotate(-6deg);
  opacity:.95;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,.28));
}
.backdrop svg{width:100%; height:100%}

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

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(247,243,234,.86);
  border-bottom: 1px solid rgba(11,16,32,.10);
}

.header-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand-badge{
  width: 38px; height: 38px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(75,83,32,.28), rgba(202,164,59,.18)),
    var(--paper2);
  border: 1px solid rgba(11,16,32,.14);
  box-shadow: var(--shadow2);
  display:grid;
  place-items:center;
  font-weight: 900;
  color: var(--navy);
}
.brand-title{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand-title strong{
  font-size: .98rem;
  letter-spacing:.2px;
}
.brand-title span{
  font-size: .84rem;
  color: var(--muted);
}

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
}
.nav .tiny{
  font-size:.85rem;
  color: var(--muted2);
  padding-left: 10px;
  border-left: 1px solid rgba(11,16,32,.12);
}

.btn{
  appearance:none;
  border:1px solid rgba(11,16,32,.16);
  background: var(--paper2);
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 850;
  cursor:pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.btn:hover{filter:brightness(1.03)}
.btn-primary{
  background:
    linear-gradient(135deg, rgba(75,83,32,.28), rgba(202,164,59,.18)),
    var(--paper2);
  border-color: rgba(11,16,32,.18);
}

.wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 26px;
  position: relative;
}

.layout{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 980px){
  .layout{grid-template-columns: 380px 1fr; gap: 18px;}
  .sticky{position: sticky; top: 86px; align-self:start;}
}

.panel{
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.10);
}

/* POSTCARD panel */
.postcard{
  background: linear-gradient(180deg, rgba(247,243,234,.98), rgba(255,253,247,.98));
  border: 1px solid rgba(11,16,32,.12);
}
.postcard .top{
  padding: 16px 16px 12px;
  background:
    linear-gradient(90deg, rgba(29,78,216,.10), transparent 45%),
    linear-gradient(90deg, transparent 55%, rgba(220,38,38,.09));
}
.kicker{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.kicker .tag{
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  color: rgba(11,42,91,.86);
  text-transform: uppercase;
}
.stamp{
  width: 62px; height: 62px;
  border-radius: 14px;
  border: 2px dashed rgba(11,16,32,.22);
  display:grid;
  place-items:center;
  background:
    radial-gradient(circle at 30% 30%, rgba(202,164,59,.38), transparent 55%),
    linear-gradient(135deg, rgba(29,78,216,.18), rgba(220,38,38,.16)),
    rgba(255,255,255,.55);
  transform: rotate(6deg);
  box-shadow: 0 12px 22px rgba(0,0,0,.12);
}
.stamp svg{opacity:.95}

.postcard h1{
  margin: 12px 0 6px 0;
  font-size: 1.65rem;
  letter-spacing: .2px;
}
.postcard p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: .98rem;
}
.postcard .mid{
  padding: 14px 16px;
  border-top: 1px solid rgba(11,16,32,.10);
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.step{
  display:flex;
  gap: 10px;
  align-items:flex-start;
}
.step .dot{
  width: 26px; height: 26px;
  border-radius: 10px;
  background: rgba(11,42,91,.08);
  border: 1px solid rgba(11,16,32,.14);
  display:grid;
  place-items:center;
  font-weight: 900;
  color: var(--navy);
}
.step .txt strong{display:block; font-size:.92rem}
.step .txt span{display:block; font-size:.9rem; color: var(--muted)}
.wax{
  margin-top: 4px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(11,16,32,.10);
}
.wax .seal{
  width: 56px; height: 56px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.25), transparent 55%),
    radial-gradient(circle at 40% 60%, rgba(0,0,0,.12), transparent 60%),
    linear-gradient(135deg, rgba(75,83,32,.94), rgba(47,58,27,.94));
  box-shadow: 0 16px 26px rgba(0,0,0,.20);
  display:grid;
  place-items:center;
  color: rgba(255,255,255,.92);
  font-weight: 950;
  letter-spacing: .08em;
}
.wax .note{
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}

/* LETTER panel */
.letter{
  background: linear-gradient(180deg, rgba(255,253,247,.96), rgba(247,243,234,.98));
  border: 1px solid rgba(11,16,32,.12);
  position: relative;
}
.letter::before{
  content:"";
  position:absolute;
  top:0; bottom:0; left:-1px;
  width: 18px;
  background:
    radial-gradient(circle at 9px 12px, rgba(11,16,32,.18) 3px, transparent 3.2px) 0 0/18px 24px;
  opacity:.55;
}
.letter-inner{
  padding: 16px 16px 18px 26px;
}
.letter h2{
  margin: 0 0 6px 0;
  font-size: 1.25rem;
  letter-spacing:.2px;
}
.letter .sub{
  margin:0 0 12px 0;
  color: var(--muted);
  line-height:1.5;
}

.alert{
  border-radius: 16px;
  padding: 12px 12px;
  border: 1px solid rgba(11,16,32,.14);
  background: rgba(11,42,91,.06);
}
.alert-err{
  background: rgba(220,38,38,.08);
  border-color: rgba(220,38,38,.22);
}
.alert-ok{
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.22);
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 820px){ .grid-2{grid-template-columns: 1fr 1fr} }

.label{
  display:block;
  font-weight: 900;
  margin: 0 0 6px 0;
  letter-spacing:.2px;
}
.input, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(11,16,32,.16);
  background: rgba(255,255,255,.70);
  outline:none;
  color: var(--ink);
}
textarea{min-height: 170px; resize: vertical}
.help{margin-top:6px; color: var(--muted2); font-size:.9rem}
.row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.small{font-size:.92rem; color: var(--muted)}
hr.soft{
  border:0;
  border-top:1px solid rgba(11,16,32,.10);
  margin: 14px 0;
}

.site-footer{
  margin-top: 18px;
  color: rgba(255,255,255,.75);
}
.footer-inner{
  max-width:1120px;
  margin:0 auto;
  padding: 14px 16px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.footer-inner a{color: rgba(255,255,255,.85)}

/* ---- Admin/dashboard compatibility (readability) ---- */
.table{
  width:100%;
  border-collapse:collapse;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(11,16,32,.12);
  border-radius: 16px;
  overflow:hidden;
}
.table th, .table td{
  padding:10px 10px;
  border-bottom:1px solid rgba(11,16,32,.10);
  color: var(--ink);
}
.table th{
  background: rgba(11,16,32,.06);
  color: rgba(11,16,32,.75);
  font-weight: 900;
}

.badge{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,16,32,.14);
  background: rgba(255,255,255,.65);
  color: rgba(11,16,32,.72);
  font-size:.85rem;
}

.card{ /* for older pages that still use .card */
  background: linear-gradient(180deg, rgba(255,253,247,.96), rgba(247,243,234,.98));
  border: 1px solid rgba(11,16,32,.12);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow2);
}

.alert{ color: var(--ink); }
.muted{ color: rgba(11,16,32,.66); }
/* Dashboard video sizing */
.video-small{
  width: 100%;
  max-width: 360px;   /* change to 280/320/420 if you want */
  max-height: 220px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background:#000;
  display:block;
}
.video-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:8px;
}
