:root{
  --accent: rgb(255,90,90);
  --accentGreen: rgb(60,255,140);
  --bg:#000;
  --fg:#f2f2f2;
  --muted:rgba(242,242,242,.7);
  --card:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.12);
  --radius:18px;

  --danger:rgba(255,70,70,.35);
  --ok:rgba(60,255,140,.28);
  --warn:rgba(255,200,120,.9);
}

*{ box-sizing:border-box; }

body{
  margin:0;
  min-height:100vh;
  background:var(--bg);
  color:var(--fg);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.wrap{ max-width:860px; margin:0 auto; padding:14px 14px 40px; }
.wrap.narrow{ max-width:420px; }

body.hasFixedHeader .wrap{
  padding-top: calc(14px + var(--fixedHeaderH, 0px));
}

.fixedHeader{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:40;
  display:flex;
  flex-direction:column;
  align-items:stretch;
}

.topBar{
  padding:10px 14px 12px;
}

.topBarInner{
  max-width:860px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:26px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.58);
  backdrop-filter: blur(8px);
  box-shadow:0 12px 30px rgba(0,0,0,.55);
}

.topLeft{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.brandImg{
  height:48px;
  width:auto;
  max-width:52%;
  flex-shrink:0;
  display:block;
  object-fit:contain;
  opacity:.95;
}

/* Mobile header layout: mask (2 rows) + links on row 1 + brand on row 2 */
@media (max-width:520px){
  .topBarInner{
    padding:10px 12px;
    border-radius:22px;
    display:grid;
    grid-template-columns: 76px 1fr;
    grid-template-rows: auto auto;
    column-gap:12px;
    row-gap:8px;
    align-items:center;
    justify-content:stretch;
  }

  /* Let children inside .topLeft participate in the grid without changing HTML */
  .topLeft{ display:contents; }

  /* Mask spans two rows */
  .topBarInner .sigilImg{
    grid-column:1;
    grid-row:1 / span 2;
    width:76px;
    height:76px;
    border-radius:18px;
  }

  /* Row 1: links */
  .topBarInner .sigilBtns{
    grid-column:2;
    grid-row:1;
    justify-self:start;
    display:flex;
    gap:10px;
    flex-wrap:wrap;
  }

  /* Row 2: brand */
  .topBarInner .brandImg{
    grid-column:2;
    grid-row:2;
    justify-self:start;
    height:28px;
    max-width:100%;
  }
}

.ritualTopFixed{
  margin:0;
  padding:12px 10px;
  border-top:0;
  border-bottom:1px solid rgba(0,0,0,.15);
}

.ritualTopFixed .ritualInner{
  width:100%;
  max-width:860px;
  margin:0 auto;
  padding:0 14px;
}

.sigilFixed{
  padding:10px 14px 12px;
}

.sigilFixedInner{
  max-width:860px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  padding:12px 14px;
  border-radius:26px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.58);
  backdrop-filter: blur(8px);
  box-shadow:0 12px 30px rgba(0,0,0,.55);
}

@media (max-width:420px){
  .sigilFixedInner{ padding:10px 12px; border-radius:22px; }
}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px;
}

.btn{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  color:var(--fg);
  font-size:14px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn:hover{ background:rgba(255,255,255,.12); }

.mailFooter{
  margin-top:26px;
  display:flex;
  justify-content:center;
  opacity:.72;
}
.mailFooter a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.15);
  background:rgba(255,255,255,.04);
  transition:opacity .15s ease, transform .1s ease, background .15s ease;
}
.mailFooter a:hover{
  opacity:1;
  background:rgba(255,255,255,.08);
  transform:scale(1.05);
}
.mailFooter img{
  width:26px;
  height:26px;
  filter:invert(1) contrast(1.2);
  opacity:.9;
  display:block;
}

.nav{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px; }

.topbar{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  margin-bottom:12px;
  min-height:42px;
}

.topbarCenter{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:nowrap;
  white-space:nowrap;
  max-width:calc(100% - 80px);
}

.iconBtn{
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  color:var(--fg);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  line-height:1;
  transition:background .15s ease, transform .06s ease;
}
.iconBtn:hover{ background:rgba(255,255,255,.12); }
.iconBtn:active{ transform:scale(.99); }

