/* Scope all public-site styles under the .site class so admin remains untouched */

/* Design tokens (no change) */
:root{
  --brand-600: #0b5e4a; /* deep teal/green */
  --brand-500: #137a5f;
  --brand-400: #2aa77a;
  --muted-700: #495057;
  --muted-500: #6c757d;
  --bg: #fbfbfb;
  --card-bg: #ffffff;
  --soft-shadow: 0 6px 30px rgba(18,23,20,0.06);
  --radius: 0.6rem;
  --accent: #c59a48; /* warm gold accent */
  --glass: rgba(255,255,255,0.7);
  --max-content-width: 1150px;
}

/* Scope site-level base rules */
.site html,
.site body {
  height:100%;
  background: linear-gradient(180deg, #fbfdfe 0%, #f7faf9 100%);
  color: #1d2b26;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height:1.45;
  margin:0;
  padding:0;
}

/* container scoped */
.site .container{
  max-width: var(--max-content-width);
}

/* navbar scoped */
.site .navbar{
  background: linear-gradient(90deg, rgba(11,94,74,1) 0%, rgba(19,122,95,1) 100%) !important;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.site .navbar .navbar-brand{
  font-weight:700;
  letter-spacing:0.2px;
  color: #fff;
}
.site .navbar .navbar-brand small{
  color: rgba(255,255,255,0.85);
  font-weight:500;
  margin-left:6px;
  opacity:0.92;
}
.site .navbar .nav-link{
  color: rgba(255,255,255,0.92) !important;
  transition: color .12s ease;
}
.site .navbar .nav-link:hover{ color: var(--accent) !important; }

/* cards */
.site .card{
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  overflow: visible;
}
.site .card .card-body { padding: 1.25rem; }

/* headings */
.site h2, .site h3, .site h4{
  color: #0f2a25;
  margin-bottom: .5rem;
  font-weight: 700;
}
.site small.text-muted{ color: var(--muted-500) !important; }

/* buttons */
.site .btn-primary{
  background: linear-gradient(180deg, var(--brand-400), var(--brand-500));
  border: none;
  box-shadow: 0 6px 18px rgba(11,94,74,0.12);
  transition: transform .08s ease, box-shadow .12s ease;
  padding: .55rem .9rem;
  border-radius: .45rem;
}
.site .btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(11,94,74,0.14);
}
.site .btn-outline-primary{
  color: var(--brand-500);
  border-color: rgba(19,122,95,0.14);
}
.site .btn-link{
  color: var(--muted-700);
}

/* badges */
.site .badge{
  border-radius: .45rem;
  padding: .35em .5em;
  font-weight:700;
  letter-spacing: .2px;
}
.site .badge.bg-danger{ background: #c63a2b; color:#fff; }
.site .badge.bg-warning{ background: #f0b84b; color: #1d1d1b; }

/* forms */
.site .form-control, .site .form-select, .site .form-control:focus{
  border-radius: .45rem;
  border: 1px solid #e6ece6;
  box-shadow: none;
  padding: .55rem .75rem;
  transition: box-shadow .12s ease, border-color .12s ease, transform .06s ease;
  background: linear-gradient(180deg,#fff,#fbfffb);
}
.site .form-control:focus{
  border-color: var(--brand-500);
  box-shadow: 0 6px 18px rgba(19,122,95,0.06);
  outline: none;
}
.site .form-check-input{
  width: 1.15rem;
  height: 1.15rem;
  border-radius: .25rem;
  border: 1px solid rgba(0,0,0,0.08);
}

/* image preview and gallery */
.site .img-preview{
  display: block;
  width:100%;
  height: 110px;
  object-fit: cover;
  border-radius: .45rem;
  border: 1px solid #edf3ef;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
  background: linear-gradient(180deg,#fff,#f7f9f7);
}
.site .card img.img-fluid{
  border-radius: .45rem;
}

/* pre blocks */
.site pre{
  white-space: pre-wrap;
  background: linear-gradient(180deg,#fbfdfe,#f7fbf9);
  padding: .75rem;
  border-radius: .45rem;
  border: 1px solid #eef6ef;
  color: #20332b;
  font-size: .92rem;
  line-height:1.45;
}

/* footer */
.site footer{
  background: transparent;
  border-top: 1px solid rgba(16,24,20,0.04);
  color: var(--muted-500);
}

/* utility classes */
.site .text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site .center-card{ display:flex; align-items:center; justify-content:center; min-height: calc(100vh - 160px); }

/* responsive and print rules scoped */
@media (max-width: 768px){
  :root{ --max-content-width: 680px; }
  .site .navbar .navbar-brand small{ display:none; }
  .site .img-preview{ height: 100px; }
}
@media print{
  .site nav, .site footer, .site .btn, .no-print{ display:none !important; }
  .site .card{ box-shadow:none; border: 1px solid #ccc; }
}