/**
 * @file
 * The Academic Legacy of the UC Berkeley Geosystems Program.
 *
 * Every rule is scoped under #ucb-diaspora. The id prefix is deliberate: it
 * raises each selector above anything Triph's class-based CSS can assert, so
 * the page keeps its own typography and table styling while none of it leaks
 * back out into the theme.
 *
 * Two class names were renamed from the original page because Triph ships
 * bare Bootstrap rules for them that the scope alone cannot neutralise:
 *   .panel -> .bgd-panel  (Bootstrap paints a white card with a border)
 *   .btn   -> .bgd-btn    (Bootstrap applies a full button reset)
 *
 * The original also carried a dark palette. Triph is light-only, so the dark
 * blocks were dropped rather than left to render a dark slab between a light
 * header and footer.
 */

/**
 * Palette.
 *
 * The page sits on white, so the cards, table and controls carry a Berkeley
 * Blue tint to lift off it - a light grey at this scale reads as no colour at
 * all. Every text pair below clears WCAG AA (4.5:1) against the surface it
 * actually sits on, and the panel/header/border steps stay far enough apart
 * to be seen: surface 1.12 against the page, surface-2 1.14 against surface,
 * borders 1.95 against the page.
 */
#ucb-diaspora{
  --bg:#FFFFFF; --surface:#EDF3FA; --surface-2:#D8E6F4; --surface-3:#BDD3E8;
  --line:#9FBDD9; --line-soft:#C8DCEC;
  --ink:#0E1C27; --ink-2:#3C5163; --ink-3:#5A6B7C;
  --blue:#003262; --blue-soft:#215480;
  --accent:#8A6208; --accent-bright:#FDB515; --accent-wash:#FBF0D6;
  --edit:#1B6151; --edit-wash:#E4F1EC;
  --warn:#8F2F10;
  --shadow:0 1px 2px rgba(14,28,39,.06), 0 8px 24px -12px rgba(14,28,39,.18);
  --shadow-lg:0 12px 48px -12px rgba(14,28,39,.35);
  /* Decade ramp as published: Berkeley Blue for the earliest cohorts lightening
     through teal and sage to California Gold for the 2020s. The gradient is
     the point - it reads as geological strata, so do not flatten it by
     darkening the light end. The two lightest bars sit at 2.5-3.5:1 against
     the card, which is fine here because the bar's height and its printed
     count carry the data; the colour only codes the decade, and every bar is
     labelled with that decade underneath. */
  --strata-0:#001B31;
  --strata-1:#003262; --strata-2:#1C5378; --strata-3:#3B7188; --strata-4:#6A8F92;
  --strata-5:#9AA98F; --strata-6:#C0A768; --strata-7:#D9B23F;
}

#ucb-diaspora,#ucb-diaspora *{box-sizing:border-box}
#ucb-diaspora{margin:0;background:var(--bg);color:var(--ink);
  font-family:"IBM Plex Sans","Helvetica Neue",Arial,sans-serif;font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased}
#ucb-diaspora .wrap{max-width:1300px;margin:0 auto;padding:32px 24px 72px}

#ucb-diaspora header.top{display:flex;flex-direction:column;gap:14px;padding-bottom:22px;border-bottom:1px solid var(--line)}
#ucb-diaspora .eyebrow{font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);margin:0}
#ucb-diaspora h1{font-family:Newsreader,Georgia,serif;font-weight:500;font-size:clamp(25px,3.3vw,38px);line-height:1.1;letter-spacing:-.012em;margin:0;text-wrap:balance;max-width:24ch}
#ucb-diaspora .standfirst{margin:0;max-width:66ch;color:var(--ink-2);font-size:15.5px}
#ucb-diaspora .standfirst b{color:var(--ink);font-weight:600}

