/*
Theme Name: nana_sumire
Description: description
Version: 1.0
*/


:root {
  --bg-page: #f8f9fa;
  --bg-header: #ffffff;
  --bg-footer: #111111;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --accent: #19e590;
  --accent-deep: #15c47a;
  --border-color: #d1d5db;
  --border-light: #e5e7eb;
  --card-bg: #ffffff;
  --content-width: 740px;
  --section-gap: 3.5rem;
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Lora', serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-logo: 'Poppins', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  text-align: left;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  margin-top: 0;
  margin-bottom: 1rem;
  scroll-margin-top: 2rem;
}
h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  scroll-margin-top: 2rem;
}

p {
  text-align: left;
  margin-bottom: 1.25rem;
}
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}
a:hover { color: var(--accent); }
a:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

ul, ol {
  text-align: left;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
li { margin-bottom: 0.5rem; }

strong { font-weight: 700; }
em { font-style: italic; }

blockquote {
  text-align: left;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

figure {
  margin: 1.5em auto;
  text-align: center;
}
figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}
thead {
  background: var(--text-primary);
  color: #fff;
}
th, td {
  text-align: left;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border-light);
}
tbody tr:nth-child(even) { background: rgba(25, 229, 144, 0.03); }

/* --- Layout --- */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-light);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}
.custom-logo {
  display: block;
  height: 36px;
  width: auto;
}
.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-badge {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.trust-marker {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
}

main { width: 100%; }

[data-content] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--section-gap);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* --- Hero --- */
[data-content="hero"] {
  max-width: 100%;
  margin-bottom: var(--section-gap);
  padding: 4rem 1.25rem 3rem;
  background: var(--bg-page);
  text-align: center;
  position: relative;
  overflow: hidden;
}
[data-content="hero"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 40px,
      rgba(25, 229, 144, 0.03) 40px,
      rgba(25, 229, 144, 0.03) 41px
    ),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 40px,
      rgba(25, 229, 144, 0.03) 40px,
      rgba(25, 229, 144, 0.03) 41px
    );
  pointer-events: none;
  z-index: 0;
}
[data-content="hero"] > * {
  position: relative;
  z-index: 1;
}
.hero-rubric {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-deep);
  margin-bottom: 1rem;
  display: block;
}
[data-content="hero"] h1 {
  text-align: center;
  max-width: var(--content-width);
  margin: 0 auto 1rem;
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  max-width: var(--content-width);
  margin: 0 auto 1.5rem;
  text-align: center;
}
.hero-byline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  text-align: center;
}
[data-content="hero"] figure {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  margin-top: 2rem;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
[data-content="hero"] figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.hero-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.article-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
}

/* --- TOC (Horizontal) --- */
[data-content="toc"] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--section-gap);
  padding: 1.25rem;
}
.toc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  overflow: auto;
}
.toc-label {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-right: 0.5rem;
  white-space: nowrap;
}
.toc-strip li {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: 100px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
  list-style: none!important;
}

.toc-strip a {
    color: var(--text-primary);
}    

