/* ===========================
   EduWorks.jp — Global Stylesheet
   =========================== */

/* --- CSS Variables --- */
:root {
  --bg: #FFFFFF;
  --text: #18181B;
  --text-mute: #52525B;
  --accent: #1D4ED8;
  --accent-hover: #1E40AF;
  --accent-light: #EFF6FF;
  --border: #E4E4E7;
  --surface: #F4F4F5;
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', sans-serif;
  --font-heading: var(--font-main);
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  --max-w: 1100px;
  --content-w: 720px;
  --header-h: 64px;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

select, textarea, input {
  font: inherit;
}

/* --- Utility --- */
.wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.wrapper-narrow {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.5s ease both;
}

.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }
.fade-up-d4 { animation-delay: 0.4s; }

/* ===========================
   Header
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--text);
}

.logo-text .jp {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mute);
}

/* Desktop Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-desktop a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mute);
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
}

.nav-desktop a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-desktop a.active {
  color: var(--accent);
  font-weight: 500;
}

/* Hamburger Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  position: relative;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile a {
  display: block;
  font-size: 15px;
  color: var(--text-mute);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.18s;
}

.nav-mobile a:last-child {
  border-bottom: none;
}

.nav-mobile a:hover {
  color: var(--text);
}

.nav-mobile a.active {
  color: var(--accent);
  font-weight: 500;
}

@media (max-width: 640px) {
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background: #18181B;
  color: #A1A1AA;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  padding-bottom: 32px;
}

/* Footer Logo */
.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand .logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-brand .logo-mark svg {
  width: 15px;
  height: 15px;
}

.footer-brand .logo-text {
  font-size: 14px;
  color: #fff;
}

.footer-brand .logo-text .jp {
  font-size: 12px;
  color: var(--text-mute);
}

.footer-tagline {
  font-size: 13px;
  color: #71717A;
  max-width: 280px;
  line-height: 1.7;
}

/* Footer Nav */
.footer-nav-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #52525B;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-nav a {
  display: block;
  font-size: 13px;
  color: #A1A1AA;
  padding: 4px 0;
  transition: color 0.18s;
}

.footer-nav a:hover {
  color: #fff;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #3F3F46;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #52525B;
}

.footer-note {
  font-size: 12px;
  color: #3F3F46;
}

@media (max-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ===========================
   Hero Section (Top Page)
   =========================== */
.hero {
  padding: 80px 0 72px;
  text-align: center;
  background: var(--surface);
}

.hero-text {
  max-width: 640px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 20px;
}

.hero h1 .em {
  color: var(--accent);
}

.hero-lead {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-mute);
  line-height: 1.9;
  margin-bottom: 0;
}

/* Hero Category Cards */
.hero-categories {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.hero-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 32px;
  min-width: 160px;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.hero-cat-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.hero-cat-count {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}

.hero-cat-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  margin-top: 6px;
}

.hero-cat-note {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 4px;
}

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 32px;
  border-radius: 8px;
  transition: background 0.18s, transform 0.18s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.app-card-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 8px;
  transition: background 0.18s, transform 0.18s;
}

.btn-outline:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-outline svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --- App Section on Top Page --- */
.section-app {
  padding: 64px 0 80px;
  background: #fff;
}

.section-app-header {
  margin-bottom: 36px;
}

.section-app-header h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-app-header p {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mute);
}

.section-app-footer {
  margin-top: 32px;
  text-align: center;
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 56px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero-categories {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .hero-cat-card {
    width: 100%;
    max-width: 280px;
  }
}

/* ===========================
   About Section (Top Page)
   =========================== */
.section-about {
  background: var(--text);
  color: #fff;
  padding: 80px 0 96px;
}

.section-about-heading {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.5;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-card {
  border: 1px solid #3F3F46;
  border-radius: 12px;
  padding: 28px 24px;
}

.about-card-icon {
  width: 40px;
  height: 40px;
  background: #27272A;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.about-card-icon svg {
  width: 20px;
  height: 20px;
  fill: #60A5FA;
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.about-card p {
  font-size: 13px;
  font-weight: 400;
  color: #A1A1AA;
  line-height: 1.75;
}

@media (max-width: 640px) {
  .section-about {
    padding: 56px 0 64px;
  }
  .section-about-heading {
    font-size: 22px;
  }
  .about-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===========================
   Page Header (Text Pages)
   =========================== */
.page-header {
  padding: 56px 0 0;
}

.page-header-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px 32px;
  border-bottom: 1px solid var(--border);
}

.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.page-header .lead {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-mute);
  line-height: 1.7;
}

/* ===========================
   Text Page Content
   =========================== */
.text-content {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.text-content .last-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 40px;
}

.text-content h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-top: 48px;
  margin-bottom: 16px;
}

.text-content h2:first-child,
.text-content .last-updated + h2 {
  margin-top: 0;
}

.text-content p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  margin-bottom: 16px;
}

.text-content ul {
  margin-bottom: 16px;
  padding-left: 1.2em;
}

.text-content ul li {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  list-style: disc;
  margin-bottom: 4px;
}

.text-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.note-box {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.note-box p {
  margin-bottom: 0;
  font-size: 14px;
}

/* ===========================
   App List Page
   =========================== */
.app-page-header {
  padding: 56px 0 0;
}

.app-page-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 32px;
  border-bottom: 1px solid var(--border);
}

.app-list {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 96px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.app-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.25s, transform 0.25s, background 0.25s;
}

.app-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  background: var(--accent-light);
}

.app-card-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.app-card-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--accent);
}