#ucb-diaspora .figures{display:flex;flex-wrap:wrap;margin-top:6px;border:1px solid var(--line);border-radius:3px;background:var(--surface);overflow:hidden}
#ucb-diaspora .fig{flex:1 1 120px;padding:11px 16px;border-right:1px solid var(--line-soft);min-width:0}
#ucb-diaspora .fig:last-child{border-right:0}
#ucb-diaspora .fig dt{font-family:"IBM Plex Mono",monospace;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);margin:0}
#ucb-diaspora .fig dd{margin:2px 0 0;font-family:Newsreader,Georgia,serif;font-size:24px;font-weight:500;color:var(--blue);font-variant-numeric:tabular-nums;line-height:1.1}
#ucb-diaspora .fig.live dd{color:var(--edit)}

#ucb-diaspora nav.tabs{display:flex;gap:2px;margin:26px 0 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
#ucb-diaspora .tab{appearance:none;background:none;border:0;border-bottom:2px solid transparent;font:500 13.5px/1.5 "IBM Plex Sans",sans-serif;color:var(--ink-3);padding:9px 14px;cursor:pointer;margin-bottom:-1px}
#ucb-diaspora .tab:hover{color:var(--ink)}
/* The bright gold underline was 1.68:1 on the white page - near invisible.
   The darkened gold reads at 5.48:1 and is still recognisably gold. Bright
   gold is kept where it sits on something dark (selected bar, map marker). */
#ucb-diaspora .tab[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--accent)}
#ucb-diaspora .tab:focus-visible{outline:2px solid var(--blue-soft);outline-offset:2px;border-radius:2px}

/* editing bar */
#ucb-diaspora .editbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:22px 0 0;padding:11px 14px;border:1px solid var(--line);border-radius:3px;background:var(--surface)}
#ucb-diaspora .syncpill{display:inline-flex;align-items:center;gap:7px;font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
#ucb-diaspora .dot{width:7px;height:7px;border-radius:50%;background:var(--ink-3);flex:none}
#ucb-diaspora .dot.on{background:var(--edit)}
#ucb-diaspora .dot.off{background:var(--ink-3)}
#ucb-diaspora .dot.busy{background:var(--accent-bright)}
#ucb-diaspora .editbar .who{font-size:13px;color:var(--ink-2);margin-left:auto}
#ucb-diaspora .editbar .who b{color:var(--ink);font-weight:600}
#ucb-diaspora .linkbtn{appearance:none;background:none;border:0;padding:0;font:inherit;font-size:12.5px;color:var(--blue-soft);cursor:pointer;text-decoration:underline;text-underline-offset:2px}
#ucb-diaspora .linkbtn:focus-visible{outline:2px solid var(--blue-soft);outline-offset:2px}

#ucb-diaspora .strata{margin:22px 0 0;border:1px solid var(--line);border-radius:3px;background:var(--surface);padding:16px 18px 12px}
#ucb-diaspora .strata-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:14px}
#ucb-diaspora .strata-title{font-family:"IBM Plex Mono",monospace;font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
#ucb-diaspora .strata-hint{font-size:12px;color:var(--ink-3)}
#ucb-diaspora .bars{display:flex;gap:6px;align-items:flex-end;overflow-x:auto;padding-bottom:2px}
/* align-items is set explicitly because .barcol is a <button>, and browsers
   apply their own align-items default to buttons (flex-start or center
   depending on the engine). Without this the column's children shrink-wrap
   instead of stretching, which collapses .bartrack to the width of its only
   child - an empty span - so the bar renders at zero width while its inline
   height still applies. The published page relied on the default happening to
   be stretch, which is not true in every browser. */
#ucb-diaspora .barcol{flex:1 1 0;min-width:52px;display:flex;flex-direction:column;align-items:stretch;gap:5px;background:none;border:0;padding:0;cursor:pointer;font:inherit;color:inherit}
#ucb-diaspora .barcol:focus-visible{outline:2px solid var(--blue-soft);outline-offset:3px;border-radius:2px}
#ucb-diaspora .barnum{font-family:"IBM Plex Mono",monospace;font-size:11.5px;color:var(--ink-2);font-variant-numeric:tabular-nums;text-align:center}
/* width is stated rather than left to the stretch above, and the fill also
   grows along the track's main axis, so the bar keeps its width even if a
   percentage cannot resolve. Belt and braces on purpose: this is the bit that
   broke. align-items:flex-end sits the bar on the baseline, so the fill must
   not stretch vertically - its height is the data. */
