/* Windows: chrome, traffic lights, sidebar, and the content inside them. */

.window {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 880px;
  max-width: calc(100vw - 28px);
  height: 560px;
  max-height: calc(100vh - var(--menubar-h) - 110px);
  border-radius: var(--radius-win);
  overflow: hidden;
  background: var(--chrome-2);
  backdrop-filter: var(--blur-chrome);
  -webkit-backdrop-filter: var(--blur-chrome);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow-win);
  animation: winIn var(--dur-win) var(--ease) both;
  will-change: transform;
}

@keyframes winIn {
  from { opacity: 0; transform: translateY(10px) scale(0.965); }
  to   { opacity: 1; transform: none; }
}

.window.closing {
  animation: winOut 180ms var(--ease) forwards;
  pointer-events: none;
}

@keyframes winOut {
  to { opacity: 0; transform: scale(0.96); }
}

/* minimize: shrink toward the dock */
.window.minimized {
  animation: winMin 300ms var(--ease) forwards;
  pointer-events: none;
}

@keyframes winMin {
  to { opacity: 0; transform: translateY(46vh) scale(0.18); }
}

/* the window layer: full-bleed so window coordinates are viewport coordinates,
   with perspective so staged thumbnails tilt in 3D. Above the desktop icons. */
#windows { position: absolute; inset: 0; z-index: 20; perspective: 1200px; pointer-events: none; }
.window { pointer-events: auto; }

/* Stage Manager: windows not in front become thumbnails down the left edge
   (position and size are set from js/wm.js) */
.window {
  transition: translate 460ms var(--ease-snap), scale 460ms var(--ease-snap),
    rotate 460ms var(--ease-snap), opacity 300ms var(--ease);
}

.window.staged {
  rotate: y 28deg;
  opacity: 0.88;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

/* covers the content so the whole thumbnail is one click target */
.window.staged::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  transition: background var(--dur-fast) var(--ease);
}

.window.staged:hover { opacity: 1; }
.window.staged:hover::after { background: rgba(255, 255, 255, 0.06); }

/* unfocused windows recede */
.window:not(.focused) { box-shadow: 0 18px 46px rgba(0, 0, 0, 0.44); }
.window:not(.focused) .titlebar { color: var(--muted-2); }
.window:not(.focused) .traffic button { background: rgba(255, 255, 255, 0.22); }

.window.maximized {
  transition: none;
  border-radius: 0;
}

/* zoomed into the room beside Ari: still a floating window */
.window.maximized.tiled { border-radius: var(--radius-win); }

/* ---------- title bar ---------- */
.titlebar {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  background: rgba(68, 71, 84, 0.42);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: default;
  user-select: none;
  touch-action: none;
}

.traffic { display: flex; gap: 8px; }

.traffic button {
  position: relative;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: default;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.22);
}

.traffic .tl-close { background: var(--tl-red); }
.traffic .tl-min { background: var(--tl-yellow); }
.traffic .tl-max { background: var(--tl-green); }

/* glyphs only appear when the cluster is hovered — same as the real thing */
.traffic button::after {
  content: "";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  line-height: 12px;
  text-align: center;
  color: rgba(0, 0, 0, 0.58);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}

.traffic:hover .tl-close::after { content: "\00d7"; font-size: 12px; opacity: 1; }
.traffic:hover .tl-min::after { content: "\2013"; opacity: 1; }
.traffic:hover .tl-max::after { content: "\2922"; font-size: 8px; opacity: 1; }

.title {
  position: absolute;
  left: 0;
  right: 0;
  text-align: center;
  font-size: var(--text-base);
  font-weight: 600;
  pointer-events: none;
}

.titlebar .tb-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  z-index: 1;
}

/* ---------- body ---------- */
.win-body {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.sidebar {
  flex: 0 0 208px;
  padding: 8px;
  overflow-y: auto;
  background: var(--sidebar);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.3);
}

.sb-label {
  padding: 12px 9px 5px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-3);
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 9px;
  border: 0;
  border-radius: 7px;
  background: none;
  text-align: left;
  color: var(--text);
  cursor: default;
  transition: background var(--dur-fast) var(--ease);
}