/* Generic SVG icon styling (drawer exit + scroll buttons, etc.) */
.iconBtn svg{
  width:24px;
  height:24px;
  stroke:currentColor;
  fill:none;
  stroke-width:2.2;
  stroke-linecap:round;
  stroke-linejoin:round;
}


#backBtnBottom{
  width:50px;
  height:50px;
  border-radius:17px;
  font-size:22px;
}

.pageTag{
  margin-left:2px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.92);
  font-weight:800;
  font-size:17px;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  box-shadow:0 0 0 1px rgba(255,255,255,.10) inset;
}

/* Page labels are links (BLOG / RESOURCES). Keep them styled like chips. */
.pageTagLink{ text-decoration:none; }
.pageTagLink:visited{ color:inherit; }

/* Section label colors */
.pageTag.blogTag{
  color:var(--accent);
  border-color:rgba(255,90,90,.55);
  background:rgba(255,70,70,.10);
  box-shadow:0 0 0 1px rgba(255,70,70,.14) inset, 0 10px 22px rgba(0,0,0,.55);
}

.pageTag.resourcesTag{
  color:var(--accentGreen);
  border-color:rgba(60,255,140,.45);
  background:rgba(60,255,140,.08);
  box-shadow:0 0 0 1px rgba(60,255,140,.14) inset, 0 10px 22px rgba(0,0,0,.55);
}

.drawer{
  position:fixed;
  top:0;
  left:0;
  width:min(260px, 86vw);
  max-width:320px;
  background:rgba(0,0,0,.92);
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:12px;
  backdrop-filter: blur(8px);
  box-shadow:0 16px 40px rgba(0,0,0,.65);
  z-index:60;
  transform:translateY(-8px) scale(.98);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .14s ease, transform .14s ease;
}

.drawer.open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease;
  z-index:55;
}

.overlay.open{
  opacity:1;
  pointer-events:auto;
  visibility:visible;
}

.drawerHeader{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

.drawerTitle{
  font-size:12px;
  margin-right:10px;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  opacity:.85;
}

.drawerNav{
  display:grid;
  gap:10px;
  margin-top:6px;
}

.drawerLink{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:var(--fg);
  text-decoration:none;
  font-size:14px;
  letter-spacing:.08em;
  transition:background .15s ease, border-color .15s ease, transform .06s ease;
}

.drawerLink:hover{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.22);
}

.drawerLink:active{ transform:scale(.995); }

.drawerLink.active{
  background:rgba(255,70,70,.10);
  border-color:rgba(255,90,90,.55);
  box-shadow:0 0 0 1px rgba(255,70,70,.14) inset, 0 10px 22px rgba(0,0,0,.55);
}

.drawerLink.active span{
  color:var(--accent);
  font-weight:800;
}

.drawerMark{
  opacity:.85;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  letter-spacing:.16em;
}

.banner{
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
}
.banner img{
  width:100%;
  height:auto;
  display:block;
  will-change:transform,filter;
  animation:tremble 140ms steps(2,end) infinite;
  filter:contrast(1.05);
}

.sigilRow{
  display:flex;
  justify-content:center;
  margin:6px 0 12px;
}

.sigilImg{
  width:64px;
  height:64px;
  border-radius:18px;
  object-fit:cover;
  display:block;
  cursor:pointer;
  background:#000;
  padding:6px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow:0 10px 22px rgba(0,0,0,.55);
}

.bannerRow{
  border-radius:18px;
  overflow:hidden;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
}

.bannerImg{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
  will-change:transform,filter;
  animation:tremble 140ms steps(2,end) infinite;
  filter:contrast(1.05);
}

@media (min-width:560px){
  .bannerImg{ height:260px; }
}

@media (max-width:420px){
  .sigilImg{ width:56px; height:56px; border-radius:16px; }
  .bannerImg{ height:200px; }
}

.pageRow{ margin-top:12px; }

.sectionDivider{
  height:1px;
  background:rgba(255,255,255,.10);
  margin:16px 0 14px;
  border-radius:999px;
  opacity:.75;
}

