/* ============================================================
   THE WEAVE
   A layout system taken from a loom rather than from a
   magazine. The page is a rug: a warp running the full height,
   content sitting in registers, real banded borders between
   them, and a third typographic voice — the field notebook —
   carried in the margin.
   Built for TribeAwaken / community resilience. Aug 2026.
   NOTE: clamp() needs spaces around + and - or the whole
   declaration is silently dropped.
   ============================================================ */

.weaveworld{
  --warp: rgba(250,243,233,.045);
  --thread: rgba(230,180,140,.34);
  --peck: rgba(240,198,156,.72);
  --note: 'Courier New', ui-monospace, 'SF Mono', Menlo, monospace;
  position: relative;
  isolation: isolate;
}

/* ---- the warp: vertical threads running the whole height ---- */
.weaveworld::before{
  content:""; position:absolute; inset:0; z-index:-3; pointer-events:none;
  background-image: repeating-linear-gradient(
    90deg, var(--warp) 0 1px, transparent 1px 13px);
  mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

/* ============================================================
   REGISTERS — the horizontal bands of the rug
   ============================================================ */
.reg{
  position: relative;
  padding-block: clamp(4rem, 2.6rem + 5.5vw, 8.5rem);
}
.reg--sunk{ background: rgba(20,13,10,.44); }
.reg--raised{ background: rgba(46,30,24,.4); }

/* the banded border between registers — a real weaving band,
   three rows deep, not a hairline */
.band-rule{
  height: 58px; line-height: 0; color: var(--clay);
  border-block: 1px solid rgba(230,180,140,.22);
  background: var(--ink);
  overflow: hidden;
}
.band-rule svg{ display:block; width:100%; height:58px; }

/* ============================================================
   THE MARGIN — a field-notebook voice hanging in the gutter
   ============================================================ */
.loom{
  display: grid;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  gap: clamp(1.4rem, .8rem + 2.4vw, 4rem);
  align-items: start;
}
.loom + .loom{ margin-top: clamp(2.6rem, 1.8rem + 2.4vw, 4.4rem); }
.gloss{
  font-family: var(--note);
  font-size: .78rem; line-height: 1.55; letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: .55rem;
  border-top: 2px solid var(--clay);
}
.gloss em{
  display: block; font-style: normal; text-transform: none;
  letter-spacing: .01em; color: var(--sand); opacity: .8; margin-top: .5rem;
}
@media (max-width: 800px){
  .loom{ grid-template-columns: 1fr; gap: .9rem; }
  .loom + .loom{ margin-top: 2.6rem; }
}

/* ---- headings sit off the left edge, stepped, not centred ---- */
.step{
  font-family: var(--display);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4.4rem);
  max-width: 17ch;
}
.step i{ font-style: italic; font-weight: 600; color: var(--gold-lt); }
.step-2{
  font-family: var(--display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.3rem); line-height: 1.1;
  max-width: 24ch;
}
.say{ color: var(--sand); font-size: 1.1rem; line-height: 1.7; max-width: 58ch; }
.say + .say{ margin-top: 1.1rem; }
.say strong{ color: var(--cream-2); }

/* ============================================================
   THE CORD — principles strung as beads, not a numbered list
   ============================================================ */
.cord{ list-style:none; padding:0; margin: clamp(2.4rem,1.8rem + 2vw,3.8rem) 0 0; position:relative; }
.cord::before{
  content:""; position:absolute; left: 19px; top: .9rem; bottom: 1.6rem;
  width: 2px; background: linear-gradient(180deg,
    transparent 0, var(--thread) 6%, var(--thread) 94%, transparent 100%);
}
.cord li{
  position: relative;
  padding-left: 4.4rem;
  padding-block: clamp(1rem, .8rem + .7vw, 1.5rem);
}
.cord li::before{
  content:""; position:absolute; left: 8px; top: 1.55rem;
  width: 24px; height: 24px;
  border: 2px solid var(--clay);
  background: var(--ink);
  transform: rotate(45deg);
}
.cord li::after{
  content:""; position:absolute; left: 15px; top: 1.9rem;
  width: 10px; height: 10px; background: var(--gold);
  transform: rotate(45deg);
}
.cord b{
  display:block; font-family: var(--display); font-weight: 700;
  letter-spacing: -.022em; color: var(--cream-2);
  font-size: clamp(1.25rem, 1.05rem + .9vw, 1.75rem); line-height: 1.14;
  margin-bottom: .45rem;
}
.cord span{ display:block; color: var(--sand); font-size: 1.04rem; line-height: 1.62; max-width: 58ch; }
@media (max-width: 620px){
  .cord li{ padding-left: 3.4rem; }
  .cord::before{ left: 15px; }
  .cord li::before{ left: 4px; width: 20px; height: 20px; }
  .cord li::after{ left: 10px; top: 1.85rem; width: 8px; height: 8px; }
}

