/* Sitewide See sources / Share / Deep dive — matches CoC v8 colours & shapes (no red) */
:root {
  --pa-blue: #0B6E99;
  --pa-blue-deep: #0a5a7d;
  --pa-pink: #E879B8;
  --pa-pink-text: #9D174D;
  --pa-green: #16A34A;
  --pa-ink: #111827;
  --pa-muted: #5A6570;
  --pa-line: #D5DCE5;
  --pa-surface: #fff;
  --pa-surface2: #F5F7FA;
  --pa-orange: #F59E0B;
  --pa-text: #1f2937;
}

.post-actions,
.card-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px 12px;
  margin: 12px 0 4px;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.post-actions .card-sources,
.post-actions .card-share,
.post-actions .card-deepdive,
.card-toolbar .card-sources,
.card-toolbar .card-share,
.card-toolbar .card-deepdive {
  flex: 0 0 auto;
  margin: 0;
}
.card-share, .card-deepdive { display: contents; }

details.card-sources > summary.btn-sources {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--pa-blue-deep);
  background: #E3F4FA;
  border: 2px solid var(--pa-blue);
  border-radius: 999px;
  padding: 8px 16px;
  line-height: 1.2;
  user-select: none;
}
details.card-sources > summary.btn-sources::-webkit-details-marker { display: none; }
details.card-sources > summary.btn-sources::marker { content: ""; }
details.card-sources > summary.btn-sources::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.15em;
  transition: transform .15s ease;
}
details.card-sources[open] > summary.btn-sources::after {
  transform: rotate(-135deg);
  margin-top: 0.15em;
}
details.card-sources > summary.btn-sources:hover { background: #d0ebf6; }
details.card-sources > summary.btn-sources:focus-visible {
  outline: 3px solid var(--pa-orange);
  outline-offset: 2px;
}
.card-sources-body {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--pa-surface2);
  border: 1px solid var(--pa-line);
  border-radius: 12px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.card-sources-body ul { margin: 0; padding-left: 1.1em; }

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--pa-pink-text);
  background: #FCE7F3;
  border: 2px solid var(--pa-pink);
  border-radius: 999px;
  padding: 8px 16px;
  line-height: 1.2;
  user-select: none;
}
.btn-share:hover { background: #f9d4e9; }
.btn-share:focus-visible {
  outline: 3px solid var(--pa-orange);
  outline-offset: 2px;
}
.btn-share svg { width: 16px; height: 16px; flex: 0 0 auto; }

.share-panel {
  position: static;
  z-index: 5;
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--pa-surface);
  border: 2px solid var(--pa-line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.share-panel[hidden] { display: none !important; }
.share-panel .share-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  color: var(--pa-blue-deep);
  background: #E3F4FA;
  border: 2px solid var(--pa-blue);
  border-radius: 999px;
  padding: 8px 14px;
}
.share-panel .share-copy:hover { background: #d0ebf6; }
.share-panel .share-copied {
  font-size: 13px;
  font-weight: 700;
  color: var(--pa-green);
  margin: 0;
}
.share-panel .share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-panel .share-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--pa-ink);
  background: var(--pa-surface2);
  border: 1px solid var(--pa-line);
  border-radius: 999px;
  padding: 7px 12px;
  min-width: 5.5em;
}
.share-panel .share-links a:hover {
  border-color: var(--pa-blue);
  color: var(--pa-blue-deep);
}

.btn-deepdive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--pa-ink);
  background: #E8F8EF;
  border: 2px solid var(--pa-green);
  border-radius: 999px;
  padding: 8px 16px;
  line-height: 1.2;
  user-select: none;
}
.btn-deepdive:hover { background: #d5f1e2; }
.btn-deepdive:focus-visible {
  outline: 3px solid var(--pa-orange);
  outline-offset: 2px;
}
.btn-deepdive .dd-lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--pa-muted);
  background: var(--pa-surface2);
  border-radius: 999px;
  padding: 2px 8px;
  border: 1px solid var(--pa-line);
  white-space: nowrap;
}
.btn-deepdive .dd-lock svg { width: 12px; height: 12px; }