#ucb-diaspora .bartrack{height:78px;width:100%;display:flex;align-items:flex-end}
#ucb-diaspora .barfill{width:100%;flex:1 1 100%;border-radius:1px;min-height:3px;transition:opacity .15s ease,height .25s ease}
/* Bar fills, one class per decade. These live here rather than in an inline
   style on the bar so the colour survives anything that strips or rewrites
   inline styles; the fallback after each var() keeps a bar coloured even if
   the custom properties themselves fail to resolve. Only geometry is set
   inline: the bar's height, which is per-bar data, and the width below, which
   the script repeats inline because a fill that loses its width renders as
   nothing - see the note on .bartrack above. The class number matches the
   --strata-* number; bgd-dnr is the "year not recorded" bucket, which is not
   a decade and so sits outside the ramp. */
#ucb-diaspora .barfill.bgd-d0{background:var(--strata-0,#001B31)}
#ucb-diaspora .barfill.bgd-d1{background:var(--strata-1,#003262)}
#ucb-diaspora .barfill.bgd-d2{background:var(--strata-2,#1C5378)}
#ucb-diaspora .barfill.bgd-d3{background:var(--strata-3,#3B7188)}
#ucb-diaspora .barfill.bgd-d4{background:var(--strata-4,#6A8F92)}
#ucb-diaspora .barfill.bgd-d5{background:var(--strata-5,#9AA98F)}
#ucb-diaspora .barfill.bgd-d6{background:var(--strata-6,#C0A768)}
#ucb-diaspora .barfill.bgd-d7{background:var(--strata-7,#D9B23F)}
#ucb-diaspora .barfill.bgd-dnr{background:var(--ink-3,#5A6B7C)}
#ucb-diaspora .barcol[aria-pressed="true"] .barfill{outline:2px solid var(--accent-bright);outline-offset:1px}
#ucb-diaspora .bars.has-sel .barcol[aria-pressed="false"] .barfill{opacity:.32}
#ucb-diaspora .barlabel{font-family:"IBM Plex Mono",monospace;font-size:10.5px;color:var(--ink-3);text-align:center;padding-top:5px;border-top:1px solid var(--line-soft)}
#ucb-diaspora .barcol[aria-pressed="true"] .barlabel{color:var(--ink);font-weight:500}

#ucb-diaspora .controls{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin:20px 0 0}
#ucb-diaspora .field{display:flex;flex-direction:column;gap:5px}
#ucb-diaspora .field label{font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
#ucb-diaspora input[type="search"],#ucb-diaspora input[type="text"],#ucb-diaspora input[type="url"],#ucb-diaspora input[type="number"],#ucb-diaspora select,#ucb-diaspora textarea{
  font-family:"IBM Plex Sans",sans-serif;font-size:13.5px;color:var(--ink);background:var(--surface);
  border:1px solid var(--line);border-radius:3px;padding:8px 10px;min-height:36px}
#ucb-diaspora input[type="search"]{min-width:250px}
#ucb-diaspora select{min-width:148px}
#ucb-diaspora textarea{min-height:62px;resize:vertical;line-height:1.5}
#ucb-diaspora input:focus-visible,#ucb-diaspora select:focus-visible,#ucb-diaspora textarea:focus-visible{outline:2px solid var(--blue-soft);outline-offset:1px;border-color:var(--blue-soft)}
#ucb-diaspora .bgd-btn{font:500 13px/1.4 "IBM Plex Sans",sans-serif;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:3px;padding:8px 13px;min-height:36px;cursor:pointer}
#ucb-diaspora .bgd-btn:hover:not(:disabled){background:var(--surface-2)}
#ucb-diaspora .bgd-btn:disabled{opacity:.5;cursor:not-allowed}
#ucb-diaspora .bgd-btn:focus-visible{outline:2px solid var(--blue-soft);outline-offset:1px}
#ucb-diaspora .bgd-btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}
#ucb-diaspora .bgd-btn.primary:hover:not(:disabled){opacity:.9;background:var(--blue)}
#ucb-diaspora .bgd-btn.danger{color:var(--warn);border-color:var(--line)}
#ucb-diaspora .bgd-btn.add{border-color:var(--edit);color:var(--edit);font-weight:600}