/* ============================================================
   THE ROCK PANEL — a real petroglyph face, full bleed
   ============================================================ */
.rockface{
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(340px, 42vw, 620px);
  display: grid; align-items: center;
  border-block: 1px solid rgba(230,180,140,.2);
}
.rockface__bg{ position:absolute; inset:0; z-index:-3; }
/* the old brightness(.76) + contrast(1.08) crushed the sandstone into a
   black slab. Lift it and open the shadows; the panel still reads as dusk. */
.rockface__bg img{ width:100%; height:100%; object-fit:cover; filter: saturate(.62) contrast(.94) brightness(1.16); }
/* weight under the quote on the left, released over the open rock at right */
.rockface::after{
  content:""; position:absolute; inset:0; z-index:-2; pointer-events:none;
  background: linear-gradient(100deg,
    rgba(20,13,10,.62) 0%, rgba(20,13,10,.5) 40%,
    rgba(20,13,10,.18) 72%, rgba(20,13,10,.06) 100%);
}
.rockface__pecks{ position:absolute; inset:0; z-index:-1; pointer-events:none; }
.rockface__pecks svg{
  position:absolute; color: var(--peck); stroke-width: 3.1;
  overflow: visible; height:auto;
  filter: drop-shadow(0 1px 0 rgba(20,13,10,.6));
}
.rockface__in{ position: relative; padding-block: clamp(3rem,2rem + 4vw,6rem); }
.rockface__in{ max-width: 46rem; }
.rockface__q{
  font-family: var(--display); font-weight: 700; font-style: italic;
  font-size: clamp(1.6rem, 1.05rem + 2.4vw, 3.2rem);
  line-height: 1.22; letter-spacing: -.025em;
  color: var(--cream-2); max-width: 21ch;
  text-shadow: 0 3px 30px rgba(20,13,10,.66);
}
.rockface__c{
  font-family: var(--note); text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; color: var(--gold); margin-top: 1.6rem;
}
@media (max-width: 700px){
  .rockface__pecks svg:nth-child(n+7){ display:none }
  /* quote fills the column on narrow screens — no open side to release over */
  .rockface::after{ background: linear-gradient(180deg,
    rgba(20,13,10,.38) 0%, rgba(20,13,10,.48) 55%, rgba(20,13,10,.54) 100%); }
}

/* ============================================================
   THE LEDGER — the four capitals as an account book
   ============================================================ */
.ledger{
  margin-top: clamp(2.4rem, 1.8rem + 2vw, 3.6rem);
  border: 1px solid rgba(230,180,140,.26);
  background:
    linear-gradient(180deg, rgba(20,13,10,.5), rgba(20,13,10,.2));
  overflow-x: auto;
}
.ledger table{ width:100%; border-collapse: collapse; min-width: 640px; }
.ledger caption{
  caption-side: top; text-align: left;
  font-family: var(--note); text-transform: uppercase; letter-spacing: .17em;
  font-size: .7rem; color: var(--gold);
  padding: .95rem clamp(1rem,2vw,1.6rem) .75rem;
  border-bottom: 1px solid rgba(230,180,140,.26);
}
.ledger th, .ledger td{
  border-left: 1px solid rgba(230,180,140,.18);
  border-top: 1px solid rgba(230,180,140,.12);
  padding: clamp(.9rem,1.6vw,1.35rem) clamp(.8rem,1.5vw,1.3rem);
  vertical-align: top; text-align: left;
}
.ledger th:first-child, .ledger td:first-child{ border-left: 0; }
.ledger thead th{
  font-family: var(--note); text-transform: uppercase; letter-spacing: .13em;
  font-size: .7rem; font-weight: 700; color: var(--clay-lt);
  border-top: 0; white-space: nowrap;
}
.ledger td b{
  display:block; font-family: var(--display); font-weight: 700;
  letter-spacing: -.02em; color: var(--cream-2);
  font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); margin-bottom: .35rem;
}
.ledger td span{ display:block; color: var(--sand); font-size: .96rem; line-height: 1.55; }
.ledger td.num{
  font-family: var(--note); color: var(--clay); font-size: .8rem;
  width: 3.2rem; white-space: nowrap;
}