.sectionScroller{
  margin-top:12px;
  display:grid;
  gap:12px;
  max-height:236px;
  overflow:auto;
  padding-right:6px;
  overscroll-behavior:contain;
}

.sectionScroller::-webkit-scrollbar{ width:10px; }
.sectionScroller::-webkit-scrollbar-track{ background:rgba(255,255,255,.06); border-radius:999px; }
.sectionScroller::-webkit-scrollbar-thumb{ background:rgba(255,255,255,.16); border-radius:999px; border:2px solid rgba(0,0,0,.35); }

.pageTagAlt{
  color:rgba(242,242,242,.92);
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  box-shadow:0 0 0 1px rgba(255,255,255,.08) inset;
}

.postDisabled{
  opacity:.58;
  filter:saturate(.8);
  pointer-events:none;
}
@keyframes tremble{
  0%{ transform:translate(0,0) rotate(0deg); }
  20%{ transform:translate(-1px,1px) rotate(-0.12deg); }
  40%{ transform:translate(1px,-1px) rotate(0.10deg); }
  60%{ transform:translate(-1px,0px) rotate(0.06deg); }
  80%{ transform:translate(1px,1px) rotate(-0.08deg); }
  100%{ transform:translate(0,0) rotate(0deg); }
}

.ritualStrip{
  position:relative;
  margin:14px -16px 14px -16px;
  padding:18px 10px;
  background:#fff;
  color:#000;
  border-top:1px solid rgba(0,0,0,.15);
  border-bottom:1px solid rgba(0,0,0,.15);
  overflow:hidden;
  will-change:transform,filter;
  animation:ritualJitter 3.2s steps(2,end) infinite;
}
@keyframes ritualJitter{
  0%,96%,100%{ transform:translate(0,0); }
  97%{ transform:translate(0.6px,-0.4px); }
  98%{ transform:translate(-0.5px,0.3px); }
  99%{ transform:translate(0.3px,0.2px); }
}
.ritualStrip::before{
  content:"";
  position:absolute;
  inset:0;
  background:repeating-linear-gradient(
    0deg,
    rgba(0,0,0,.06) 0px,
    rgba(0,0,0,.06) 1px,
    rgba(0,0,0,0) 3px,
    rgba(0,0,0,0) 6px
  );
  opacity:.12;
  mix-blend-mode:multiply;
  pointer-events:none;
  transform:translateY(0);
  animation:scanMove 1.8s linear infinite;
}
@keyframes scanMove{ 0%{ transform:translateY(0);} 100%{ transform:translateY(10px);} }
.ritualStrip::after{
  content:"";
  position:absolute;
  inset:-2px;
  background:linear-gradient(90deg, rgba(0,0,0,.12), rgba(0,0,0,0), rgba(0,0,0,.10));
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  mix-blend-mode:multiply;
  animation:ritualFlicker 6.5s steps(1,end) infinite;
}
@keyframes ritualFlicker{
  0%,91%,100%{ opacity:0; }
  92%{ opacity:.18; }
  93%{ opacity:0; }
  94%{ opacity:.14; }
  95%{ opacity:0; }
}
.ritualInner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  position:relative;
  z-index:1;
}
.ritualIcon{
  width:36px;
  height:36px;
  border-radius:10px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.25);
  background:#fff;
  box-shadow:0 8px 18px rgba(0,0,0,.22);
}
.ritualIcon img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:contrast(1.1);
}
.ritualText{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  font-size:14px;
  letter-spacing:.18em;
  line-height:1.2;
}

