*{box-sizing:border-box}body{margin:0;background:var(--farm-cream,#f7f0df);color:#e9e4d6;font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Arial,sans-serif;line-height:1.6}.hero{min-height:280px;background:linear-gradient(90deg,rgba(18,43,29,.82),rgba(18,43,29,.18)),url('https://images.unsplash.com/photo-1519501025264-65ba15a82390?auto=format&fit=crop&w=1800&q=85') center 52%/cover;display:flex;align-items:center;color:#fff;border-bottom:5px solid #c49a32}.hero-inner{width:min(1180px,94%);margin:auto;padding:38px 12px}.eyebrow{letter-spacing:.18em;font:700 11px Arial,sans-serif;color:#f1d9a5}.hero h1{font-size:clamp(36px,6vw,68px);line-height:1.02;letter-spacing:-.035em;margin:10px 0;text-shadow:0 3px 8px #152315}.tagline{font-size:19px;max-width:650px;margin:12px 0}.wheat{font-size:28px;color:#e5c17d}.nav{background:#173b2b;display:flex;align-items:center;gap:24px;padding:12px max(3%,calc((100% - 1180px)/2));flex-wrap:wrap;box-shadow:0 3px 8px #0002}.nav a{color:#fff;text-decoration:none;font:700 14px Arial,sans-serif}.nav a:hover{color:#f0d39a}.nav form{display:flex;gap:5px;margin-left:auto}.nav input{width:210px;max-width:48vw;border:1px solid #d8c7a6;border-radius:4px;padding:9px}.nav button,.btn{border:0;background:#c49a32;color:#172b1f;padding:9px 14px;border-radius:4px;font-weight:bold;text-decoration:none;cursor:pointer}.wrap{width:min(1180px,94%);margin:26px auto 42px}.section-title{font-size:28px;color:#e2b841;border-bottom:3px solid #c49a32;padding-bottom:8px}.feature{display:grid;grid-template-columns:1.65fr 1fr;gap:22px;margin-bottom:28px}.feature-image{min-height:300px;background:#d6c29d center/cover;border-radius:7px;overflow:hidden;display:flex;align-items:end;color:white;text-decoration:none;box-shadow:0 4px 12px #0002}.feature-image .overlay{padding:26px;width:100%;background:linear-gradient(transparent,rgba(0,0,0,.78))}.feature-image h2{font-size:clamp(27px,4vw,42px);line-height:1.1;margin:8px 0}.welcome,.panel,.post-card{background:#111713;border:1px solid #51462c;border-radius:10px;box-shadow:0 5px 18px #26351d12}.welcome{padding:24px}.welcome h2{font-size:27px;margin-top:0;color:#e2b841}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.post-card{overflow:hidden}.post-card img{width:100%;height:190px;object-fit:cover;display:block}.post-card .pad{padding:17px}.post-card h3{margin:4px 0;font-size:22px;line-height:1.2}.post-card h3 a{color:#e2b841;text-decoration:none}.meta{font:12px Arial,sans-serif;color:#75694f;margin:8px 0}.post-card p{margin:8px 0 16px}.pill{display:inline-block;background:#e8dfc9;color:#38513a;border-radius:30px;padding:4px 10px;font:700 11px Arial,sans-serif}.layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:24px}.post-content{font-size:18px;white-space:normal}.post-content img{max-width:100%;height:auto}.post-hero{width:100%;max-height:470px;object-fit:cover;border-radius:7px}.panel{padding:20px;margin-bottom:18px}.panel h3{margin-top:0;color:#e2b841}.field{display:flex;flex-direction:column;gap:5px;margin-bottom:14px}.field label{font-weight:bold}.field input,.field select,.field textarea,input,textarea,select{font:inherit}.field input,.field select,.field textarea{border:1px solid #cfc2a8;border-radius:4px;padding:10px;background:#171d18}.field textarea{min-height:180px}.comments{margin-top:32px}.comment{border-bottom:1px solid #e4d8c2;padding:12px 0}.footer{background:#173b2b;color:#f7f0df;border-top:5px solid #c49a32;padding:28px 0}.footer-inner{width:min(1180px,94%);margin:auto}.footer p{margin:4px 0}.empty{padding:35px;background:#111713;border-radius:6px}.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.gallery img{width:100%;height:190px;object-fit:cover;border-radius:5px;border:4px solid #fff;box-shadow:0 2px 8px #0002}.notice{padding:12px;background:;border-left:4px solid #49764a;margin-bottom:16px}.admin-body{background:#0d120e;font-family:Arial,sans-serif}.admin-top{background:#203a28;color:#fff;padding:16px 3%;display:flex;justify-content:space-between;gap:12px;align-items:center}.admin-top a{color:#fff}.admin-shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 58px)}.admin-side{background:#173b2b;padding:18px 12px;border-right:4px solid #c49a32}.admin-side a{display:block;padding:11px;color:#fff;text-decoration:none;border-radius:4px;font-size:14px}.admin-side a:hover{background:#426348}.admin-main{padding:26px;min-width:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.stat{background:#171d18;padding:18px;border-radius:7px;border-top:4px solid #c49a32;box-shadow:0 2px 8px #0001}.stat strong{font-size:26px;display:block;color:#e2b841}.admin-card{background:#171d18;border:1px solid #51462c;border-radius:7px;padding:20px;margin-bottom:20px;overflow:auto}.admin-card h2{margin-top:0}.admin-table{width:100%;border-collapse:collapse;font-size:14px}.admin-table th,.admin-table td{padding:11px;border-bottom:1px solid #e8e3d9;text-align:left;vertical-align:top}.admin-table th{background:#222a23}.admin-actions{display:flex;gap:8px;flex-wrap:wrap}.btn-green{background:#2e6039}.btn-blue{background:#24679a}.btn-red{background:#a83c32}.btn-muted{background:#756d5e}.admin-main .field textarea{min-height:260px}.editor-help{font-size:12px;color:#6d675d}.media-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.media-item img{width:100%;height:130px;object-fit:cover}.media-item{border:1px solid #51462c;padding:8px;min-width:0}.login-box{max-width:470px;margin:60px auto;background:#171d18;padding:30px;border-radius:8px;box-shadow:0 4px 18px #0002}.login-box h1{color:#e2b841}.small{font-size:12px;color:#6c675d}@media(max-width:780px){.feature,.layout{grid-template-columns:1fr}.cards{grid-template-columns:repeat(2,1fr)}.nav{gap:13px}.nav form{margin-left:0;width:100%}.nav input{flex:1;width:auto}.admin-shell{grid-template-columns:1fr}.admin-side{display:grid;grid-template-columns:repeat(2,1fr)}.admin-main{padding:14px}.stats{grid-template-columns:repeat(2,1fr)}.gallery,.media-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:480px){.cards{grid-template-columns:1fr}.hero{min-height:230px}.post-card img{height:220px}.admin-side{grid-template-columns:1fr 1fr}.admin-table{font-size:12px}.admin-table th,.admin-table td{padding:7px}}

/* Urban Prairie visual refresh */
:root{--farm-green:#173b2b;--farm-cream:#f4f0e5;--farm-brown:#c49a32}
body{background:#f4f0e5;color:#e9e4d6}
.hero{background-position:center 45%;min-height:300px}
.eyebrow{font-size:11px;letter-spacing:.22em}
.nav{position:relative;box-shadow:0 4px 14px #10271922}
.nav a{font-size:13px;letter-spacing:.02em}
.nav a:hover{color:#e5bd52}
.nav button,.btn{background:#c49a32;color:#1d2d22;transition:transform .15s ease,filter .15s ease}
.nav button:hover,.btn:hover{filter:brightness(1.05);transform:translateY(-1px)}
.feature-image,.post-card{border-radius:10px}
.feature-image{box-shadow:0 8px 24px #152c1d22}
.welcome{border-top:4px solid #c49a32}
.section-title{letter-spacing:-.025em}
.pill{background:#e9dfbf;color:#254632}
.post-card h3 a:hover{color:#a47b17}
.admin-top{background:#173b2b;border-bottom:4px solid #c49a32}
.admin-side a:hover{background:#365c43}
.admin-side a:first-child{border-left:3px solid #c49a32}
.admin-card{border-radius:10px;box-shadow:0 4px 15px #2333210d}
.stat{border-radius:9px}
@media(max-width:780px){.hero{min-height:245px}}

/* North Dakota: From Soil to Steel — black, prairie green, and gold edition */
:root{--farm-green:#173b2b;--farm-cream:#f4f0e5;--farm-brown:#c49a32}
body{background:#0d120e;color:#eee9dc}
.hero{height:170px;min-height:170px;background:#080b09 center center/100% 100% no-repeat;background-image:url('north-dakota-header.jpg') !important;border-bottom:5px solid #c49a32}
.hero-inner{display:none}
.nav{background:#080b09;border-bottom:2px solid #c49a32}
.nav a{color:#f5f0e4}
.nav a:hover{color:#e4bb45}
.nav button,.btn{background:#c49a32;color:#101710}
.welcome,.panel,.post-card,.admin-card,.stat,.admin-box{background:#171d18;color:#eee9dc;border-color:#51462c}
.section-title,.post-card h3 a,.welcome h2,.panel h3{color:#e2b841}
.pill{background:#c49a32;color:#101710}
.footer{background:#080b09;color:#f4f0e5;border-top:5px solid #c49a32}
.admin-body{background:#0d120e;color:#eee9dc}
.admin-main{color:#eee9dc}
.admin-top,.admin-side{background:#080b09;color:#f4f0e5;border-color:#c49a32}
.admin-table th{background:#252c25;color:#e2b841}
.admin-table td{color:#eee9dc}
.field input,.field select,.field textarea,.nav input{background:#0f1511;color:#eee9dc;border-color:#5a513a}
.empty{background:#171d18;color:#eee9dc}
@media(max-width:780px){.hero{height:115px;min-height:115px;background-size:auto 100%;background-position:center}}

/* North Dakota — From Soil to Steel: integrated header and footer backgrounds */
.hero {
  height: 170px;
  min-height: 170px;
  background-color: #080b09;
  background-image: url('north-dakota-header.jpg') !important;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-bottom: 5px solid #c49a32;
}
.hero-inner { display: none; }
.site-footer, footer.footer, .footer {
  background-color: #080b09;
  background-image: url('north-dakota-footer.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #f4f0e5;
  border-top: 4px solid #c49a32;
  min-height: 190px;
  padding: 42px 3% 28px;
}
.site-footer a, footer.footer a, .footer a { color: #f4f0e5; }
@media (max-width: 780px) {
  .hero { height: 115px; min-height: 115px; background-size: auto 100%; }
  .site-footer, footer.footer, .footer { background-position: center; min-height: 150px; padding: 30px 5% 22px; }
}


/* Notebook-paper main content treatment: preserves the existing header/footer */
:root {
  --notebook-paper: #fbf7e9;
  --notebook-ink: #26352b;
  --notebook-line: rgba(87, 132, 169, .22);
  --notebook-margin: rgba(170, 65, 55, .62);
}
.wrap {
  position: relative;
  isolation: isolate;
  padding: 30px 30px 36px 58px;
  border: 1px solid #c7b98e;
  border-radius: 5px 12px 12px 5px;
  color: var(--notebook-ink);
  background-color: var(--notebook-paper);
  background-image:
    linear-gradient(to right, transparent 0, transparent 31px, var(--notebook-margin) 32px, transparent 33px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 30px, var(--notebook-line) 31px, transparent 32px);
  box-shadow: 0 8px 22px rgba(0,0,0,.22), inset 5px 0 0 rgba(196,154,50,.28);
}
.wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 10px;
  top: 20px;
  bottom: 20px;
  width: 10px;
  background: radial-gradient(circle at center, #8b8d83 0 3px, #d2cbb8 3.5px 5px, transparent 5.5px) center top / 10px 42px repeat-y;
  opacity: .95;
}
.wrap .section-title {
  color: #173b2b;
  border-bottom: 3px solid #c49a32;
  text-shadow: none;
}
.wrap .welcome,
.wrap .panel,
.wrap .post-card,
.wrap .empty {
  color: #26352b;
  background: rgba(255,253,245,.94);
  border: 1px solid #d8ceb2;
  box-shadow: 0 3px 9px rgba(59,48,26,.10);
}
.wrap .welcome h2,
.wrap .panel h3,
.wrap .post-card h3 a {
  color: #173b2b;
}
.wrap .post-card p,
.wrap .post-content,
.wrap .welcome p,
.wrap .panel p,
.wrap .empty {
  color: #26352b;
}
.wrap .meta { color: #75694f; }
.wrap .pill {
  background: #e7d49a;
  color: #173b2b;
}
.wrap .post-card img,
.wrap .post-hero {
  border: 3px solid #fffdf5;
  box-shadow: 0 2px 8px rgba(38,53,43,.16);
}
.wrap .field input,
.wrap .field select,
.wrap .field textarea,
.wrap input,
.wrap textarea,
.wrap select {
  background: #fffdf6;
  color: #26352b;
  border-color: #cfc4a8;
}
.wrap .comment { border-bottom-color: #d8ceb2; }
.wrap .notice {
  color: #26352b;
  background: #edf1df;
  border-left-color: #c49a32;
}
@media (max-width: 780px) {
  .wrap {
    padding: 22px 16px 26px 38px;
    background-image:
      linear-gradient(to right, transparent 0, transparent 20px, var(--notebook-margin) 21px, transparent 22px),
      repeating-linear-gradient(to bottom, transparent 0, transparent 29px, var(--notebook-line) 30px, transparent 31px);
  }
  .wrap::before { left: 6px; width: 8px; background-size: 8px 38px; }
}


/* REAL NOTEBOOK MIDDLE — warm paper, spiral binding, ruled lines and red margin */
main.wrap {
  position: relative;
  isolation: isolate;
  width: min(1180px, 94%);
  margin: 30px auto 42px;
  padding: 30px 32px 34px 68px;
  color: #25362a;
  background-color: #fffdf4;
  background-image:
    linear-gradient(90deg, transparent 0, transparent 48px, rgba(191,72,62,.72) 48px, rgba(191,72,62,.72) 50px, transparent 50px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(105,157,190,.34) 32px, transparent 33px);
  border: 1px solid #d7c9a8;
  border-radius: 3px 8px 8px 3px;
  box-shadow: 0 10px 24px rgba(0,0,0,.28), inset 7px 0 10px rgba(120,91,46,.12), inset 0 0 0 5px rgba(255,255,255,.32);
}
main.wrap::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 9px;
  width: 29px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, #111713 0 3px, #b7ad96 3.5px 5px, #f9f4e5 5.5px 7px, transparent 7.5px) center 14px / 22px 38px repeat-y,
    linear-gradient(90deg, #b8ab8c, #f5eedb 38%, #8e8164 48%, #e9dfc8 64%, transparent 100%);
  border-right: 1px solid #c2b495;
  opacity: .98;
}
main.wrap::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 5px;
  right: -5px;
  top: 5px;
  bottom: -5px;
  background: #e7ddc5;
  border: 1px solid #c9b995;
  box-shadow: 0 6px 12px rgba(0,0,0,.18);
}
main.wrap .section-title {
  color: #173b2b;
  border-bottom: 2px solid #c49a32;
  text-shadow: none;
}
main.wrap .welcome,
main.wrap .panel,
main.wrap .post-card,
main.wrap .empty {
  background-color: rgba(255,254,248,.94);
  color: #25362a;
  border: 1px solid #d9cfb7;
  border-radius: 2px;
  box-shadow: 2px 4px 9px rgba(63,49,22,.12);
}
main.wrap .welcome h2,
main.wrap .panel h3,
main.wrap .post-card h3 a {
  color: #173b2b;
}
main.wrap .post-card img {
  border-bottom: 3px solid #c49a32;
}
main.wrap .meta,
main.wrap .small,
main.wrap .editor-help {
  color: #6b6556;
}
main.wrap .post-content {
  color: #25362a;
  line-height: 1.95;
}
main.wrap .post-content p {
  margin: 0 0 1.25em;
}
main.wrap .field input,
main.wrap .field select,
main.wrap .field textarea,
main.wrap input,
main.wrap textarea,
main.wrap select {
  background: #fffef9;
  color: #25362a;
  border-color: #c9bea4;
}
main.wrap .pill {
  background: #e8dfc9;
  color: #29472e;
}
main.wrap .feature-image {
  border: 4px solid #fffdf4;
  outline: 1px solid #d5c7a8;
  border-radius: 2px;
}
@media (max-width: 780px) {
  main.wrap {
    width: 96%;
    margin: 16px auto 28px;
    padding: 22px 14px 26px 48px;
    background-image:
      linear-gradient(90deg, transparent 0, transparent 32px, rgba(191,72,62,.72) 32px, rgba(191,72,62,.72) 34px, transparent 34px),
      repeating-linear-gradient(to bottom, transparent 0, transparent 29px, rgba(105,157,190,.28) 30px, transparent 31px);
  }
  main.wrap::before { left: 5px; width: 22px; background-size: 18px 34px, 100% 100%; }
  main.wrap::after { left: 2px; right: -2px; }
}


/* SIMPLE LINED NOTEBOOK PAGE — no spiral binding or paper-stack effects */
main.wrap {
  position: relative;
  isolation: isolate;
  width: min(1180px, 94%);
  margin: 28px auto 40px;
  padding: 30px 34px 36px 58px;
  color: #25362a;
  background-color: #fffdf7;
  background-image:
    linear-gradient(to right,
      transparent 0,
      transparent 38px,
      rgba(190, 72, 62, .78) 38px,
      rgba(190, 72, 62, .78) 40px,
      transparent 40px
    ),
    repeating-linear-gradient(to bottom,
      #fffdf7 0,
      #fffdf7 30px,
      #b8d1df 31px,
      #fffdf7 32px
    );
  border: 1px solid #d9cfb7;
  border-radius: 2px;
  box-shadow: 0 5px 16px rgba(0,0,0,.18);
}
main.wrap::before,
main.wrap::after {
  content: none !important;
}
main.wrap .section-title {
  color: #173b2b;
  border-bottom: 2px solid #c49a32;
  text-shadow: none;
}
main.wrap .welcome,
main.wrap .panel,
main.wrap .post-card,
main.wrap .empty {
  background: rgba(255,253,247,.94);
  color: #25362a;
  border: 1px solid #d9cfb7;
  border-radius: 3px;
  box-shadow: 0 2px 7px rgba(63,49,22,.10);
}
main.wrap .welcome h2,
main.wrap .panel h3,
main.wrap .post-card h3 a {
  color: #173b2b;
}
main.wrap .meta,
main.wrap .small,
main.wrap .editor-help {
  color: #6b6556;
}
main.wrap .post-content {
  color: #25362a;
  line-height: 2;
}
main.wrap .field input,
main.wrap .field select,
main.wrap .field textarea,
main.wrap input,
main.wrap textarea,
main.wrap select {
  background: #fffef9;
  color: #25362a;
  border-color: #c9bea4;
}
main.wrap .pill {
  background: #e8dfc9;
  color: #29472e;
}
@media (max-width: 780px) {
  main.wrap {
    width: 96%;
    margin: 16px auto 28px;
    padding: 22px 14px 28px 46px;
    background-image:
      linear-gradient(to right,
        transparent 0,
        transparent 29px,
        rgba(190,72,62,.78) 29px,
        rgba(190,72,62,.78) 31px,
        transparent 31px
      ),
      repeating-linear-gradient(to bottom,
        #fffdf7 0,
        #fffdf7 28px,
        #b8d1df 29px,
        #fffdf7 30px
      );
  }
}


/* Notebook IMAGE as the page background (not merely lines on a content card) */
body {
  background-color: #e7d8b8;
  background-image: url('north-dakota-notebook-background.jpg');
  background-position: center 170px;
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-attachment: scroll;
}
main.wrap {
  background: rgba(255,253,247,.91);
  border: 1px solid rgba(188,166,123,.75);
  box-shadow: 0 6px 22px rgba(0,0,0,.20);
}
main.wrap::before, main.wrap::after { content: none !important; }
@media (max-width: 780px) {
  body {
    background-size: auto 560px;
    background-position: center 115px;
  }
}


/* Remove only the outer box around the main content; preserve the notebook background */
main.wrap {
  background-color: transparent;
  background-image: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}


/* Targeted footer spacing fix: let the main content fill available height and remove the gap below it */
html {
  min-height: 100%;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
body > main.wrap {
  flex: 1 0 auto;
  margin-bottom: 0 !important;
}
body > .site-footer,
body > footer.footer,
body > .footer {
  flex-shrink: 0;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}


/* Final footer-to-viewport spacing correction */
html {
  min-height: 100%;
}
body {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
}
body > main.wrap,
body > .wrap,
main.wrap {
  flex: 1 0 auto !important;
  margin-top: 28px;
  margin-bottom: 0 !important;
}
body > footer.footer,
body > .footer,
footer.footer,
.footer {
  flex: 0 0 auto !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
}


/* Status text contrast fix — admin tables only */
.admin-table td.post-status {
  color: #e2b841 !important;
  font-weight: 700;
}