.deepdive-panel {
  position: static;
  z-index: 6;
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--pa-surface);
  border: 2px solid var(--pa-line);
  border-radius: 12px;
  padding: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.deepdive-panel[hidden] { display: none !important; }
.deepdive-panel h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pa-ink);
}
.deepdive-panel p { margin: 0 0 10px; font-size: 14px; color: var(--pa-text); }
.deepdive-panel .dd-join {
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  color: var(--pa-blue-deep);
  text-decoration: none;
  border-bottom: 2px solid var(--pa-blue);
}

.prose [data-deep-teaser],
.deepdive-panel,
.post-actions,
.card-sources-body {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.post-actions, .deepdive-panel, [data-deep-teaser], details.card-sources {
  scroll-margin-top: 5.5rem;
}

@media (max-width: 720px) {
  .post-actions .card-sources > summary.btn-sources,
  .card-toolbar .card-sources > summary.btn-sources,
  .btn-share,
  .btn-deepdive {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .share-panel, .deepdive-panel {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --pa-blue: #33B5E5;
    --pa-blue-deep: #7DD3F0;
    --pa-pink: #FF4FA8;
    --pa-pink-text: #FF8AC4;
    --pa-green: #34D399;
    --pa-ink: #F5F5F2;
    --pa-muted: #A9B3AE;
    --pa-line: #2A3540;
    --pa-surface: #151A20;
    --pa-surface2: #1C2430;
    --pa-orange: #F59E0B;
    --pa-text: #E8EAE6;
  }
}
html[data-theme="dark"] {
  --pa-blue: #33B5E5;
  --pa-blue-deep: #7DD3F0;
  --pa-pink: #FF4FA8;
  --pa-pink-text: #FF8AC4;
  --pa-green: #34D399;
  --pa-ink: #F5F5F2;
  --pa-muted: #A9B3AE;
  --pa-line: #2A3540;
  --pa-surface: #151A20;
  --pa-surface2: #1C2430;
  --pa-orange: #F59E0B;
  --pa-text: #E8EAE6;
}

/* Hardcoded pastel fills need dark counterparts */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) details.card-sources > summary.btn-sources,
  :root:not([data-theme="light"]) .share-panel .share-copy {
    background: #102838;
    color: var(--pa-blue-deep);
  }
  :root:not([data-theme="light"]) details.card-sources > summary.btn-sources:hover,
  :root:not([data-theme="light"]) .share-panel .share-copy:hover {
    background: #16384c;
  }
  :root:not([data-theme="light"]) .btn-share {
    background: #3a1528;
    color: var(--pa-pink-text);
  }
  :root:not([data-theme="light"]) .btn-share:hover { background: #4a1c34; }
  :root:not([data-theme="light"]) .btn-deepdive {
    background: #10281c;
    color: var(--pa-ink);
  }
  :root:not([data-theme="light"]) .btn-deepdive:hover { background: #163826; }
}
html[data-theme="dark"] details.card-sources > summary.btn-sources,
html[data-theme="dark"] .share-panel .share-copy {
  background: #102838;
  color: var(--pa-blue-deep);
}
html[data-theme="dark"] details.card-sources > summary.btn-sources:hover,
html[data-theme="dark"] .share-panel .share-copy:hover {
  background: #16384c;
}
html[data-theme="dark"] .btn-share {
  background: #3a1528;
  color: var(--pa-pink-text);
}
html[data-theme="dark"] .btn-share:hover { background: #4a1c34; }
html[data-theme="dark"] .btn-deepdive {
  background: #10281c;
  color: var(--pa-ink);
}
html[data-theme="dark"] .btn-deepdive:hover { background: #163826; }

/* From social v2-nav — index cards + home strip + back link (no red) */
.from-social-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1.25rem}
.from-social-list .fs-card{
  display:flex;flex-direction:column;gap:.35rem;
  padding:1rem 1.1rem 1.05rem;
  border:1px solid var(--line,var(--border,#D5DCE5));
  border-radius:16px;
  border-top:6px solid var(--link-teal,#00739A);
  background:var(--surface,#fff);
}
.from-social-list .fs-card-title{text-decoration:none;color:inherit}
.from-social-list .fs-card-title strong{font-size:1.15rem;line-height:1.3;display:block}
.from-social-list .fs-card-date{
  display:block;margin:.15rem 0 .35rem;
  font:700 .8rem/1.3 var(--font-mono,ui-monospace,monospace);
  color:var(--muted,#5A6570);letter-spacing:.02em;
}
.from-social-list .fs-card-blurb{margin:0 0 .35rem;color:var(--fg,#1f2937)}
.fs-card-actions.card-toolbar{margin-top:.5rem}
a.btn-read{
  display:inline-flex;align-items:center;gap:8px;
  font-size:14px;font-weight:700;font-family:inherit;line-height:1.2;
  text-decoration:none;color:var(--pa-blue-deep,#0a5a7d);
  background:#E3F4FA;border:2px solid var(--pa-blue,#0B6E99);
  border-radius:999px;padding:8px 16px;
}
a.btn-read:hover{background:#d0ebf6}
a.btn-deepdive{
  display:inline-flex;align-items:center;gap:8px;
  font-size:14px;font-weight:700;font-family:inherit;line-height:1.2;
  text-decoration:none;color:var(--pa-ink,#111827);
  background:#E8F8EF;border:2px solid var(--pa-green,#16A34A);
  border-radius:999px;padding:8px 16px;
}
a.btn-deepdive:hover{background:#d5f1e2}
a.btn-deepdive .dd-lock{display:inline-flex;align-items:center;gap:4px;margin-left:2px}
a.btn-deepdive .dd-lock svg{width:14px;height:14px}
.fs-back-top{margin:0 0 .75rem;font-weight:700}
/* Contrast fixed in nav-fit.css for .page-head .fs-back-top a */
.fs-home-strip h2{margin-bottom:.75rem}
.fs-home-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.65rem}
.fs-home-list li{
  display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;
  border-left:5px solid var(--link-teal,#00739A);
  padding:6px 12px;background:var(--surface,transparent);
}
.fs-home-list a{font-weight:700;text-decoration:none;color:inherit}
.fs-home-list a:hover{text-decoration:underline}
.fs-home-list time{color:var(--muted,#5A6570);font-size:.85rem}
/* Slightly tighter nav so From social fits one row at 1280 */
/* nav fit: see /nav-fit.css */

/* Other news one-button (from-social v3-onebutton) */
.fs-other-news-cta{margin:1.5rem 0 1.25rem;padding-top:1rem;border-top:1px solid var(--line,var(--border,#D5DCE5))}
a.btn-other-news{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  box-sizing:border-box;min-height:44px;padding:10px 20px;
  font-size:15px;font-weight:700;font-family:inherit;line-height:1.2;
  text-decoration:none;
  color:#0A4A66 !important;
  background:#E3F4FA;
  border:2px solid #33B5E5;
  border-radius:999px;
}
a.btn-other-news:hover{background:#d0ebf6;color:#083A52 !important}
a.btn-other-news:focus-visible{outline:3px solid #F59E0B;outline-offset:2px}
a.btn-other-news .fs-on-arrow{font-weight:700}
.fs-more-social{margin:1.25rem 0 1rem}
.fs-more-social h2{border:0;margin:0 0 .65rem;padding:0;font-size:1.05rem}
.fs-more-social ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.4rem}
.fs-more-social li{
  border-left:5px solid var(--link-teal,#00739A);
  padding:.35rem .75rem;background:var(--surface,transparent);
}
.fs-more-social a{font-weight:700;text-decoration:none;color:inherit}
.fs-more-social a:hover{text-decoration:underline}
html[data-theme=dark] a.btn-other-news,
:root[data-theme=dark] a.btn-other-news{
  background:#102838;
  color:#7DD3F0 !important;
  border-color:#33B5E5;
}
html[data-theme=dark] a.btn-other-news:hover,
:root[data-theme=dark] a.btn-other-news:hover{
  background:#16384c;
  color:#A8E4F7 !important;
}
