/* Membership gate — taken from mockup-membership-gate.html.
   The mockup's annotation chrome (.plate, .tag, .rulebar) is deliberately
   omitted: those were the commentary labels around each screen, not the UI. */

:root{
  --ground:#EDE9F4;--paper:#FDFCFE;--ink:#241F2E;--ink-soft:#5C5470;--ink-faint:#8B839B;
  --rule:#DDD6E8;--purple:#4E2582;--purple-mid:#7B52B0;--purple-wash:#F4F0FA;
  --brass:#A8823C;--brass-wash:#F7F1E4;--green:#2F7D5B;--green-wash:#EDF6F1;
  --serif:'Spectral',Georgia,serif;--sans:'Karla','Helvetica Neue',Arial,sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:var(--ground);color:var(--ink);font-family:var(--serif);font-size:17px;line-height:1.65}
:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
button{font:inherit;cursor:pointer}
a{color:var(--purple)}

.shell{max-width:640px;margin:0 auto;padding:0 24px 46px}
/* Signed-in member pages use the stewards' width. Joining and signing in keep
   the narrow column: a short form reads better narrow. The lede is capped so
   a paragraph never runs the full width of a desktop screen. */
.shell.shell-member{max-width:1000px}
.shell-member .lede{max-width:72ch}
.crest{padding:32px 0 20px;text-align:center}
.seal{width:58px;height:58px;margin:0 auto 11px;border-radius:50%;border:1px solid var(--brass);display:flex;align-items:center;justify-content:center;position:relative}
.seal::after{content:"";position:absolute;inset:5px;border-radius:50%;border:1px solid rgba(168,130,60,.35)}
.seal span{font-family:var(--serif);font-size:.6rem;letter-spacing:.14em;color:var(--brass);text-transform:uppercase}
.trustname{font-family:var(--serif);font-weight:300;font-style:italic;font-size:.97rem;color:var(--purple)}