.posts{ margin-top:12px; display:grid; gap:12px; }
.post{
  display:block;
  text-decoration:none;
  color:var(--fg);
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.22);
  border-radius:18px;
  padding:14px;
  transition:background .15s ease, transform .06s ease;
}
.post:hover{ background:rgba(255,255,255,.08); }
.post:active{ transform:scale(.995); }
.postTop{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.postTitle{ margin:0; font-size:15px; letter-spacing:.02em; font-weight:700; color:var(--accent); }

/* Resource cards use green accents to visually separate them from blog entries */
.resourcesSection .postTitle,
.resourcesArchive .postTitle{
  color:var(--accentGreen);
}
.meta{
  color:rgba(242,242,242,.6);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  white-space:nowrap;
  display:flex;
  align-items:center;
  gap:10px;
}
.sigil{ opacity:.9; }
.excerpt{ margin-top:8px; color:var(--muted); font-size:14px; line-height:1.5; }

.articleTitle{ margin:6px 0 6px; font-size:22px; color:var(--accent); font-weight:800; }
.articleMeta{
  color:rgba(242,242,242,.6);
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  margin-bottom:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.content{ color:var(--muted); line-height:1.75; font-size:15px; white-space:pre-wrap; }
.quote{
  margin:14px 0;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.22);
  color:rgba(242,242,242,.88);
  font-style:italic;
  line-height:1.6;
  white-space:pre-wrap;
}

.embedVideo{
  margin:14px 0 12px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.02);
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}
.embedVideo video{
  width:100%;
  height:auto;
  display:block;
  background:#000;
}
.embedVideo iframe{
  width:100%;
  aspect-ratio:16/9;
  height:auto;
  display:block;
  border:0;
  background:#000;
}

.embedVideo .videoShell{
  position:relative;
  width:100%;
  overflow:hidden;
  border-radius:18px;
}
.embedVideo .videoPoster{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:2;
  display:block;
  cursor:pointer;
}
.embedVideo .videoShell.is-playing .videoPoster{
  display:none;
}
.media{
  margin-top:14px;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.22);
}
.media img{ width:100%; height:auto; display:block; filter:contrast(1.05); }

.outLink{
  margin-top:20px;
  display:inline-flex;
  align-items:center;
  gap:14px;
  padding:16px 20px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.28);
  background:rgba(255,255,255,.10);
  color:var(--fg);
  text-decoration:none;
  font-size:15.5px;
  letter-spacing:.14em;
  line-height:1.3;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  opacity:.9;
  box-shadow:0 0 0 1px rgba(255,255,255,.10) inset, 0 10px 22px rgba(0,0,0,.55);
  transition:opacity .15s ease, background .15s ease, border-color .15s ease, transform .08s ease;
}
.outLink:hover{
  opacity:1;
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.45);
  transform:translateY(-1px);
}
.outLink .sigil{ opacity:.85; font-size:16px; }
.ytIcon{ width:22px; height:22px; fill:currentColor; opacity:.85; }
.outLink:hover .ytIcon{ opacity:1; }

@media (prefers-reduced-motion: reduce){
  .banner img{ animation:none !important; }
  .ritualStrip{ animation:none !important; }
  .ritualStrip::before{ animation:none !important; }
  .ritualStrip::after{ animation:none !important; }
}

.ritualTop{
  position:sticky;
  top:0;
  z-index:80;
  margin:0;
  padding:12px 10px;
  border-top:0;
}
.ritualTop .ritualInner{
  width:100%;
  max-width:860px;
  margin:0 auto;
  padding:0 14px;
}
.ritualNoise{
  flex:1;
  height:14px;
  border-radius:999px;
  opacity:.55;
  background-image: radial-gradient(rgba(0,0,0,.55) 1px, transparent 1px);
  background-size: 4px 4px;
}
.ritualBracket{ opacity:.9; }

@media (max-width:420px){
  .ritualText{ font-size:12px; letter-spacing:.14em; }
  .ritualIcon{ width:32px; height:32px; }
  .ritualNoise{ height:12px; }
}

.sectionTitle{
  margin:0 0 10px;
  font-size:16px;
  letter-spacing:.14em;
  text-transform:uppercase;
  opacity:.9;
}

.resourceGrid{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.resourceCard{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.22);
  border-radius:18px;
  padding:14px;
}
.resourceTitle{
  margin:0 0 10px;
  /* Titles in the archive should match the RESOURCES accent */
  color:var(--accentGreen);
  font-weight:800;
  letter-spacing:.02em;
  font-size:15px;
}
.resourceList{
  margin:0;
  padding-left:18px;
  color:rgba(242,242,242,.86);
  line-height:1.55;
  font-size:14px;
}
.resourceList li{ margin:6px 0; }
.resourceList a{ color:rgba(242,242,242,.9); text-decoration:none; border-bottom:1px solid rgba(255,255,255,.18); }
.resourceList a:hover{ border-bottom-color:rgba(60,255,140,.45); color:#fff; }

.resourceFull{
  margin-top:14px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.22);
}