/* ============================================================
   THE SPINDLE — a card that reads as a woven swatch
   ============================================================ */
.spindles{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 0; margin-top: clamp(2.2rem, 1.6rem + 2vw, 3.4rem);
  border-top: 2px solid var(--clay);
}
.spindle{
  padding: clamp(1.5rem,1.2rem + 1.2vw,2.3rem) clamp(1.1rem,1vw + .6rem,1.9rem);
  border-left: 1px solid rgba(230,180,140,.18);
  border-bottom: 1px solid rgba(230,180,140,.12);
}
.spindle:first-child{ border-left: 0; padding-left: 0; }
.spindle__k{
  font-family: var(--note); text-transform: uppercase; letter-spacing: .16em;
  font-size: .68rem; color: var(--gold); display:block; margin-bottom: .8rem;
}
.spindle h4{
  font-family: var(--display); font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(1.25rem,1.05rem + .8vw,1.7rem); line-height: 1.12; margin-bottom: .7rem;
}
.spindle p{ color: var(--sand); font-size: 1rem; line-height: 1.6; }
@media (max-width: 780px){ .spindle{ border-left:0; padding-left:0; } }

/* ============================================================
   THE SHUTTLE — a marker for the options, in two woven columns
   ============================================================ */
.shuttle{
  list-style:none; padding:0;
  margin-top: clamp(2.2rem, 1.6rem + 2vw, 3.4rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0 clamp(2rem, 4vw, 4.5rem);
}
.shuttle li{
  padding-block: clamp(1.15rem, 2vw, 1.7rem);
  border-top: 1px solid rgba(230,180,140,.16);
  display: grid; grid-template-columns: 2.1rem 1fr; gap: .9rem;
}
.shuttle li::before{
  content: "";
  width: 15px; height: 15px; margin-top: .5rem;
  border: 2px solid var(--thread);
  transform: rotate(45deg);
}
.shuttle li.here::before{ background: var(--clay); border-color: var(--clay); }
.shuttle b{
  display:block; font-family: var(--display); font-weight: 700;
  letter-spacing: -.02em; color: var(--cream-2);
  font-size: clamp(1.18rem, 1.02rem + .7vw, 1.55rem); line-height: 1.14; margin-bottom: .4rem;
}
.shuttle b i{ font-style: italic; }
.shuttle span{ display:block; color: var(--sand); font-size: .99rem; line-height: 1.58; }
.shuttle li.here b{ color: var(--gold-lt); }

/* ---- a said-aloud line, pulled out of the run of text ---- */
.aloud{
  margin: clamp(2.2rem,1.6rem + 2vw,3.4rem) 0;
  padding-left: clamp(1.2rem, 2.4vw, 2.2rem);
  border-left: 3px solid var(--clay);
}
.aloud p{
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); line-height: 1.5;
  color: var(--gold-lt); max-width: 46ch;
}
.aloud cite{
  display:block; margin-top: .8rem; font-style: normal;
  font-family: var(--note); text-transform: uppercase; letter-spacing: .15em;
  font-size: .68rem; color: var(--sand);
}

/* ============================================================
   TOURISM PAGE  (.tour-)
   The tourism deep dive links only v2.css + weave.css, so the
   few chrome pieces it needs that live in nation.css are
   rebuilt here under a prefix.
   ============================================================ */
.tour-page{
  --gold-lt:#EFC58C;
}

/* ---- the slot-canyon panel is a bright photograph; the weave's
       default lift washes the caption out, so this one sits lower ---- */
