/* The Card File (longbeach.top) — "Contact Rolodex" visual.
   Manila index-card floor (#efe7d6) + red tab accent (#b23b2e) + warm ink (#2a2620).
   Motif: index cards with colored divider tabs, punch holes, faint ruled lines,
   and a handwriting-feel display face. Squared corners only (no rounding). */

:root {
  --bg: #efe7d6;
  --card: #fbf6ea;
  --ink: #2a2620;
  --muted: #7a705c;
  --line: #cdbf9e;
  --rule: #d9cdae;
  --accent: #b23b2e;
  --accent-d: #8f2d23;
  --hole: #c3b590;
  --g-build: #b23b2e;
  --g-keep: #2f6f6a;
  --g-follow: #b8862f;
  --g-intv: #3f5c8c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); text-decoration: underline; }

/* handwriting-feel display face for titles, tabs, and the brand */
.brandname, .brandtag, h1, h2, .card-tab, .tab-name, .drawer-label, .card-title, .hero-kick {
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", "URW Chancery L", cursive;
}

/* ---- header: a card box lid with a rail of colored tabs ---- */
.filebar { background: var(--card); border-bottom: 2px solid var(--ink); }
.filebar-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 13px; }
.filebar-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.filebar-mark { display: inline-flex; color: var(--accent); }
.brandtext { display: flex; flex-direction: column; line-height: 1.2; }
.brandname { font-weight: 700; font-size: 19px; letter-spacing: .3px; }
.brandtag { font-size: 11px; color: var(--muted); letter-spacing: .6px; }
.filebar-nav { display: flex; gap: 20px; }
.filebar-nav a {
  color: var(--ink); font-size: 14px; font-weight: 700; padding: 3px 0;
  border-bottom: 3px solid transparent;
}
.filebar-nav a:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }

/* the colored tab rail (index divider tabs) */
.tab-rail { display: flex; height: 7px; }
.rail-tab { display: block; height: 100%; }
.rail-tab.g-build { flex: 34; background: var(--g-build); }
.rail-tab.g-keep { flex: 22; background: var(--g-keep); }
.rail-tab.g-follow { flex: 20; background: var(--g-follow); }
.rail-tab.g-intv { flex: 24; background: var(--g-intv); }

/* ---- hero: a card laid on the desk ---- */
.cardbox-hero {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  margin: 0 auto;
  padding: 40px 0 38px;
}
.hero-kick { color: var(--accent); font-size: 13px; letter-spacing: 1.5px; font-weight: 700; margin-bottom: 12px; }
.cardbox-hero h1 { font-size: 33px; line-height: 1.2; font-weight: 700; margin-bottom: 14px; max-width: 780px; }
.hero-lede { max-width: 700px; color: var(--muted); font-size: 17px; }

/* ---- section blocks ---- */
section { padding: 26px 0; }
.drawer-label {
  font-size: 13px; letter-spacing: 1.2px; color: var(--muted);
  font-weight: 700; margin-bottom: 14px;
}
.drawer-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.drawer-head h2 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.drawer-mark { display: inline-block; width: 22px; height: 12px; border-bottom: 3px solid var(--accent); }
.drawer-mark.g-keep { border-bottom-color: var(--g-keep); }
.drawer-mark.g-follow { border-bottom-color: var(--g-follow); }
.drawer-mark.g-intv { border-bottom-color: var(--g-intv); }
.drawer-more { font-size: 13px; font-weight: 700; }

/* ---- drawer rail (category nav, drawn as tabbed index dividers) ---- */
.drawer-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; }
.drawer-tab {
  display: flex; flex-direction: column; gap: 3px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-top: 0;
  border-bottom: 4px solid var(--accent);
  padding: 16px 15px 13px; position: relative;
}
.drawer-tab::before {
  content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px;
  background: var(--accent);
}
.drawer-tab:hover { text-decoration: none; border-color: var(--ink); }
.drawer-tab .tab-name { font-weight: 700; font-size: 16px; }
.drawer-tab .tab-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.drawer-tab.g-keep { border-bottom-color: var(--g-keep); }
.drawer-tab.g-keep::before { background: var(--g-keep); }
.drawer-tab.g-follow { border-bottom-color: var(--g-follow); }
.drawer-tab.g-follow::before { background: var(--g-follow); }
.drawer-tab.g-intv { border-bottom-color: var(--g-intv); }
.drawer-tab.g-intv::before { background: var(--g-intv); }
.drawers-inline { padding-top: 4px; }