.resourceFull[hidden]{ display:none; }

.resourceToc{
  margin-top:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  padding:12px 14px;
}

.resourceTocTitle{
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  opacity:.9;
  margin-bottom:8px;
}

.resourceTocList{
  margin:0;
  padding-left:18px;
  color:rgba(242,242,242,.86);
  line-height:1.55;
  font-size:14px;
}

.resourceTocList li{ margin:6px 0; }

.resourceTocList a{
  color:rgba(242,242,242,.9);
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.18);
}

.resourceTocList a:hover{ border-bottom-color:rgba(255,255,255,.45); color:#fff; }

.langTabs{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.langTab{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.26);
  color:rgba(242,242,242,.92);
  cursor:pointer;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  transition:background .15s ease, border-color .15s ease, transform .06s ease;
}

.langTab:hover{ background:rgba(255,255,255,.08); }
.langTab:active{ transform:scale(.995); }

.langTab.is-active{
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.32);
  box-shadow:0 0 0 1px rgba(255,255,255,.08) inset;
}

.langPanel[hidden]{ display:none; }

.langBlock{
  margin-top:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  overflow:hidden;
}

.langBlock > summary{
  list-style:none;
  cursor:pointer;
  padding:14px 14px;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  color:rgba(242,242,242,.92);
  background:rgba(0,0,0,.28);
  border-bottom:1px solid rgba(255,255,255,.10);
}

.langBlock[open] > summary{
  background:rgba(255,255,255,.06);
}

.langBlock > summary::-webkit-details-marker{ display:none; }

.resourceBody{ padding:14px 14px 10px; }

.resourceH{
  margin:0 0 10px;
  color:rgba(242,242,242,.96);
  font-weight:800;
  letter-spacing:.04em;
}

.resourceBody h4.resourceH{
  margin-top:14px;
  font-size:13px;
  letter-spacing:.14em;
  text-transform:uppercase;
  opacity:.95;
}

.resourceBody h3.resourceH{
  font-size:16px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.resourceP{
  margin:0 0 10px;
  color:rgba(242,242,242,.82);
  line-height:1.65;
  font-size:14px;
}

.resourceNote{
  margin:12px 0 12px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
  color:rgba(242,242,242,.84);
  line-height:1.65;
  font-size:14px;
}

.resourceAction{
  display:inline-block;
  margin-top:6px;
  padding:6px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.22);
  color:rgba(242,242,242,.92);
  font-size:12px;
}

.muted{ opacity:.78; }

.resourceBullets{
  margin:0 0 10px;
  padding-left:18px;
  color:rgba(242,242,242,.82);
  line-height:1.6;
  font-size:14px;
}

.resourceBullets li{ margin:8px 0; }

.resourceBullets.sub{
  margin-top:8px;
  margin-bottom:0;
  opacity:.98;
}

.resourceTableWrap{
  margin:10px 0 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  overflow:auto;
  background:rgba(0,0,0,.18);
}

.resourceTable{
  width:100%;
  border-collapse:collapse;
  min-width:520px;
}

.resourceTable th,
.resourceTable td{
  text-align:left;
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:13px;
  color:rgba(242,242,242,.86);
}

.resourceTable th{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:rgba(242,242,242,.92);
  background:rgba(255,255,255,.04);
}

.resourceTable tr:last-child td{ border-bottom:none; }

.resourceLinks{
  margin:0;
  padding-left:18px;
  color:rgba(242,242,242,.86);
  line-height:1.6;
  font-size:14px;
}

.resourceLinks li{ margin:7px 0; }

.resourceLinks a{
  color:rgba(242,242,242,.92);
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.18);
}