.rail{display:flex;gap:5px;margin-bottom:22px;font-family:var(--sans);font-size:.68rem}
.rail div{flex:1;text-align:center;padding:6px 3px;border-radius:2px;background:#E2DBEE;color:var(--ink-faint)}
.rail div.done{background:#D8CDE9;color:var(--purple)}
.rail div.here{background:var(--purple);color:#fff;font-weight:600}

.sheet{background:var(--paper);border:1px solid var(--rule);border-radius:4px;padding:36px 38px 30px}
@media (max-width:600px){.sheet{padding:26px 20px 24px}}
.sheet-head{margin-bottom:22px}
.sheet-head h1{font-family:var(--serif);font-weight:400;font-size:1.68rem;margin:0 0 7px;letter-spacing:-.01em;line-height:1.22}
.lede{font-family:var(--sans);font-size:.86rem;color:var(--ink-soft);line-height:1.65;margin:0 0 20px}

.field{margin-bottom:20px}
.field label{display:block;font-family:var(--sans);font-size:.79rem;font-weight:600;margin-bottom:6px}
input[type=text],input[type=email],input[type=password],input[type=number],input[type=tel],input[type=url],input[type=date],select,textarea{width:100%;font-family:var(--serif);font-size:1.02rem;background:#fff;border:1px solid var(--rule);border-radius:3px;padding:10px 12px;color:var(--ink)}
input:focus,select:focus,textarea:focus{border-color:var(--purple-mid);box-shadow:0 0 0 3px rgba(123,82,176,.11);outline:none}
.hint{font-family:var(--sans);font-size:.73rem;color:var(--ink-faint);margin-top:5px;line-height:1.55}
.err{font-family:var(--sans);font-size:.75rem;color:#A3282D;margin-top:5px}
input.has-err,textarea.has-err{border-color:#A3282D}

.choice{border:1px solid var(--rule);border-radius:4px;padding:15px 17px;margin-bottom:9px;background:#fff;display:flex;gap:14px;align-items:flex-start}
.choice:hover{border-color:var(--purple-mid)}
.choice.on{border-color:var(--purple-mid);border-width:1.5px;background:#FBF9FE}
.choice .body{flex:1}
.choice b{font-family:var(--sans);font-size:.88rem;font-weight:600;display:block;margin-bottom:2px}
.choice small{font-family:var(--sans);font-size:.76rem;color:var(--ink-soft);line-height:1.5;display:block}
.choice .tick{color:var(--purple-mid);font-size:1.05rem;align-self:center}

.quote{background:var(--purple-wash);border:1px solid #E3D9F3;border-radius:4px;padding:22px;text-align:center;margin-bottom:16px}
.quote .amt{font-family:var(--serif);font-size:2.05rem;color:var(--purple);line-height:1.05}
.quote .conv{font-family:var(--sans);font-size:.79rem;color:var(--ink-soft);margin-top:6px}
.quote .held{font-family:var(--sans);font-size:.71rem;color:var(--ink-faint);margin-top:11px}

.kv{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid #EFECF4;font-family:var(--sans);font-size:.79rem;align-items:baseline}
.kv:last-child{border-bottom:0}
.kv .k{color:var(--ink-faint)}
.kv .v{font-family:var(--serif);font-size:.98rem;text-align:right;word-break:break-all}
.copy{font-family:var(--sans);font-size:.68rem;color:var(--purple-mid);border:1px solid var(--rule);border-radius:3px;padding:2px 7px;margin-left:8px;background:#fff}
.copy:hover{border-color:var(--purple-mid)}

.optin{display:flex;gap:11px;align-items:flex-start;margin-bottom:14px;font-family:var(--sans);font-size:.82rem;line-height:1.6}
.box{width:16px;height:16px;border:1.5px solid var(--purple-mid);border-radius:3px;flex:0 0 auto;margin-top:2px}
.box.checked{background:var(--purple-mid)}

.btn{font-family:var(--sans);font-size:.85rem;font-weight:600;border:0;border-radius:24px;padding:12px 30px}
.btn-primary{background:var(--purple);color:#fff}
.btn-primary:hover{background:#3E1C69}
.btn-quiet{background:none;color:var(--ink-soft);padding:12px 0;font-weight:500;text-decoration:underline;text-underline-offset:3px;text-decoration-color:var(--rule)}
.foot{margin-top:26px;padding-top:20px;border-top:1px solid var(--rule);display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.foot.center{justify-content:center}

.notice{border-left:2px solid var(--brass);background:var(--brass-wash);padding:14px 17px;font-family:var(--sans);font-size:.81rem;line-height:1.6;color:var(--ink-soft);margin-top:18px}
.what li{font-family:var(--sans);font-size:.85rem;color:var(--ink-soft);margin-bottom:9px;line-height:1.6}
.what{padding-left:19px;margin:0 0 4px}
.what b{color:var(--ink);font-weight:600}
.assurance{text-align:center;font-family:var(--sans);font-size:.74rem;color:var(--ink-faint);margin-top:20px;line-height:1.6}
.badge{display:inline-block;font-family:var(--sans);font-size:.67rem;font-weight:700;padding:3px 9px;border-radius:11px;background:var(--green-wash);color:var(--green);margin-bottom:12px}

/* .btn-quiet was written for anchors; on a <button> the browser adds its own
   border and it reads as a stray input. Same fix as the admin stylesheet. */
button.btn-quiet { border: 0; background: none; -webkit-appearance: none; appearance: none; }

/* Disabled fields read as information, not as something to type in. */
input:disabled { background:#F4F2F8; color:var(--ink-soft); cursor:default }

/* Intake rail steps are links; keep them looking like the rail, not like text. */
.rail a { color:var(--ink-faint); background:#E2DBEE }
.rail a.done { background:#D8CDE9; color:var(--purple) }
.rail a.here { background:var(--purple); color:#fff; font-weight:600 }
.rail a:hover { filter:brightness(.96) }

/* "Use example wording" is an offer worth seeing, not a faint link. */
.btn-canned {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  background: var(--purple-wash); color: var(--purple);
  border: 1px solid #E3D9F3; border-radius: 20px; padding: 7px 16px; cursor: pointer;
}
.btn-canned:hover { background: #EDE5F8; border-color: var(--purple-mid) }

/* Repeater columns were squeezing their placeholder text. */
[data-repeater] [data-row] input { min-width: 0 }
@media (max-width: 560px) { [data-repeater] [data-row] { flex-wrap: wrap } }

/* Repeater rows: the second column was collapsing and clipping its placeholder.
   flex-basis gives each column a floor to grow from; below 560px they stack. */
[data-repeater] [data-row] { flex-wrap: wrap }
[data-repeater] [data-row] > input { flex: 1 1 14rem; min-width: 12rem }
[data-repeater] [data-row] > input:first-child { flex: 2 1 16rem }
[data-repeater] [data-row] > button { flex: 0 0 auto }

/* The real emblem replaces the MMT lettermark; no drawn ring needed. */
.seal-img { width:64px; height:64px; object-fit:contain; display:block; margin:0 auto 11px }

/* The public pages set a display scale the gate never had, so moving from
   the landing page into the gate read as stepping into a different site.
   These two rules carry that scale across; the sheet, rail and fields are
   unchanged, because a form flow wants form chrome. */
.sheet-head h1{
  font-weight:300;font-size:2.05rem;line-height:1.16;letter-spacing:-.018em;
  margin-bottom:10px;text-wrap:balance;
}
.lede{
  font-family:var(--serif);font-size:1.09rem;line-height:1.58;
  color:var(--ink);max-width:60ch;margin-bottom:22px;
}

/* The crest sits loose above the sheet; give it the brass rule the public
   pages use so the two halves of the site share one mark. */
.crest{display:flex;align-items:center;gap:22px;padding:34px 0 22px}
.crest::before,.crest::after{content:"";flex:1;border-top:1px solid var(--rule)}
.crest > a,.crest > .seal-img{flex:0 0 auto}
.seal-img{width:74px;height:74px;margin:0}
.trustname{display:none}

@media (max-width:620px){
  .sheet-head h1{font-size:1.7rem}
  .crest{gap:12px;padding:26px 0 18px}
  .seal-img{width:62px;height:62px}
}

/* ---------------------------------------------------------------
   Library picker: categories and their bundle tiles.
   A tile is a submit button wearing .choice's clothes, so the whole
   card is the tap target on a phone.
   --------------------------------------------------------------- */
.lib-cat{font-family:var(--sans);font-size:.82rem;font-weight:600;text-transform:uppercase;
  letter-spacing:.06em;color:var(--purple);margin:26px 0 4px}
.lib-cat:first-of-type{margin-top:14px}
.lib-cat-note{font-family:var(--sans);font-size:.78rem;color:var(--ink-soft);
  line-height:1.5;margin:0 0 11px}
.lib-tile{display:block;width:100%;text-align:left;border:1px solid var(--rule);
  border-radius:4px;padding:15px 17px;margin-bottom:9px;background:#fff;cursor:pointer;
  font:inherit;color:inherit;-webkit-appearance:none;appearance:none}
.lib-tile:hover{border-color:var(--purple-mid);background:#FBF9FE}
.lib-tile:active{border-color:var(--purple);background:var(--purple-wash)}
.lib-tile:focus-visible{outline:2px solid var(--purple-mid);outline-offset:2px}
.lib-tile b{font-family:var(--sans);font-size:.88rem;font-weight:600;display:block;
  margin-bottom:3px;color:var(--ink)}
.lib-tile small{font-family:var(--sans);font-size:.76rem;color:var(--ink-soft);
  line-height:1.5;display:block}
.lib-soon{font-family:var(--sans);font-size:.76rem;color:var(--ink-faint);
  font-style:italic;margin:0 0 9px;padding:13px 17px;border:1px dashed var(--rule);
  border-radius:4px}
@media (max-width:600px){
  .lib-tile{padding:16px 15px}
  .lib-tile b{font-size:.92rem}
}

/* Sharpen the two levels: category is a bounded section, tiles are its contents. */
.lib-cat{border-top:1px solid var(--rule);padding-top:20px;font-size:.74rem;
  letter-spacing:.11em;color:var(--ink-faint)}
.lib-cat:first-of-type{border-top:0;padding-top:0}
.lib-cat-note{margin-bottom:13px;color:var(--ink-soft)}
.lib-tile,.lib-soon{margin-left:14px;width:calc(100% - 14px)}
.lib-tile b{font-size:.95rem;letter-spacing:0}
@media (max-width:600px){
  .lib-tile,.lib-soon{margin-left:8px;width:calc(100% - 8px)}
}

/* The mark sits left of the tile's text, top-aligned with the title. */
.lib-tile{display:flex;gap:14px;align-items:flex-start}
.lib-mark{width:34px;height:34px;flex:0 0 34px;margin-top:1px}
.lib-body{flex:1;min-width:0}
@media (max-width:600px){.lib-mark{width:30px;height:30px;flex:0 0 30px}}

/* A quiet twin to .btn-primary, for the second of two choices. The outline is
   an inset shadow rather than a border so the two pills stay the same height —
   a 1px border would make this one taller and the pair would sit crooked. */
.btn-secondary { background: none; color: var(--purple);
                 box-shadow: inset 0 0 0 1px var(--purple-mid) }
.btn-secondary:hover { background: #EDE5F8 }

/* Separator between the two quiet links beneath the buttons. */
.assurance .sep { color: var(--rule); margin: 0 10px }

/* Air between the button row and the quiet links, so the links read as a
   footnote to the choice above rather than a third option in it. */
.foot + .assurance { margin-top: 20px }

/* The member's own unfinished work, set apart from the catalogue below it.
   Both used .lib-cat and so read as equals, when one is a shelf of things on
   offer and the other is the member's own evening's work waiting for them. */
.mine { background: #F7F4FB; border-left: 3px solid var(--purple-mid);
        border-radius: 4px; padding: 16px 18px 6px; margin: 0 0 34px }
.mine .lib-cat { color: var(--purple); margin-top: 0 }

/* Leading pass. 1.65 was generous on a phone, where the measure is short and
   the scroll is long. Body to 1.5, headings tighter, smaller text tighter
   still, since short lines need less air than long ones. */
body{line-height:1.5}
.lede{line-height:1.5}
.hint,.what li,.choice small,.assurance{line-height:1.45}
.sheet-head h1{line-height:1.14}

/* A draft's controls sat inline under its tile, putting Discard a thumb's
   width from the thing you tap to carry on. Own row, opposite ends. */
.draft-acts{display:flex;align-items:center;justify-content:space-between;
  gap:16px;margin:-2px 0 20px;padding:0 4px}
.draft-acts form{margin:0}
.draft-act{font-size:.76rem;padding:8px 0}
.draft-discard{color:var(--ink-faint);text-decoration-color:var(--rule)}
.draft-discard:hover{color:#A3282D}
.draft-note{font-size:.76rem;margin:0}

/* Removal is not navigation and should not look like it. Below the foot,
   behind its own rule, named for what it does. */
.remove-zone{margin-top:24px;padding-top:16px;border-top:1px solid var(--rule);
  text-align:center}
.remove-act{font-size:.8rem;color:var(--ink-faint);text-decoration-color:var(--rule)}
.remove-act:hover{color:#A3282D}
.remove-note{font-size:.74rem;margin:2px 0 0;color:var(--ink-faint)}

/* Intake rail on a narrow screen. Equal slices at .68rem stop being readable
   past four or five steps, and the wizard's length is the author's choice.
   Steps you are not on become progress bars; the one you are on keeps its
   name. Scoped to .sheet so the four-step join rail is untouched. */
@media (max-width:560px){
  .sheet .rail{align-items:center;gap:4px;font-size:.74rem;flex-wrap:nowrap}
  .sheet .rail a,.sheet .rail div{
    flex:1 1 0;min-width:0;height:6px;padding:0;border-radius:3px;
    overflow:hidden;white-space:nowrap;text-indent:-9999px}
  .sheet .rail a.here,.sheet .rail div.here{
    flex:5 1 auto;height:auto;padding:7px 11px;text-indent:0;
    text-overflow:ellipsis}
}

/* Intake rail. These were inline on the anchor, where no media query could
   reach them. */
.rail a.rail-step{flex:1;text-align:center;padding:6px 3px;border-radius:2px;
  text-decoration:none;font-family:var(--sans);font-size:.68rem}
@media (max-width:560px){
  .rail a.rail-step{flex:1 1 0;min-width:0;height:6px;padding:0;border-radius:3px;
    overflow:hidden;white-space:nowrap;text-indent:-9999px}
  .rail a.rail-step.here{flex:5 1 auto;height:auto;padding:7px 11px;
    text-indent:0;font-size:.74rem;text-overflow:ellipsis}
}
@media (max-width:560px){
  .rail a.rail-step.here{white-space:normal;text-overflow:clip;line-height:1.25;
    flex:4 1 auto;padding:6px 10px}
}