#ucb-diaspora .resultline{display:flex;justify-content:space-between;align-items:baseline;gap:14px;flex-wrap:wrap;margin:18px 0 8px;
  font-family:"IBM Plex Mono",monospace;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
#ucb-diaspora .resultline strong{color:var(--ink);font-weight:500}

#ucb-diaspora .tablewrap{overflow-x:auto;border:1px solid var(--line);border-radius:3px;background:var(--surface)}
#ucb-diaspora table{width:100%;border-collapse:collapse;font-size:14px;min-width:1000px}
#ucb-diaspora thead th{position:sticky;top:0;z-index:2;background:var(--surface-2);text-align:left;
  font-family:"IBM Plex Mono",monospace;font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--ink-2);font-weight:500;
  padding:10px 14px;border-bottom:1px solid var(--line);white-space:nowrap}
#ucb-diaspora thead th.sortable{cursor:pointer;user-select:none}
#ucb-diaspora thead th.sortable:hover{color:var(--ink)}
#ucb-diaspora thead th .arrow{color:var(--accent);font-size:9px;margin-left:4px}
#ucb-diaspora tbody td{padding:11px 14px;border-bottom:1px solid var(--line-soft);vertical-align:top}
#ucb-diaspora tbody tr:last-child td{border-bottom:0}
#ucb-diaspora tbody tr:hover{background:var(--surface-2)}
#ucb-diaspora tbody tr.touched{box-shadow:inset 2px 0 0 var(--edit)}
#ucb-diaspora .person{display:flex;gap:11px;align-items:flex-start}
#ucb-diaspora .person .txt{min-width:0}
#ucb-diaspora .avatar{width:38px;height:38px;border-radius:3px;flex:none;position:relative;overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16), 0 0 0 1px rgba(14,28,39,.10)}
#ucb-diaspora .avatar span{font-family:"IBM Plex Mono",monospace;font-size:12.5px;font-weight:500;letter-spacing:.02em;line-height:1}
#ucb-diaspora .avatar img{width:100%;height:100%;object-fit:cover;display:block}
#ucb-diaspora .avatar.big{width:76px;height:76px;border-radius:4px}
#ucb-diaspora .avatar.big span{font-size:24px}
#ucb-diaspora .photoctl{grid-column:1/-1;display:flex;gap:16px;align-items:center;padding:12px 14px;border:1px solid var(--line-soft);border-radius:3px;background:var(--surface-2)}
#ucb-diaspora .photoctl .pbody{display:flex;flex-direction:column;gap:7px;min-width:0}
#ucb-diaspora .photoctl .plabel{font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
#ucb-diaspora .photoctl .prow{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#ucb-diaspora .photoctl .phint{font-size:11.5px;color:var(--ink-3);line-height:1.4;max-width:46ch}
#ucb-diaspora .nm{font-weight:600;color:var(--ink);display:block;line-height:1.3}
#ucb-diaspora .area{display:block;color:var(--ink-3);font-size:12.5px;line-height:1.4;margin-top:3px;max-width:34ch}
#ucb-diaspora .inst{display:block;color:var(--ink);line-height:1.3;max-width:30ch}
#ucb-diaspora .rank{display:block;color:var(--ink-3);font-size:12.5px;margin-top:3px;max-width:30ch}
#ucb-diaspora .geo{white-space:nowrap;font-size:13px;color:var(--ink-2)}
#ucb-diaspora .geo .rg{display:block;font-family:"IBM Plex Mono",monospace;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);margin-top:3px}
#ucb-diaspora .yr{font-family:"IBM Plex Mono",monospace;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:13.5px}
#ucb-diaspora .yr .approx,#ucb-diaspora .adv .inf{color:var(--ink-3)}
#ucb-diaspora .adv{font-size:13px;color:var(--ink-2)}
#ucb-diaspora .adv.none{color:var(--ink-3)}
#ucb-diaspora .adv .co{display:block;font-family:"IBM Plex Mono",monospace;font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-top:3px}
#ucb-diaspora .src{font-size:12.5px}
#ucb-diaspora .src a{color:var(--blue-soft);text-decoration:none;border-bottom:1px solid transparent}
#ucb-diaspora .src a:hover{border-bottom-color:var(--blue-soft)}
#ucb-diaspora .flagnote{display:block;margin-top:4px;font-size:11.5px;color:var(--accent);max-width:26ch;line-height:1.35}
#ucb-diaspora .tag{display:inline-block;font-family:"IBM Plex Mono",monospace;font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--edit);background:var(--edit-wash);border:1px solid var(--edit);border-radius:2px;padding:1px 5px;margin-top:5px}
#ucb-diaspora .stamp{display:block;font-size:11px;color:var(--ink-3);margin-top:4px}
#ucb-diaspora .rowedit{appearance:none;background:none;border:1px solid var(--line);border-radius:3px;color:var(--ink-2);
  font:500 11.5px/1 "IBM Plex Sans",sans-serif;padding:6px 9px;cursor:pointer;white-space:nowrap}