.app-card-subject {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.app-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.app-card-desc {
  font-size: 14px;
  font-weight: 400;
  color: #3F3F46;
  line-height: 1.75;
  margin-bottom: 16px;
}

.app-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.app-card-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text-mute);
}

@media (max-width: 640px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Profile Card (About Page)
   =========================== */
.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-avatar svg {
  width: 28px;
  height: 28px;
  fill: var(--accent);
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.profile-role {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mute);
}

/* ===========================
   Contact Form
   =========================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
}

.form-group label .required {
  color: #DC2626;
  margin-left: 4px;
  font-size: 12px;
}

.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2371717A'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
}

.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

.form-note {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mute);
  line-height: 1.75;
}

.form-submit {
  align-self: flex-start;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ===========================
   Download List Page
   =========================== */
.dl-page-header {
  padding: 56px 0 0;
}

.dl-page-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 32px;
  border-bottom: 1px solid var(--border);
}

.dl-list {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 96px;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.dl-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
}

.dl-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.dl-type-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 6px;
}

.dl-card-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.dl-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-right: 100px;
}

.dl-card-desc {
  font-size: 14px;
  font-weight: 400;
  color: #3F3F46;
  line-height: 1.75;
  margin-bottom: 14px;
}

.dl-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.dl-card-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  color: var(--text-mute);
}

.dl-env-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  line-height: 1.6;
  margin-bottom: 16px;
}

.dl-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-outline {
  background: #fff !important;
  color: var(--text) !important;
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--surface) !important;
  transform: translateY(-1px);
}

/* --- DL Section on Top Page --- */
.section-dl {
  padding: 64px 0 80px;
  background: var(--surface);
}

.section-dl-header {
  margin-bottom: 36px;
}

.section-dl-header h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-dl-header p {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-mute);
}

.section-dl-footer {
  margin-top: 32px;
  text-align: center;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 28px;
  border-radius: 8px;
  transition: background 0.18s, transform 0.18s;
}

.btn-secondary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}


@media (max-width: 640px) {
  .dl-grid {
    grid-template-columns: 1fr;
  }
  .dl-card h3 {
    padding-right: 0;
  }
  .dl-type-badge {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
  }
}

/* ===========================
   DL Guide Page (Detail Page)
   =========================== */
.dl-guide-header {
  padding: 56px 0 0;
}

.dl-guide-header-inner {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px 32px;
  border-bottom: 1px solid var(--border);
}

.dl-guide-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.dl-guide-meta .dl-type-badge {
  position: static;
}

.dl-guide-header h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.dl-guide-header .lead {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-mute);
  line-height: 1.7;
}

/* Download Hero */
.dl-guide-download {
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  text-align: center;
  margin-bottom: 16px;
}

.dl-guide-download p {
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-mute);
}

.dl-guide-download p:last-child {
  margin-bottom: 0;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}

/* Guide Content */
.dl-guide {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.dl-guide .notice {
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 32px;
}

/* TOC */
.dl-guide-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 48px;
}

.dl-guide-toc h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 0;
  border: none;
}

.dl-guide-toc ol {
  padding-left: 1.4em;
}

.dl-guide-toc li {
  list-style: decimal;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.7;
}

.dl-guide-toc a {
  color: var(--accent);
  text-decoration: none;
}

.dl-guide-toc a:hover {
  text-decoration: underline;
}

/* Sections */
.dl-guide section {
  margin-top: 56px;
}

.dl-guide h2 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.dl-guide h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 10px;
}

.dl-guide p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  margin-bottom: 16px;
}

.dl-guide ul,
.dl-guide ol.steps {
  margin-bottom: 16px;
  padding-left: 1.4em;
}

.dl-guide ul li {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  list-style: disc;
  margin-bottom: 4px;
}

.dl-guide ol.steps li {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
  list-style: decimal;
  margin-bottom: 8px;
}

/* Tables */
.dl-guide table {
  border-collapse: collapse;
  width: 100%;
  margin: 12px 0 20px;
  font-size: 14px;
}

.dl-guide th,
.dl-guide td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}

.dl-guide th {
  background: var(--surface);
  font-weight: 700;
  font-size: 13px;
}

.dl-guide tr:nth-child(even) td {
  background: #FAFAFA;
}

/* Figures */
.dl-guide figure {
  margin: 20px 0 24px;
  text-align: center;
}

.dl-guide figure img {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: zoom-in;
}

.dl-guide figure img.expanded {
  max-width: calc(100vw - 40px);
  width: auto;
  cursor: zoom-out;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.dl-guide figcaption {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 8px;
}

/* Info Boxes */
.dl-guide .tip,
.dl-guide .warning,
.dl-guide .note-box {
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.75;
}

.dl-guide .tip {
  background: #F0FDF4;
  border-left: 3px solid #15803D;
}

.dl-guide .warning {
  background: #FFF7ED;
  border-left: 3px solid #C2410C;
}

.dl-guide .note-box {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
}

.dl-guide .tip > strong,
.dl-guide .warning > strong,
.dl-guide .note-box > strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.dl-guide .warning-list {
  margin-top: 8px;
  padding-left: 1.2em;
}

.dl-guide .warning-list li {
  list-style: disc;
}

/* Download Box (inline) */
.dl-guide .download-box {
  background: var(--accent-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 20px;
  margin: 16px 0;
  font-size: 15px;
  text-align: center;
}

.dl-guide .download-box a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Back to top */
.dl-guide .back-to-top {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

.dl-guide .back-to-top:hover {
  text-decoration: underline;
}

/* Code */
.dl-guide code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Success message */
.form-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  padding: 20px 24px;
  color: #166534;
  font-size: 15px;
  line-height: 1.7;
}