.tour-rock .rockface__bg img{ filter: saturate(.58) contrast(1) brightness(.8); }
.tour-rock .rockface__c{ text-shadow: 0 2px 16px rgba(20,13,10,.92); }

/* ---- the ledger's middle column collapses when the third column
       carries long prose; give the name room to sit on one line ---- */
.tour-page .ledger td:nth-child(2){ width: 11rem; }

/* ---- the record strip under the hero ---- */
.tour-proof{
  background: var(--ink);
  border-block: 1px solid rgba(230,180,140,.2);
}
.tour-proof__in{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.2rem, .9rem + 1.4vw, 2.4rem);
  padding-block: clamp(1.8rem, 1.4rem + 1.4vw, 2.8rem);
}
.tour-proof__i{
  margin: 0; max-width: none;
  font-size: .95rem; line-height: 1.5; color: var(--sand);
  border-left: 2px solid rgba(230,180,140,.26);
  padding-left: clamp(.9rem, 1.4vw, 1.4rem);
}
.tour-proof__i b{
  display: block;
  font-family: var(--display); font-weight: 900; letter-spacing: -.035em;
  font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.7rem); line-height: 1;
  color: var(--gold); margin-bottom: .5rem;
}

/* ---- the two lines of standing under the hero headline ---- */
.tour-meta{
  display: flex; flex-wrap: wrap; gap: .7rem 1.6rem;
  margin-top: clamp(1.6rem, 1.2rem + 1vw, 2.4rem);
  font-family: 'Courier New', ui-monospace, Menlo, monospace;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  /* the hero photograph is bright sandstone on the right — plain gold
     disappears into it, so this line carries its own shadow */
  color: #F5DCB4;
  text-shadow: 0 1px 2px rgba(20,13,10,.95), 0 2px 18px rgba(20,13,10,.85);
}
.tour-meta span{ display: inline-flex; align-items: center; gap: .7rem; }
.tour-meta span + span::before{
  content: ""; width: 8px; height: 8px; flex: none;
  border: 1.5px solid var(--clay); transform: rotate(45deg);
}

/* ---- a photograph carried in the manuscript column ---- */
.tour-fig{
  margin-top: clamp(1.8rem, 1.4rem + 1.4vw, 2.8rem);
  border: 1px solid rgba(230,180,140,.24);
  background: rgba(20,13,10,.4);
}
.tour-fig img{
  width: 100%; height: clamp(230px, 30vw, 430px); object-fit: cover;
  filter: saturate(.82) brightness(.94);
}
.tour-fig figcaption{
  font-family: 'Courier New', ui-monospace, Menlo, monospace;
  font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sand);
  padding: .9rem clamp(.9rem, 1.6vw, 1.4rem);
  border-top: 1px solid rgba(230,180,140,.18);
}

/* ---- the closing invitation ---- */
.tour-close{
  background: var(--bg-2);
  padding-block: clamp(4rem, 2.6rem + 5vw, 7.5rem);
  border-top: 1px solid rgba(230,180,140,.2);
  text-align: center;
}
.tour-close h2{
  font-family: var(--display); font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3.6rem); line-height: 1.05;
  margin-inline: auto; max-width: 20ch;
}
.tour-close p{
  margin: clamp(1.2rem, 1rem + .8vw, 1.8rem) auto 0;
  color: var(--sand); max-width: 56ch;
}
.tour-close__mail{
  display: inline-block;
  margin-top: clamp(1.8rem, 1.4rem + 1.2vw, 2.8rem);
  font-family: var(--display); font-weight: 700; letter-spacing: -.025em;
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2.3rem);
  color: var(--gold); text-decoration: none;
  border-bottom: 2px solid var(--clay); padding-bottom: .18em;
  transition: color .2s ease;
}
.tour-close__mail:hover{ color: var(--clay-lt); }

/* ============================================================
   BUSINESS / COMPANY DESIGN  —  .biz- components
   Used on /business/. Inside .weaveworld, so --note and the
   thread colours are inherited.
   ============================================================ */

