/* SkyChecked — shared styles for textures, icons, and trust-level badges. */

.grain {
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23n)" opacity="0.05"/></svg>');
  pointer-events: none;
}

.topo {
  background-image: url('data:image/svg+xml;utf8,<svg width="160" height="160" xmlns="http://www.w3.org/2000/svg"><path d="M10 30 Q 50 60 90 30 T 170 30" stroke="%23496455" fill="none" opacity="0.07"/><path d="M10 80 Q 50 110 90 80 T 170 80" stroke="%23496455" fill="none" opacity="0.05"/><path d="M10 130 Q 50 160 90 130 T 170 130" stroke="%23496455" fill="none" opacity="0.06"/></svg>');
  background-size: 240px;
  pointer-events: none;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
.icon-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

.h-display { letter-spacing: -0.02em; }

#mobile-menu[hidden] { display: none; }

/* ---------- Trust ladder badges ----------
   Use:  <span class="trust-badge trust-community">…</span>
   Levels: trust-community | trust-property | trust-reviewed | trust-verified
*/
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.trust-badge .material-symbols-outlined {
  font-size: 16px;
}

.trust-community {
  background: transparent;
  color: #44474d;
  border: 1px solid rgba(73, 100, 85, 0.35);
}
.trust-property {
  background: rgba(212, 160, 23, 0.15);
  color: #0d1c32;
  border: 1px solid rgba(212, 160, 23, 0.45);
}
.trust-reviewed {
  background: #496455;
  color: #fbfaee;
  border: 1px solid #496455;
}
.trust-verified {
  background: #0d1c32;
  color: #fbfaee;
  border: 1px solid #0d1c32;
}
.trust-verified .material-symbols-outlined {
  color: #f6be39;
}

/* Notebook-style form inputs */
.input-line {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(73, 100, 85, 0.4);
  padding: 0.5rem 0;
  width: 100%;
  color: #1b1c15;
  font-family: inherit;
  font-size: 1rem;
}
.input-line:focus {
  outline: none;
  border-bottom-color: #496455;
  box-shadow: none;
}
.input-line::placeholder { color: rgba(68, 71, 77, 0.5); }

textarea.input-line {
  border: 1px solid rgba(73, 100, 85, 0.3);
  border-radius: 0.375rem;
  padding: 0.75rem;
  resize: vertical;
  min-height: 7rem;
}

/* ---------- Editorial accents ---------- */
.editorial-rule {
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, #496455 0%, #D4A017 100%);
  border-radius: 9999px;
}

.principle-number {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 600;
  color: rgba(73, 100, 85, 0.35);
  line-height: 1;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  width: 3rem;
}

/* ---------- Status chips for pilot/pending findings ---------- */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-chip .material-symbols-outlined { font-size: 13px; }

.status-planned {
  background: rgba(212, 160, 23, 0.15);
  color: #5c4300;
  border: 1px solid rgba(212, 160, 23, 0.4);
}
.status-pending {
  background: rgba(73, 100, 85, 0.12);
  color: #324c3e;
  border: 1px solid rgba(73, 100, 85, 0.3);
}
.status-coming {
  background: rgba(13, 28, 50, 0.08);
  color: #0d1c32;
  border: 1px solid rgba(13, 28, 50, 0.25);
}

/* ---------- Decorative double border (field-card feel) ---------- */
.field-frame { position: relative; }
.field-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(73, 100, 85, 0.18);
  border-radius: inherit;
  pointer-events: none;
}

/* ---------- Trust-tinted card top strip (used on the verified card etc.) ---------- */
.trust-strip { height: 4px; border-top-left-radius: inherit; border-top-right-radius: inherit; }
.trust-strip-community { background: rgba(73, 100, 85, 0.35); }
.trust-strip-property  { background: linear-gradient(90deg, rgba(212, 160, 23, 0.6), rgba(212, 160, 23, 0.3)); }
.trust-strip-reviewed  { background: #496455; }
.trust-strip-verified  { background: linear-gradient(90deg, #0d1c32 0%, #D4A017 100%); }

/* ---------- Subtle dashed section divider ---------- */
.divider-dashed {
  border: 0;
  border-top: 1px dashed rgba(73, 100, 85, 0.35);
  margin: 0;
}

/* ---------- Subtle paper-fiber overlay (used inside cards) ---------- */
.paper-fiber {
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg"><filter id="p"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23p)" opacity="0.04"/></svg>');
}

/* ---------- Decorated card: pine corner cutout in top-right ---------- */
.field-card-deco { position: relative; isolation: isolate; }
.field-card-deco::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 7rem; height: 7rem;
  background: linear-gradient(225deg, rgba(73, 100, 85, 0.10) 0%, rgba(73, 100, 85, 0.02) 60%, transparent 80%);
  border-bottom-left-radius: 100%;
  pointer-events: none;
  z-index: 0;
}
.field-card-deco > * { position: relative; z-index: 1; }

/* ---------- Section ornament — pine asterism between sections ---------- */
.section-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  color: rgba(212, 160, 23, 0.75);
}
.section-ornament::before,
.section-ornament::after {
  content: '';
  display: block;
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(73, 100, 85, 0.35) 50%, transparent 100%);
}
.section-ornament .material-symbols-outlined { font-size: 18px; }