.resourceLinks a:hover{ border-bottom-color:rgba(255,255,255,.45); color:#fff; }

.searchRow{
  display:flex;
  gap:10px;
  align-items:center;
  margin:4px 0 12px;
}
.searchInput{
  flex:1;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.26);
  color:var(--fg);
  outline:none;
  font-size:14px;
}
.searchInput:focus{
  border-color:rgba(255,90,90,.35);
  box-shadow:0 0 0 3px rgba(255,90,90,.08);
}
.searchMeta{
  opacity:.7;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.resultList{
  display:grid;
  gap:10px;
  margin-top:10px;
}
.resultItem{
  display:block;
  text-decoration:none;
  color:var(--fg);
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.20);
  border-radius:16px;
  padding:12px 14px;
}
.resultTitle{
  margin:0 0 6px;
  font-weight:800;
  color:var(--accent);
  font-size:14px;
}
.resultSnippet{
  margin:0;
  color:rgba(242,242,242,.82);
  font-size:13px;
  line-height:1.5;
}

.outBadge{ width:22px; height:22px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.28); border-radius:8px; font-weight:900; letter-spacing:.02em; opacity:.85; }

@media (max-width:360px){
  .topbarCenter{ gap:8px; }
  .pageTag{ padding:9px 10px; }
}

.tagRow{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
}

.tagRow .pageTag{
  flex:1;
  margin:0;
}

.sigilNav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
}

.sigilBtns{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  flex-wrap:nowrap;
}

.sigilRowPost{
  margin-top:0;
  margin-bottom:12px;
}

.sigilRowPost{ position:relative; }
.sigilRowPost #backBtn{
  position:absolute;
  left:0;
  top:0;
  z-index:3;
}
.postBottomNav{
  display:flex;
  justify-content:center;
  margin:18px 0 6px;
}


.tagRow .iconBtn{
  width:50px;
  height:50px;
  border-radius:16px;
  font-size:22px;
}

.tagRow .pageTag{
  font-size:17px;
  padding:12px 16px;
  border-radius:16px;
}

@media (max-width:420px){
  .tagRow .iconBtn{ width:46px; height:46px; border-radius:15px; font-size:20px; }
  .tagRow .pageTag{ font-size:15px; padding:11px 14px; border-radius:15px; }
}



.ytFallback{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);
  color:rgba(242,242,242,.88);
  text-decoration:none;
  font-size:13px;
  letter-spacing:.12em;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
  opacity:.9;
}
.ytFallback:hover{
  opacity:1;
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.28);
}


/* Resource credits */
.resourceCredit{
  margin: 10px 0 18px;
  opacity: .85;
  font-size: 14px;
}
.resourceCredit a{ text-decoration: underline; }


/* Drawer exit button (no EXIT label) */
.drawerExitRow{
  display:flex;
  justify-content:center;
  margin-top:4px;
}

.drawerExitBtn{
  width:50px;
  height:50px;
  border-radius:17px;
  font-size:22px;
}


/* Blog combined view filter */
.viewSection{ display:block; }
body.view-blog-only #resourcesSection{ display:none !important; }
body.view-resources-only #blogSection{ display:none !important; }
/* Keep spacing tidy when one section is hidden */
body.view-blog-only .sectionDivider{ display:none; }
body.view-resources-only .sectionDivider{ display:none; }

/* When showing ONLY blog, don't cap the list height: show all entries. */
body.view-blog-only .sectionScroller.posts{
  max-height:none;
  overflow:visible;
  padding-right:0;
}

/* When showing ONLY resources, don't cap the list height either. */
body.view-resources-only .sectionScroller.resourcesScroller{
  max-height:none;
  overflow:visible;
  padding-right:0;
}


/* Utility */
.hidden{ display:none !important; }

/* Scroll navigation (Top / Bottom) */
.scrollNav{
  position:fixed;
  right:14px;
  bottom:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:65;
}

.scrollBtn{
  width:50px;
  height:50px;
  border-radius:17px;
}

@media (max-width:420px){
  .scrollNav{ right:12px; bottom:12px; }
  .scrollBtn{ width:46px; height:46px; border-radius:15px; }
}

/* Footer */
.siteCopyright{
  text-align:center;
  margin:18px 0 6px;
  opacity:.78;
  letter-spacing:.06em;
}


/* Splash overlay (banner click) */
.splashOverlay{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.94);
  z-index:9999;
}
.splashOverlay.open{ display:flex; }
.splashOverlay .splashGif{
  width:100%;
  height:100%;
  object-fit:contain;
}
.splashOverlay .splashSkip{
  position:absolute;
  top:16px;
  right:16px;
}
body.splashOpen{ overflow:hidden; }