#ucb-diaspora .rowedit:hover{background:var(--surface-3);color:var(--ink)}
#ucb-diaspora .rowedit:focus-visible{outline:2px solid var(--blue-soft);outline-offset:1px}
#ucb-diaspora .empty{padding:38px 18px;text-align:center;color:var(--ink-3)}

/* dialog */
#ucb-diaspora dialog.sheet{border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--ink);
  padding:0;max-width:760px;width:calc(100vw - 32px);max-height:88vh;box-shadow:var(--shadow-lg)}
#ucb-diaspora dialog.sheet::backdrop{background:rgba(8,16,22,.55)}
#ucb-diaspora .sheet-head{position:sticky;top:0;background:var(--surface);border-bottom:1px solid var(--line);padding:16px 20px;z-index:1}
#ucb-diaspora .sheet-head h2{font-family:Newsreader,Georgia,serif;font-weight:500;font-size:22px;margin:0}
#ucb-diaspora .sheet-head p{margin:4px 0 0;font-size:13px;color:var(--ink-3)}
#ucb-diaspora .sheet-body{padding:18px 20px;display:grid;grid-template-columns:1fr 1fr;gap:14px 16px;overflow-y:auto}
#ucb-diaspora .sheet-body .full{grid-column:1/-1}
#ucb-diaspora .ffield{display:flex;flex-direction:column;gap:5px}
#ucb-diaspora .ffield label{font-family:"IBM Plex Mono",monospace;font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3)}
#ucb-diaspora .ffield .hint{font-size:11.5px;color:var(--ink-3);line-height:1.35}
#ucb-diaspora .ffield.check{flex-direction:row;align-items:center;gap:9px}
#ucb-diaspora .ffield.check label{font-family:"IBM Plex Sans",sans-serif;font-size:13px;letter-spacing:0;text-transform:none;color:var(--ink-2)}
#ucb-diaspora .ffield.check input{min-height:0;width:16px;height:16px;accent-color:var(--blue-soft)}
#ucb-diaspora .sheet-foot{position:sticky;bottom:0;background:var(--surface);border-top:1px solid var(--line);padding:14px 20px;
  display:flex;gap:9px;align-items:center;flex-wrap:wrap}