/* ---------- Specimen tag — gold dashed stamp style ---------- */
.specimen-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.7rem;
  background: rgba(212, 160, 23, 0.10);
  color: #5c4300;
  border: 1px dashed rgba(212, 160, 23, 0.55);
  border-radius: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Drop cap for editorial paragraphs ---------- */
.drop-cap::first-letter {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 3.4rem;
  font-weight: 600;
  float: left;
  line-height: 0.95;
  margin: 0.25rem 0.55rem 0 0;
  color: #496455;
}

/* ---------- Hero atmosphere: bottom horizon glow + extra stars ---------- */
.hero-atmosphere::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(212, 160, 23, 0.08) 0%, transparent 55%),
    linear-gradient(to top, rgba(73, 100, 85, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Twinkling-style star (small variation on the inline gold dot) */
.star-glow {
  position: absolute;
  border-radius: 9999px;
  background: #f6be39;
  box-shadow: 0 0 12px 1px rgba(246, 190, 57, 0.55);
}

/* ---------- Pillar top accent strips (per category color) ---------- */
.pillar-strip { height: 4px; border-top-left-radius: inherit; border-top-right-radius: inherit; }
.pillar-strip-signal { background: linear-gradient(90deg, #496455 0%, #324c3e 100%); }
.pillar-strip-solar  { background: linear-gradient(90deg, #D4A017 0%, #f6be39 100%); }
.pillar-strip-stars  { background: linear-gradient(90deg, #0d1c32 0%, #496455 100%); }
.pillar-strip-photo  { background: linear-gradient(90deg, rgba(68, 71, 77, 0.6) 0%, rgba(68, 71, 77, 0.3) 100%); }

/* ---------- Page-section background variants ---------- */
.bg-vellum {
  background-color: #fefdf3;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg"><filter id="p"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%25" height="100%25" filter="url(%23p)" opacity="0.04"/></svg>');
}

/* ---------- Dashed gold "stamp" frame (used on report header etc.) ---------- */
.stamp-frame {
  border: 2px dashed rgba(212, 160, 23, 0.55);
  border-radius: 0.25rem;
  padding: 0.5rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #5c4300;
  background: rgba(212, 160, 23, 0.06);
}

/* ---------- Directory status badges (used on campground cards) ----------
   Levels: badge-seed | badge-community | badge-property | badge-reviewed | badge-verified | badge-pilot
*/
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid;
}
.status-badge .material-symbols-outlined { font-size: 13px; }

.badge-seed       { background: rgba(73, 100, 85, 0.10); color: #324c3e; border-color: rgba(73, 100, 85, 0.32); }
.badge-community  { background: rgba(68, 71, 77, 0.10);  color: #44474d; border-color: rgba(68, 71, 77, 0.32); }
.badge-property   { background: rgba(212, 160, 23, 0.15); color: #5c4300; border-color: rgba(212, 160, 23, 0.45); }
.badge-reviewed   { background: #496455; color: #fbfaee; border-color: #496455; }
.badge-verified   { background: #0d1c32; color: #fbfaee; border-color: #0d1c32; }
.badge-verified .material-symbols-outlined { color: #f6be39; }
.badge-pilot      { background: rgba(212, 160, 23, 0.18); color: #0d1c32; border: 1px dashed #D4A017; }

/* ---------- Filter chip (checkbox styled as a pill) ---------- */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(73, 100, 85, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
  color: #44474d;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.filter-chip:hover { border-color: rgba(73, 100, 85, 0.5); color: #1b1c15; }
.filter-chip input[type="checkbox"] { display: none; }
.filter-chip .material-symbols-outlined { font-size: 16px; color: #496455; }
.filter-chip:has(input:checked) {
  background: #0d1c32;
  color: #fbfaee;
  border-color: #0d1c32;
}
.filter-chip:has(input:checked) .material-symbols-outlined { color: #f6be39; }