.toc-strip a:hover {
  text-decoration: none!important;
  border-color: var(--accent);
  color: var(--accent-deep);
  background: rgba(25, 229, 144, 0.04);
}
.toc-strip a:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- TL;DR --- */
.tldr {
  background: var(--card-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}
.tldr h2 {
  font-size: clamp(1.0625rem, 2vw, 1.1875rem);
  color: var(--accent-deep);
  margin-bottom: 0.75rem;
  text-align: left;
}
.tldr ul {
  text-align: left;
  padding-left: 1.25rem;
  margin-bottom: 0;
}
.tldr li {
  font-size: 0.9375rem;
  margin-bottom: 0.625rem;
  line-height: 1.6;
}
.tldr li:last-child { margin-bottom: 0; }

/* --- Components --- */

/* Info Box */
.info-box {
  background: rgba(25, 229, 144, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}
.info-box p {
  text-align: left;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.info-box p:last-child { margin-bottom: 0; }

/* Callout */
.callout {
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
}
.callout p {
  text-align: left;
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong {
  color: var(--accent-deep);
}

/* Key Takeaway */
.key-takeaway {
  border-top: 2px solid var(--accent);
  padding-top: 1.25rem;
  margin: 2rem 0;
}
.key-takeaway p {
  text-align: left;
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Fun Fact */
.fun-fact {
  position: relative;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}
.fun-fact::before {
  content: '\2014';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.fun-fact p {
  text-align: left;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Glossary Term */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 1rem 0;
}
.glossary-term p {
  text-align: left;
  margin-bottom: 0;
}
.glossary-term strong {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-style: dotted;
  white-space: nowrap;
}

/* Dos and Don'ts */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.dos-donts > div:first-child {
  background: rgba(25, 229, 144, 0.06);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.dos-donts > div:last-child {
  background: rgba(220, 38, 38, 0.04);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-top: 3px solid #dc2626;
  box-shadow: var(--shadow-sm);
}
.dos-donts p {
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.625rem;
  color: var(--text-primary);
}
.dos-donts > div:first-child p strong { color: var(--accent-deep); }
.dos-donts > div:last-child p strong { color: #dc2626; }
.dos-donts ul {
  text-align: left;
  padding-left: 1.25rem;
  margin-bottom: 0;
}
.dos-donts li {
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Pre-game Checklist */
.pre-game-checklist {
  margin: 1.5rem 0;
}
.pre-game-checklist > p {
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}
.pre-game-checklist ul {
  text-align: left;
  list-style: none;
  padding-left: 1.75rem;
  border-left: 2px solid var(--border-color);
  margin-bottom: 0;
}
.pre-game-checklist li {
  position: relative;
  padding-left: 0.25rem;
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.6;
}
.pre-game-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -1.75rem;
  color: var(--accent);
  background: var(--bg-page);
  padding: 0 2px;
  font-size: 1rem;
}

/* At a Glance */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: 1.5rem 0;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.at-a-glance > div {
  padding: 1.25rem;
  border-right: 1px solid var(--border-light);
  text-align: center;
}
.at-a-glance > div:last-child { border-right: none; }
.at-a-glance p {
  text-align: center;
  margin-bottom: 0.25rem;
}
.at-a-glance p:first-child {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent-deep);
}
.at-a-glance p:last-child {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Worked Example */
.worked-example {
  background: #f1f5f9;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
}
.worked-example p {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.worked-example p:first-child {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}
.worked-example p:last-child {
  margin-bottom: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--accent-deep);
  font-weight: 700;
}

/* Calc Example */
.calc-example {
  background: #f1f5f9;
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--text-primary);
}
.calc-example p {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.calc-example p:first-child {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.calc-example p:last-child { margin-bottom: 0; }

/* Comparison Table */
.comparison {
  margin: 1.5rem 0;
  overflow-x: auto;
}
.comparison table {
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Section Bridge */
.section-bridge {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}
.section-bridge::before,
.section-bridge::after {
  content: '\00B7\00A0\00B7\00A0\00B7';
  color: var(--border-color);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
}
.section-bridge p {
  text-align: center;
  display: inline;
  font-size: 0.9375rem;
  color: var(--accent-deep);
}
.section-bridge em {
  font-style: italic;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.card-grid > div {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

/* Author Bio */
.author-bio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 2rem;
}

/* --- FAQ --- */
[data-content="faq"] details {
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0;
}
[data-content="faq"] details:last-of-type {
  border-bottom: none;
}
[data-content="faq"] summary {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 700;
  padding: 1rem 2rem 1rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--text-primary);
  transition: color 0.2s ease;
}
[data-content="faq"] summary::-webkit-details-marker { display: none; }
[data-content="faq"] summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}
[data-content="faq"] details[open] summary::after {
  content: '\2212';
  transform: translateY(-50%) rotate(0deg);
}
[data-content="faq"] summary:hover { color: var(--accent-deep); }
[data-content="faq"] summary:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

[data-content="faq"] details > div {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}
[data-content="faq"] details[open] > div {
  max-height: 500px;
  opacity: 1;
}
[data-content="faq"] details > div p {
  text-align: left;
  padding-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-primary);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-footer);
  color: #a0a0a0;
  font-size: 0.8125rem;
  line-height: 1.6;
  padding: 3rem 1.5rem 1.5rem;
}
.footer-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #e0e0e0;
  margin: 0 0 0.75rem;
}
.footer-col p {
  text-align: left;
  font-size: 0.75rem;
  color: #a0a0a0;
  margin-bottom: 0.5rem;
}
.footer-col a {
  color: #c0c0c0;
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s ease;
  display: block;
  margin-bottom: 0.375rem;
}
.footer-col a:hover { color: var(--accent); }
.footer-col a:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.footer-bottom {
  max-width: 960px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid #2a2a2a;
  text-align: center;
  font-size: 0.6875rem;
  color: #707070;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  [data-content] {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  [data-content="hero"] {
    padding: 3rem 1rem 2rem;
  }
  .site-header {
    padding: 0.625rem 1rem;
  }
  .dos-donts {
    grid-template-columns: 1fr;
  }
  .at-a-glance {
    grid-template-columns: 1fr;
  }
  .at-a-glance > div {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  .at-a-glance > div:last-child { border-bottom: none; }
  .glossary-term {
    flex-direction: column;
    gap: 0.25rem;
  }
  .comparison { overflow-x: auto; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .toc-strip {
    gap: 0.375rem;
  }
  .toc-strip a {
    font-size: 0.75rem;
    padding: 0.3rem 0.625rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .header-meta { gap: 0.5rem; }
  .trust-marker { display: none; }
}

@media (max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  [data-content="hero"] h1 {
    font-size: 1.625rem;
  }
  .toc-strip a {
    font-size: 0.55rem;
  }
}


/* Images Styles - GREYedge */

figure {
  margin: 1.75em 0;
  text-align: center;
}

figure img.article-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

figure img.hero-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

figcaption {
  text-align: center;
  font-family: 'Lora', serif;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 0.625rem;
  line-height: 1.5;
  font-style: italic;
}

@media (max-width: 768px) {
  figure {
    margin: 1.25em 0;
  }

  figcaption {
    font-size: 0.75rem;
    padding: 0 0.5rem;
  }
}