#ucb-diaspora .sheet-foot .spacer{margin-left:auto}
#ucb-diaspora .sheet-msg{font-size:12.5px;color:var(--warn);flex:1 1 100%;margin:0}
#ucb-diaspora .sheet-msg.ok{color:var(--edit)}
#ucb-diaspora .origbox{grid-column:1/-1;border-left:2px solid var(--line);padding:8px 0 8px 12px;font-size:12.5px;color:var(--ink-3);margin:0}

/* map */
#ucb-diaspora .maptools{display:flex;flex-wrap:wrap;gap:18px;align-items:flex-end;justify-content:space-between;margin:0 0 12px}
#ucb-diaspora .mapkey{display:flex;gap:16px;align-items:flex-end;font-family:"IBM Plex Mono",monospace;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
#ucb-diaspora .mapkey .k{display:flex;flex-direction:column;align-items:center;gap:5px}
#ucb-diaspora .mapkey svg{display:block;overflow:visible}
#ucb-diaspora .mapwrap{border:1px solid var(--line);border-radius:3px;background:var(--surface);overflow:hidden}
#ucb-diaspora #worldsvg{display:block;width:100%;height:auto;max-height:min(66vh,660px)}
#ucb-diaspora #ocean{fill:var(--surface)}
#ucb-diaspora #land{fill:var(--surface-3);stroke:var(--line);stroke-width:.6;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#ucb-diaspora #grat line{stroke:var(--line-soft);stroke-width:.5;vector-effect:non-scaling-stroke}
#ucb-diaspora .mk{cursor:pointer}
#ucb-diaspora .mk circle.hit{fill:transparent}
#ucb-diaspora .mk line.lead{stroke:var(--blue);stroke-width:.9;opacity:.45;vector-effect:non-scaling-stroke}
#ucb-diaspora .mk circle.dot{fill:var(--blue);fill-opacity:.42;stroke:var(--blue);stroke-width:1.1;vector-effect:non-scaling-stroke;transition:fill-opacity .12s ease}
#ucb-diaspora .mk:hover circle.dot{fill-opacity:.8}
#ucb-diaspora .mk.sel circle.dot{fill:var(--accent-bright);fill-opacity:.9;stroke:var(--accent)}
#ucb-diaspora .mk:focus-visible{outline:none}
#ucb-diaspora .mk:focus-visible circle.dot{stroke:var(--accent);stroke-width:2.4}
#ucb-diaspora .mapdetail{margin-top:14px;min-height:52px}
#ucb-diaspora .mapcard{border:1px solid var(--line);border-radius:3px;background:var(--surface);padding:14px 16px}
#ucb-diaspora .mapcard h4{margin:0;font-family:Newsreader,Georgia,serif;font-weight:500;font-size:19px}
#ucb-diaspora .mapcard .where{margin:2px 0 10px;font-family:"IBM Plex Mono",monospace;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-3)}
#ucb-diaspora .mapcard ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:9px 18px}
#ucb-diaspora .mapcard li{display:flex;gap:9px;align-items:flex-start;font-size:13.5px;line-height:1.4}
#ucb-diaspora .mapcard li .who2{min-width:0}
#ucb-diaspora .mapcard li b{font-weight:600;display:block}
#ucb-diaspora .mapcard li span{color:var(--ink-3);font-size:12.5px}
#ucb-diaspora .mapcard li em{font-style:normal;color:var(--accent);font-size:11px;font-family:"IBM Plex Mono",monospace;letter-spacing:.06em;text-transform:uppercase}
#ucb-diaspora .maphint{color:var(--ink-3);font-size:13px;padding:14px 2px}

