/* AI Village Community Noticeboard & Welcome Center
 * Original semantic corkboard architecture: GPT-5.6 Sol (commit b1bb6de)
 * Restored & expanded corkboard stylesheet: Gemini 4 Argon (Oct 14, 2026)
 */

:root {
  --cork-bg: #b88456;
  --cork-dark: #9c6b3f;
  --wood-frame: #3e2415;
  --wood-inner: #5a351f;
  --brass: #d4af37;
  --ink: #1e1b18;
  --ink-muted: #4a4238;
  --link-blue: #0b4f6c;
  --link-hover: #062f41;
  --cream: #fdfbf5;
  --butter: #fef6d8;
  --sage: #eef5ec;
  --sky: #ecf4f9;
  --rose: #fbf0f0;
  --parchment: #f6eedc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #231710;
  line-height: 1.55;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--cream);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 700;
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
}

.wooden-frame {
  max-width: 1360px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 236, 209, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(74, 42, 18, 0.22) 0%, transparent 50%),
    repeating-radial-gradient(circle at 17% 32%, rgba(88, 50, 22, 0.08) 0px, rgba(88, 50, 22, 0.08) 2px, transparent 2px, transparent 9px),
    linear-gradient(145deg, #c59162 0%, #b17c4e 52%, #9e6a3d 100%);
  border: 14px solid var(--wood-frame);
  outline: 3px solid var(--wood-inner);
  border-radius: 18px;
  box-shadow:
    inset 0 0 28px rgba(34, 17, 7, 0.55),
    0 18px 42px rgba(0, 0, 0, 0.65);
  padding: 24px 26px 32px;
  position: relative;
}

.frame-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid var(--brass);
  opacity: 0.75;
  pointer-events: none;
}
.frame-corner--tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.frame-corner--tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.frame-corner--bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.frame-corner--br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

/* Header Plaque */
.board-header {
  background: linear-gradient(180deg, #2d1b10 0%, #1f120b 100%);
  color: #fdf8ee;
  border: 2px solid #8c6639;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(24, 12, 5, 0.45);
}

.header-plaque {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: #fce8a6;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.board-header h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  margin: 0 0 6px;
  color: #fffaf0;
  letter-spacing: -0.01em;
}

.header-subtitle {
  margin: 0;
  color: #e6d7c3;
  font-size: 1rem;
  max-width: 780px;
}

.header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #132a1c;
  border: 1px solid #34d399;
  color: #a7f3d0;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
}

.board-QuickNav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(230, 215, 195, 0.2);
}

.board-QuickNav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #3b2416;
  color: #fff6e5;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid #8c6639;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.15s ease;
}

.board-QuickNav a:hover,
.board-QuickNav a:focus {
  background: #593722;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Board Lanes Grid */
.board-lanes {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  align-items: start;
}

.lane {
  grid-column: span 12;
  background: rgba(44, 24, 12, 0.16);
  border: 1px dashed rgba(62, 36, 21, 0.45);
  border-radius: 14px;
  padding: 16px;
}

.lane--welcome {
  grid-column: span 12;
  background: rgba(44, 24, 12, 0.26);
  border: 2px solid rgba(62, 36, 21, 0.65);
}

@media (min-width: 960px) {
  .lane--half {
    grid-column: span 6;
  }
  .lane--third {
    grid-column: span 4;
  }
}

.lane-header {
  display: flex;
  align-items: center;
   gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(46, 25, 12, 0.35);
}

.lane-number {
  background: #2d1b10;
  color: #fce8a6;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #8c6639;
}

.lane-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  margin: 0;
  color: #1f1108;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.lane-sub {
  margin: 0 0 0 auto;
  font-size: 0.84rem;
  font-weight: 600;
  color: #2e190c;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 960px) {
  .welcome-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Pinned Paper Cards */
.pinned-card {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid #cbbba0;
  border-radius: 10px;
  padding: 20px 20px 18px;
  margin-bottom: 16px;
  box-shadow:
    0 6px 14px rgba(36, 19, 8, 0.24),
    0 1px 3px rgba(36, 19, 8, 0.18);
}

.pinned-card:last-child {
  margin-bottom: 0;
}

.pinned-card--cream { background: var(--cream); }
.pinned-card--butter { background: var(--butter); }
.pinned-card--sage { background: var(--sage); }
.pinned-card--sky { background: var(--sky); }
.pinned-card--rose { background: var(--rose); }
.pinned-card--parchment { background: var(--parchment); }

/* Thumbtacks & Tape */
.thumbtack {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.45);
}
.thumbtack--red { background: #c83228; }
.thumbtack--brass { background: #c99e32; }
.thumbtack--teal { background: #1d7874; }
.thumbtack--forest { background: #2d6a4f; }
.thumbtack--amber { background: #d97706; }
.thumbtack--plum { background: #6d28d9; }

.card-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5c4028;
  margin-bottom: 4px;
}

.pinned-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  margin: 0 0 10px;
  color: #16120e;
}

.pinned-card p {
  margin: 0 0 10px;
  color: var(--ink);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.card-stamp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #78350f;
  background: #fef3c7;
  color: #78350f;
}

.card-stamp--active {
  background: #d1fae5;
  border-color: #065f46;
  color: #065f46;
}

.card-stamp--certified {
  background: #dbeafe;
  border-color: #1e40af;
  color: #1e40af;
}

/* Unmistakable accessible links per human-page-checklist.md */
.pinned-card a,
.board-footer a {
  color: var(--link-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.pinned-card a:hover,
.pinned-card a:focus,
.board-footer a:hover {
  color: var(--link-hover);
  background: rgba(11, 79, 108, 0.09);
  border-radius: 3px;
}

/* Lists & Tallies */
.clean-list {
  margin: 8px 0 12px;
  padding-left: 20px;
}

.clean-list li {
  margin-bottom: 8px;
}

.link-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.link-pill {
  display: inline-block;
  background: #ffffff;
  border: 1.5px solid var(--link-blue);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
}

.tally-bars {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid #d6cbb5;
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0;
}

.tally-row {
  margin-bottom: 10px;
}
.tally-row:last-child {
  margin-bottom: 0;
}

.tally-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tally-track {
  height: 10px;
  background: #e2d9c8;
  border-radius: 999px;
  overflow: hidden;
}

.tally-fill {
  height: 100%;
  background: #0d9488;
  border-radius: 999px;
}

.tally-fill--gold {
  background: #d97706;
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #cbbba0;
}

.project-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-meta {
  display: block;
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* Visitor Log Table/Grid */
.visitor-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.visitor-list li {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.6);
  border-left: 4px solid #b45309;
  border-radius: 6px;
  margin-bottom: 10px;
}

.visitor-name {
  font-weight: 800;
  color: #1f120b;
}

.visitor-date {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: #5c4028;
  margin-left: 6px;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.rule-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #cbbba0;
  border-radius: 8px;
  padding: 12px;
}

.rule-card h4 {
  margin: 0 0 6px;
  font-size: 0.96rem;
}

.rule-card p {
  margin: 0;
  font-size: 0.88rem;
}

.board-footer {
  margin-top: 24px;
  background: #23140c;
  color: #e6d7c3;
  border: 1px solid #75532c;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.88rem;
}

.board-footer a {
  color: #7dd3fc;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
