:root{
  --bg: #ffffff;
  --alt: #fafafa;
  --text: #221E1F;
  --muted: #5F5D5E;
  --border: #E8E8E8;
  --orange: #F9A01A;
  --orange-deep: #F37521;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.06);
}

*{ box-sizing: border-box; }
html, body { margin:0; padding:0; }
body{
  font-family: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img{ max-width:100%; height:auto; display:block; }

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.sdf-container{
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.sdf-main{ min-height: 60vh; }

/* Header */
.sdf-header{
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.sdf-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 14px 0;
}

.sdf-brand{
  margin-right: auto;
  display: flex;
  align-items: center;
}

.sdf-brand .custom-logo-link{
  display: inline-flex;
  align-items: center;
}

.sdf-brand img{ max-height: 90px; width:auto; }
.sdf-brand__text{ font-weight: 700; letter-spacing: -0.02em; }

.sdf-nav__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap: 18px;
  align-items:center;
}
.sdf-nav__list a{
  text-decoration:none;
  color: var(--text);
  font-weight: 600;
  padding: 10px 10px;
  border-radius: 12px;
}
.sdf-nav__list a:hover{
  background: #f3f3f3;
}
.sdf-nav-toggle{
  display:none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  cursor:pointer;
}
.sdf-nav-toggle__bar{
  display:block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 2px;
}

/* Hero */
.sdf-hero{
  padding: 90px 0 50px;
}
.sdf-hero--divider{
  border-bottom: 1px solid var(--border);
}
.sdf-hero__inner{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 32px;
  align-items:center;
}
.sdf-hero__title{
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.sdf-hero__subtitle{
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
}
.sdf-hero__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sdf-hero__visual{
  background: linear-gradient(180deg, #fff, #fafafa);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.sdf-hero__visual svg{ width: 100%; height: auto; }

.sdf-hero__media{
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.sdf-hero__media img{
  max-height: 400px;
  max-width: 100%;
  height: auto;
  width: auto;
}

/* Sections */
.sdf-section{
  padding: 54px 0;
}
.sdf-section--alt{
  background: var(--alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sdf-section__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.sdf-h1{ font-size: clamp(30px, 4vw, 44px); margin: 0 0 10px; letter-spacing:-0.02em; }
.sdf-h2{ font-size: 26px; margin: 0; letter-spacing:-0.02em; }
.sdf-h3{ font-size: 20px; margin: 0 0 10px; }

.sdf-muted{ color: var(--muted); }
.sdf-link{
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid rgba(243,117,33,.0);
}
.sdf-link:hover{
  border-bottom-color: rgba(243,117,33,.55);
}
.sdf-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid transparent;
  transition: transform .08s ease;
}
.sdf-btn:active{ transform: translateY(1px); }
.sdf-btn--primary{
  background: linear-gradient(90deg, var(--orange-deep), var(--orange));
  color: #111;
  box-shadow: 0 10px 20px rgba(243,117,33,.18);
}
.sdf-btn--secondary{
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.sdf-pagehead{ margin-bottom: 18px; }

/* Chips */
.sdf-chips{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 14px;
}
.sdf-chip{
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
}

/* Latest episode layout */
.sdf-latest{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.sdf-latest__meta{ padding: 6px 2px; }

/* Responsive embed wrapper */
.sdf-embed{
  width: 100%;
}
.sdf-embed iframe,
.sdf-embed embed,
.sdf-embed object{
  width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  border: 0;
  border-radius: 14px;
}

/* Cards grid */
.sdf-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.sdf-grid--3{ grid-template-columns: repeat(3, 1fr); }

.sdf-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.sdf-card__thumb img{ width: 100%; }
.sdf-card__thumb--placeholder{
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(180deg, #ffffff, #f3f3f3);
}
.sdf-card__body{
  padding: 14px 14px 16px;
}
.sdf-card__title{
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.sdf-card__meta{
  margin: 0 0 10px;
  font-size: 14px;
}
.sdf-card__text{
  margin: 0;
  color: var(--muted);
}

/* Episode single */
.sdf-articlehead{ margin-bottom: 18px; }
.sdf-episode{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.sdf-backlink{ margin-top: 18px; }

/* Prose */
.sdf-prose{
  font-size: 18px;
}
.sdf-prose h2, .sdf-prose h3{ margin-top: 28px; }
.sdf-prose a{ color: inherit; border-bottom: 2px solid rgba(243,117,33,.35); text-decoration:none; }
.sdf-prose a:hover{ border-bottom-color: rgba(243,117,33,.75); }
.sdf-prose code{
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 8px;
}
.sdf-prose pre{
  background: #111;
  color: #fff;
  padding: 16px;
  border-radius: 16px;
  overflow:auto;
}

/* Pagination */
.sdf-pagination{ grid-column: 1 / -1; margin-top: 10px; }
.page-numbers{
  display:inline-block;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-right: 6px;
  text-decoration:none;
  color: var(--text);
}
.page-numbers.current{
  background: #f3f3f3;
  font-weight: 700;
}

/* Footer */
.sdf-footer{
  border-top: 1px solid var(--border);
  padding: 46px 0;
  background: #fff;
}
.sdf-footer__inner{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 24px;
}
.sdf-footer__title{ display:block; margin-bottom: 10px; }
.sdf-footer__list{
  list-style:none; margin:0; padding:0;
  display:grid; gap: 8px;
}
.sdf-footer__small{ margin-top: 16px; font-size: 14px; }

/* Mobile */

@media (max-width: 920px){
  .sdf-hero__inner{ grid-template-columns: 1fr; }
  .sdf-latest{ grid-template-columns: 1fr; }
  .sdf-grid{ grid-template-columns: repeat(2, 1fr); }
  .sdf-footer__inner{ grid-template-columns: 1fr; }
  
  .sdf-hero__media{
    display: none;
  }

  .sdf-hero__inner{
    grid-template-columns: 1fr;
  }
  
  sdf-hero{
    padding: 60px 0 40px;
  }
  
  .sdf-hero__subtitle{
    max-width: 600px;
  }
}

@media (max-width: 740px){
  .sdf-grid{ grid-template-columns: 1fr; }
  .sdf-nav-toggle{ display:inline-block; }
  .sdf-nav{ display:none; }
  .sdf-nav.is-open{ display:block; }
  .sdf-nav__list{
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    box-shadow: var(--shadow);
  }
}