.sb-item:hover { background: rgba(255, 255, 255, 0.08); }
.sb-item[aria-selected="true"] { background: var(--accent); color: #fff; }
.sb-item svg { flex: 0 0 auto; opacity: 0.85; }
.sb-item[aria-selected="true"] svg { opacity: 1; }

.content {
  flex: 1 1 auto;
  padding: 30px 34px 40px;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: rgba(18, 19, 25, 0.62);
}

.pane[hidden] { display: none; }

/* ---------- content typography ---------- */
.eyebrow {
  margin: 0 0 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.content h1 {
  margin: 0 0 12px;
  font-size: var(--text-title);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.content h2 {
  margin: 30px 0 10px;
  font-size: var(--text-lg);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.content p { margin: 0 0 12px; max-width: 62ch; color: var(--muted); line-height: 1.55; }
.content strong { color: var(--text); font-weight: 600; }

.content a { color: var(--accent); text-decoration: none; }
.content a:hover { text-decoration: underline; }

.lede { font-size: 15px; color: rgba(235, 235, 245, 0.78) !important; }

/* ---------- reusable pieces ---------- */
.rule { height: 1px; margin: 26px 0; background: var(--hair); border: 0; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 10px;
  margin: 20px 0 4px;
}

.stat {
  padding: 13px 14px;
  border-radius: 10px;
  background: var(--fill);
  border: 1px solid var(--hair);
}

.stat b { display: block; font-size: 22px; font-weight: 680; letter-spacing: -0.03em; }
.stat span { font-size: var(--text-xs); color: var(--muted-2); }

/* project rows — list view, like a file browser */
.rows { display: grid; gap: 2px; margin-top: 14px; }

.row {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  text-align: left;
  color: inherit;
  cursor: default;
  transition: background var(--dur-fast) var(--ease);
}

.row:hover { background: var(--fill-2); }
.row + .row { box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.05); }

.row .dot {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.row h3 { margin: 0 0 2px; font-size: var(--text-base); font-weight: 600; }
.row p { margin: 0; max-width: none; font-size: var(--text-sm); color: var(--muted-2); }
.row .meta { font-size: var(--text-sm); color: var(--muted-3); font-variant-numeric: tabular-nums; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.tag {
  padding: 4px 9px;
  border-radius: 100px;
  font-size: var(--text-xs);
  color: var(--muted);
  background: var(--fill);
  border: 1px solid var(--hair);
}

/* timeline */
.tl-list { margin: 16px 0 0; padding: 0 0 0 18px; list-style: none; border-left: 1px solid var(--hair); }
.tl-list li { position: relative; padding: 0 0 22px 16px; }
.tl-list li::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.16);
}
.tl-list h3 { margin: 0; font-size: var(--text-base); font-weight: 600; }
.tl-list .when { font-size: var(--text-xs); color: var(--muted-3); font-variant-numeric: tabular-nums; }
.tl-list p { margin: 5px 0 0; font-size: var(--text-sm); }

/* buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }

.btn {
  padding: 7px 15px;
  border-radius: 8px;
  border: 1px solid var(--hair-strong);
  background: var(--fill);
  color: var(--text);
  text-decoration: none;
  cursor: default;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn:hover { background: var(--fill-2); text-decoration: none; }
.btn:active { transform: scale(0.975); }
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.btn.primary:hover { background: var(--accent-deep); }

/* ---------- terminal window ---------- */
.terminal {
  flex: 1;
  margin: 0;
  padding: 16px 18px 14px;
  overflow-y: auto;
  background: rgba(9, 11, 15, 0.92);
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(235, 240, 245, 0.9);
  cursor: text;
}

.term-block { white-space: pre-wrap; word-break: break-word; }
.term-block + .term-block { margin-top: 0; }

.terminal .u { color: var(--green); }
.terminal .p { color: var(--teal); }
.terminal .c { color: var(--muted-3); }
.terminal .g { color: var(--green); }
.terminal .e { color: var(--red); }
.terminal b { color: #fff; font-weight: 650; }

.term-line { display: flex; align-items: baseline; gap: 8px; }
.term-ps { flex: 0 0 auto; color: var(--green); white-space: nowrap; }

.term-in {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  outline: none;
  font: inherit;
  color: rgba(235, 240, 245, 0.96);
  caret-color: var(--green);
}

/* ---------- resize grip ---------- */
.grip {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  touch-action: none;
}

.window.maximized .grip { display: none; }

/* ---------- small screens: windows become sheets ---------- */
@media (max-width: 760px) {
  .window {
    width: calc(100vw - 16px) !important;
    height: calc(100vh - var(--menubar-h) - 104px) !important;
    left: 8px !important;
    top: calc(var(--menubar-h) + 10px) !important;
    transform: none !important;
  }

  /* The sidebar becomes a scrolling tab strip — without this the
     secondary panes are simply unreachable on a phone. */
  .win-body { flex-direction: column; }

  .sidebar {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.34);
  }

  .sidebar::-webkit-scrollbar { display: none; }
  .sb-label { display: none; }

  .sb-item {
    width: auto;
    flex: 0 0 auto;
    padding: 6px 13px;
    border-radius: 100px;
    background: var(--fill);
    white-space: nowrap;
  }

  .content { padding: 22px 20px 32px; }
  .grip { display: none; }
}

/* ---------- project cards ---------- */
.pcards { display: grid; gap: 8px; margin: 14px 0 26px; }

.pcard {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--hair);
  border-radius: 11px;
  background: var(--fill);
  text-align: left;
  color: inherit;
  cursor: default;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.pcard:hover { background: var(--fill-2); border-color: var(--hair-strong); }
.pcard:active { transform: scale(0.995); }

.pcard .shot,
.pcard .shot-fallback {
  width: 160px;
  height: 100px;
  border-radius: 7px;
  object-fit: cover;
  object-position: top left;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.shot-fallback {
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.pcard-text h3 { margin: 0 0 3px; font-size: var(--text-base); font-weight: 650; }
.pcard-text h3 em { font-style: normal; font-weight: 400; color: var(--muted-2); }
.pcard-text p { margin: 0; max-width: 52ch; font-size: var(--text-sm); color: var(--muted); }

.live {
  display: inline-block;
  margin-top: 7px;
  font-size: var(--text-xs);
  color: var(--green);
}

/* screenshot gallery inside a detail pane */
.shots { display: grid; gap: 10px; margin: 22px 0 4px; }

.shots img {
  width: 100%;
  height: auto;
  border-radius: 9px;
  border: 1px solid var(--hair);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

/* ---------- collapsed web-development tab ---------- */
.webtab {
  margin-top: 8px;
  border: 1px solid var(--hair);
  border-radius: 11px;
  background: var(--fill);
  overflow: hidden;
}

.webtab summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  font-weight: 600;
  cursor: default;
  list-style: none;
  transition: background var(--dur-fast) var(--ease);
}

.webtab summary::-webkit-details-marker { display: none; }
.webtab summary:hover { background: var(--fill-2); }
.webtab summary span { font-size: var(--text-sm); font-weight: 400; color: var(--muted-3); }

.webtab summary::after {
  content: "›";
  margin-left: 10px;
  font-size: 17px;
  color: var(--muted-2);
  transition: transform var(--dur) var(--ease);
}

.webtab[open] summary::after { transform: rotate(90deg); }

.weblist { margin: 0; padding: 4px 8px 10px; list-style: none; }

.weblist li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 6px;
  border-radius: 7px;
}

.weblist li:hover { background: var(--fill); }
.weblist a { display: flex; gap: 10px; align-items: baseline; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.weblist a:hover { text-decoration: none; }
.weblist b { font-weight: 600; font-size: var(--text-sm); white-space: nowrap; }
.weblist span { font-size: var(--text-sm); color: var(--muted-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weblist .live-link { flex: 0 0 auto; font-size: var(--text-xs); color: var(--accent); }

@media (max-width: 760px) {
  .pcard { grid-template-columns: 96px 1fr; grid-template-rows: auto auto; }
  .pcard .shot, .pcard .shot-fallback { width: 96px; height: 64px; }
  .pcard .meta { grid-column: 2; font-size: var(--text-xs); }
}

/* ---------- embedded PDF ---------- */
.pdfwrap { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.pdfview {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #2a2c33;
}

.pdffallback { display: grid; place-content: center; gap: 10px; height: 100%; padding: 40px; text-align: center; }

.pdfbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: var(--text-sm);
  color: var(--muted-2);
  background: rgba(52, 54, 62, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pdfbar-actions { display: flex; gap: 8px; }

/* ---------- contact cards ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 9px;
  margin: 20px 0 4px;
}

.ccard {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  background: var(--fill);
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: default;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.ccard:hover { background: var(--fill-2); border-color: var(--hair-strong); text-decoration: none; }
.ccard-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.ccard b { display: block; font-size: var(--text-base); font-weight: 600; }
.ccard em { font-style: normal; font-size: var(--text-sm); color: var(--muted-2); }

/* ---------- collapsible groups in the sidebar ---------- */
.sb-group > summary {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 9px 5px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-3);
  cursor: default;
  list-style: none;
}

.sb-group > summary::-webkit-details-marker { display: none; }
.sb-group > summary:hover { color: var(--muted); }

.sb-group > summary::before {
  content: "›";
  font-size: 13px;
  transition: transform var(--dur) var(--ease);
}

.sb-group[open] > summary::before { transform: rotate(90deg); }

.webtab + .webtab { margin-top: 8px; }
.webtab .pcards { margin: 8px 10px 12px; }
.sb-group .sb-item { margin-left: 2px; }

/* ---------- pull quote ---------- */
.quote {
  margin: 22px 0 4px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  border-radius: 0 9px 9px 0;
  background: linear-gradient(90deg, rgba(10, 132, 255, 0.10), transparent 70%);
}

.quote p { margin: 0; color: rgba(235, 235, 245, 0.82); font-size: 14px; line-height: 1.55; }
.quote em { font-style: normal; color: var(--text); font-weight: 600; }

/* ---------- numbered path ---------- */
.path { margin: 20px 0 4px; padding: 0; list-style: none; counter-reset: step; }

.path li {
  position: relative;
  padding: 0 0 22px 42px;
  counter-increment: step;
}

.path li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  font-size: var(--text-sm);
  font-weight: 650;
  color: var(--accent);
  background: rgba(10, 132, 255, 0.14);
  border: 1px solid rgba(10, 132, 255, 0.32);
}

.path li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 31px;
  bottom: 6px;
  width: 1px;
  background: var(--hair);
}

.path h3 { margin: 3px 0 5px; font-size: var(--text-base); font-weight: 650; }
.path p { margin: 0; font-size: var(--text-sm); }

/* ---------- About: System Settings layout ---------- */
.window[data-app="about"] .sidebar { flex-basis: 224px; padding: 10px 9px; }
.window[data-app="about"] .content { background: rgba(22, 23, 29, 0.78); }
.window[data-app="about"] .pane { max-width: 600px; margin: 0 auto; }

.sb-gap { height: 10px; }

/* square app-style icon, used in the sidebar and in rows */
.sic {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.sic svg { width: 14px; height: 14px; }
.sic.glyph-ari { background: var(--ari-orb); }

/* the Apple-Account-style card at the top of the sidebar */
.sb-profile { gap: 10px; padding: 8px 9px; margin-bottom: 2px; }
.sb-who { display: grid; min-width: 0; line-height: 1.25; }
.sb-who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-who em { font-style: normal; font-size: var(--text-xs); color: var(--muted-2); }
.sb-profile[aria-selected="true"] em { color: rgba(255, 255, 255, 0.78); }

/* photo with initials underneath — shows if assets/me.jpg is missing */
.avatar {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  color: #fff;
  background: linear-gradient(160deg, #8E95A6, #4E5466);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.profile { display: grid; justify-items: center; gap: 2px; margin: 6px 0 22px; text-align: center; }
.profile .avatar { width: 96px; height: 96px; margin-bottom: 10px; font-size: 34px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.14); }
.content .profile h1 { margin: 0; font-size: 24px; letter-spacing: -0.02em; }
.content .profile .role { margin: 2px 0 0; color: var(--text); font-size: 14px; }
.content .profile .where { margin: 0; font-size: var(--text-sm); color: var(--muted-2); }

/* pane header: big icon, title, one line of description */
.phead { display: grid; justify-items: center; gap: 6px; margin: 4px 0 22px; text-align: center; }
.phead .sic { width: 54px; height: 54px; border-radius: 13px; margin-bottom: 4px; }
.phead .sic svg { width: 30px; height: 30px; }
.content .phead h1 { margin: 0; font-size: 22px; letter-spacing: -0.02em; }
.content .phead p { margin: 0; max-width: 46ch; font-size: var(--text-sm); }

/* grouped inset list */
.sgroup {
  margin: 0 0 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hair);
  overflow: hidden;
}

.content h2.sg-label {
  margin: 0 0 7px 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted-2);
}

.srow {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: default;
  transition: background var(--dur-fast) var(--ease);
}
.srow > span { flex: 1 1 auto; }
.srow em { font-style: normal; font-size: var(--text-sm); color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content a.srow { color: inherit; }
.content a.srow:hover { text-decoration: none; }
a.srow:hover, button.srow:hover { background: rgba(255, 255, 255, 0.06); }
a.srow::after, button.srow::after { content: "›"; margin-left: 2px; font-size: 17px; line-height: 1; color: var(--muted-3); }

/* hairline between rows, inset to where the label starts */
.srow + .srow { background-image: linear-gradient(var(--hair), var(--hair)); background-size: calc(100% - 45px) 1px; background-position: 45px 0; background-repeat: no-repeat; }

.stext { padding: 14px 16px; }
.stext + .stext { border-top: 1px solid var(--hair); }
.stext p:last-child { margin-bottom: 0; }
.stext h3 { margin: 0 0 6px; font-size: var(--text-base); font-weight: 650; }
.stext .tags { margin-top: 2px; }
.content .stext p { max-width: none; }
.stext.path { margin: 0; padding: 18px 16px 0; }

.scells { display: grid; grid-template-columns: repeat(3, 1fr); }
.scells > div { display: grid; gap: 1px; padding: 12px 14px; text-align: center; }
.scells > div + div { border-left: 1px solid var(--hair); }
.scells b { font-size: 20px; font-weight: 680; letter-spacing: -0.03em; }
.scells span { font-size: var(--text-xs); color: var(--muted-2); }

.content .sg-foot { margin: -8px 4px 0; font-size: var(--text-sm); color: var(--muted-2); }

@media (max-width: 760px) {
  .sb-gap, .sb-profile .avatar, .sb-who em { display: none; }
  .sb-profile { padding: 6px 13px; }
  .window[data-app="about"] .sidebar { flex-basis: auto; padding: 8px 10px; }
  .scells b { font-size: 17px; }
}