/* ---- the card box: grid of index cards ---- */
.cardwall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.conn-card {
  display: flex; flex-direction: column; color: var(--ink);
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 3px 3px 0 rgba(42, 38, 32, .07);
}
.conn-card:hover { border-color: var(--ink); text-decoration: none; box-shadow: 4px 4px 0 rgba(42, 38, 32, .14); }
.card-top {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 0 0 12px; border-bottom: 1px solid var(--rule);
  background: repeating-linear-gradient(0deg, transparent 0 6px, rgba(63, 92, 140, .06) 6px 7px);
}
.card-tab {
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  color: #fff; background: var(--accent);
  padding: 5px 10px 4px;
}
.g-build .card-tab, .card-tab.g-build { background: var(--g-build); }
.card-tab.g-keep { background: var(--g-keep); }
.card-tab.g-follow { background: var(--g-follow); }
.card-tab.g-intv { background: var(--g-intv); }
.card-hole {
  width: 15px; height: 15px; flex: 0 0 15px; margin-right: 12px;
  background: radial-gradient(circle at 50% 50%, var(--bg) 0 3px, var(--hole) 3px 5px, transparent 5px);
}
.card-main {
  display: flex; flex-direction: column; gap: 10px; padding: 14px;
  background-image: repeating-linear-gradient(0deg, transparent 0 21px, var(--rule) 21px 22px);
}
.card-title { font-weight: 700; font-size: 16px; line-height: 1.35; }
.card-facts {
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px dashed var(--line); padding-top: 10px;
}
.cf-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.cf-row .cf-k {
  flex: 0 0 auto; font-size: 10px; font-weight: 700; letter-spacing: .4px;
  color: var(--muted); text-transform: uppercase;
}
.cf-row .cf-v { text-align: right; color: var(--ink); }
.card-note { font-size: 13px; color: var(--muted); }

/* ---- page head ---- */
.sheet-top { padding: 32px 0 8px; }
.trail { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.trail a { color: var(--muted); }
.sheet-top h1 { font-size: 30px; line-height: 1.2; font-weight: 700; }
.sheet-lede { color: var(--muted); margin-top: 8px; }

/* ---- entry layout: connection card + article ---- */
.entry-grid { display: grid; grid-template-columns: 322px 1fr; gap: 26px; padding-top: 20px; padding-bottom: 40px; }
.conn-doc { align-self: start; background: var(--card); border: 1px solid var(--line); box-shadow: 3px 3px 0 rgba(42, 38, 32, .07); }
.doc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border-bottom: 1px solid var(--rule);
  background: repeating-linear-gradient(0deg, transparent 0 6px, rgba(63, 92, 140, .06) 6px 7px);
}
.doc-label { font-size: 11px; letter-spacing: .8px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.doc-rows { font-variant-numeric: tabular-nums; }
.doc-row { display: flex; border-bottom: 1px solid var(--rule); font-size: 14px; }
.doc-row:last-child { border-bottom: 0; }
.doc-k {
  flex: 0 0 42%; padding: 9px 12px; color: var(--muted); border-right: 1px solid var(--rule);
  font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.doc-v { flex: 1; padding: 9px 12px; }
.doc-row.pin-row { background: rgba(178, 59, 46, .08); box-shadow: inset 4px 0 0 var(--accent); }
.doc-row.pin-row .doc-v { font-weight: 600; }

.read { background: var(--card); border: 1px solid var(--line); padding: 26px 30px; }
.read-legal h2 { font-size: 18px; font-weight: 700; margin: 18px 0 8px; }
.read-legal p { margin-bottom: 12px; }
.read-sec { margin-bottom: 24px; }
.read-sec:last-child { margin-bottom: 0; }
.read-sec h2 { display: flex; align-items: baseline; gap: 10px; font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.read-num {
  font-size: 12px; font-weight: 700; color: var(--accent);
  border: 1px solid var(--accent); padding: 1px 6px; font-variant-numeric: tabular-nums;
}
.read p { margin-bottom: 12px; color: #3a352c; }
.read p:last-child { margin-bottom: 0; }
.xref-list { list-style: none; }
.xref-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.xref-list li:last-child { border-bottom: 0; }

/* ---- footer ---- */
.filefoot { background: var(--card); border-top: 2px solid var(--ink); margin-top: 24px; }
.filefoot-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; padding: 26px 20px; }
.filefoot-brand { flex: 1 1 340px; }
.filefoot-brand p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.filefoot-nav { display: flex; gap: 16px; }
.filefoot-nav a { color: var(--ink); font-size: 14px; font-weight: 700; }
.colophon { flex: 1 1 100%; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .cardwall { grid-template-columns: repeat(2, 1fr); }
  .drawer-rail { grid-template-columns: repeat(2, 1fr); }
  .entry-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cardwall, .drawer-rail { grid-template-columns: 1fr; }
  .filebar-inner { flex-direction: column; gap: 10px; align-items: flex-start; }
  .filebar-nav { gap: 14px; }
  .cardbox-hero h1 { font-size: 26px; }
  .read { padding: 20px 18px; }
}