/* ---- the two animals, set against each other row by row ---- */
.biz-vs{
  margin-top: clamp(2.2rem, 1.6rem + 2vw, 3.4rem);
  border-top: 2px solid var(--clay);
  max-width: 68rem;
}
.biz-vs__hd,
.biz-vs__row{
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(.8rem, 1.8vw, 1.8rem);
  padding-block: clamp(.9rem, .75rem + .6vw, 1.35rem);
  border-bottom: 1px solid rgba(230,180,140,.13);
}
.biz-vs__hd{ border-bottom: 1px solid rgba(230,180,140,.32); }
.biz-vs__hd span{
  font-family: var(--note); text-transform: uppercase; letter-spacing: .14em;
  font-size: .68rem; line-height: 1.4; color: var(--gold);
}
.biz-vs__hd span.old{ color: var(--sand); opacity: .62; }
.biz-vs__k{
  font-family: var(--note); text-transform: uppercase; letter-spacing: .08em;
  font-size: .72rem; line-height: 1.45; color: var(--clay-lt); padding-top: .16rem;
}
.biz-vs__a{ color: var(--sand); opacity: .6; font-size: 1rem; line-height: 1.55; }
.biz-vs__b{ color: var(--cream-2); font-size: 1rem; line-height: 1.55; font-weight: 600; }
@media (max-width: 780px){
  .biz-vs__hd{ display: none; }
  .biz-vs__row{ grid-template-columns: 1fr; gap: .4rem; }
  .biz-vs__k{ color: var(--gold); }
  .biz-vs__a::before{ content: "Old — "; color: var(--clay-lt); font-weight: 700; }
  .biz-vs__b::before{ content: "This — "; color: var(--gold); font-weight: 700; }
}

/* ---- the failure a joint is holding shut, hung under it ---- */
em.biz-guard{
  display: block; margin-top: .95rem; font-style: normal;
  font-family: var(--note); font-size: .76rem; line-height: 1.6;
  letter-spacing: .015em; color: var(--sand);
  padding-left: .95rem; border-left: 2px solid var(--clay);
  max-width: 56ch;
}
em.biz-guard b{
  font-family: var(--note); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .13em; color: var(--gold);
  margin-right: .45em;
}

/* ---- hard numbers, set as an account strip ---- */
.biz-figures{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0; margin-top: clamp(2.2rem, 1.6rem + 2vw, 3.4rem);
  border-top: 2px solid var(--clay);
  max-width: 68rem;
}
.biz-fig{
  padding: clamp(1.4rem, 1.1rem + 1vw, 2.1rem) clamp(1rem, 1vw + .55rem, 1.8rem);
  border-left: 1px solid rgba(230,180,140,.18);
  border-bottom: 1px solid rgba(230,180,140,.12);
}
.biz-fig:first-child{ border-left: 0; padding-left: 0; }
.biz-fig b{
  display: block; font-family: var(--display); font-weight: 900;
  letter-spacing: -.04em; line-height: 1; color: var(--gold);
  font-size: clamp(2.3rem, 1.7rem + 2.4vw, 3.9rem);
}
.biz-fig span{
  display: block; margin-top: .8rem; color: var(--sand);
  font-size: .97rem; line-height: 1.55;
}
@media (max-width: 780px){ .biz-fig{ border-left: 0; padding-left: 0; } }

/* the manuscript column is generous, not a narrow strip */
@media (min-width: 1100px){
  .loom{ grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); }
  .say{ max-width: 66ch; }
  .cord span{ max-width: 66ch; }
  .ledger{ max-width: 66rem; }
}

/* ============================================================
   LGA — the named account of the Local Governance Act of 1998.
   Only additions needed for that page. Prefixed .lga-
   ============================================================ */
.lga-crumb{ background: var(--ink); border-bottom: 1px solid var(--rule); }
.lga-crumb__in{
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem;
  padding-block: 1rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .13em;
  text-transform: uppercase; color: var(--sand);
}
.lga-crumb__in a{ text-decoration: none; color: var(--sand); transition: color .18s; }
.lga-crumb__in a:hover{ color: var(--clay-lt); }
.lga-crumb__in b{ color: var(--cream); font-weight: 800; }
.lga-crumb__in i{ font-style: normal; color: rgba(217,198,180,.4); }