/* read-only public snapshot */
#ucb-diaspora #addbtn,#ucb-diaspora #csv,#ucb-diaspora .syncpill,#ucb-diaspora .who,#ucb-diaspora dialog.sheet{display:none!important}
#ucb-diaspora .editbar{justify-content:flex-start}
#ucb-diaspora .field:has(#ftouch){display:none}
#ucb-diaspora table thead th:last-child,#ucb-diaspora table tbody td:last-child{display:none}
#ucb-diaspora .bgd-panel{margin-top:26px}
#ucb-diaspora .prose{max-width:68ch}
#ucb-diaspora .prose h2{font-family:Newsreader,Georgia,serif;font-weight:500;font-size:24px;margin:30px 0 8px}
#ucb-diaspora .prose h2:first-child{margin-top:0}
#ucb-diaspora .prose h3{font-family:"IBM Plex Mono",monospace;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin:26px 0 6px;font-weight:500}
#ucb-diaspora .prose p{margin:0 0 12px;color:var(--ink-2)}
#ucb-diaspora .prose p strong{color:var(--ink)}
#ucb-diaspora .prose ul{margin:0 0 14px;padding-left:20px;color:var(--ink-2)}
#ucb-diaspora .prose li{margin-bottom:7px}
#ucb-diaspora .prose a{color:var(--blue-soft)}
#ucb-diaspora .callout{border-left:2px solid var(--accent-bright);background:var(--accent-wash);padding:13px 16px;border-radius:0 3px 3px 0;margin:0 0 18px}
#ucb-diaspora .callout p{margin:0;color:var(--ink)}
#ucb-diaspora .callout.edit{border-left-color:var(--edit);background:var(--edit-wash)}

#ucb-diaspora .exlist{border:1px solid var(--line);border-radius:3px;background:var(--surface);overflow:hidden}
#ucb-diaspora .exrow{display:grid;grid-template-columns:minmax(150px,1.1fr) minmax(220px,2.4fr);border-bottom:1px solid var(--line-soft)}
#ucb-diaspora .exrow:last-child{border-bottom:0}
#ucb-diaspora .exrow > div{padding:11px 14px}
#ucb-diaspora .exname{font-weight:600;color:var(--ink)}
#ucb-diaspora .exname span{display:block;font-weight:400;font-size:12.5px;color:var(--ink-3);margin-top:2px}
#ucb-diaspora .exwhy{color:var(--ink-2);font-size:13.5px;border-left:1px solid var(--line-soft)}
#ucb-diaspora .exwhy a{color:var(--blue-soft);text-decoration:none;font-size:12.5px}
#ucb-diaspora .exwhy a:hover{text-decoration:underline}

#ucb-diaspora footer.foot{margin-top:44px;padding-top:18px;border-top:1px solid var(--line);font-size:12.5px;color:var(--ink-3);max-width:74ch}

@media (max-width:680px){
  #ucb-diaspora .wrap{padding:22px 15px 56px}
  #ucb-diaspora .fig{flex:1 1 50%;border-bottom:1px solid var(--line-soft)}
  #ucb-diaspora input[type="search"]{min-width:0;width:100%}
  #ucb-diaspora .field{flex:1 1 100%}
  #ucb-diaspora .exrow{grid-template-columns:1fr}
  #ucb-diaspora .exwhy{border-left:0;border-top:1px solid var(--line-soft)}
  #ucb-diaspora .sheet-body{grid-template-columns:1fr}
  #ucb-diaspora .editbar .who{margin-left:0;flex:1 1 100%}
}
@media (prefers-reduced-motion:reduce){#ucb-diaspora,#ucb-diaspora *{transition:none!important;animation:none!important}}

/* ---------------- Drupal integration ---------------- */
/* page.html.twig already wraps this in .auto-container, which supplies the
   1200px max-width and the 15px gutter; keep only the vertical rhythm. */
#ucb-diaspora .wrap{max-width:none;padding-left:0;padding-right:0}

/* The published page was authored against a small host reset. Pin the two
   parts of it this markup actually leans on, rather than trusting Bootstrap
   to keep shipping them: the tab panels hide via the `hidden` attribute, and
   Bootstrap's normalize sets `display:block` on `section`. */
#ucb-diaspora [hidden]{display:none!important}
#ucb-diaspora img{max-width:100%}
