﻿/*
Theme Name: ChatGPT 6 Astra Chronicle
Theme URI: https://chatgpt6astra.store/
Author: Astra Chronicle Team
Author URI: https://chatgpt6astra.store/
Description: High-performance, modern editorial & tech documentation theme for ChatGPT 6 Astra and AI models.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gpt6astra
Tags: dark-mode, light-mode, tech, news, blog, documentation, responsive, custom-colors
*/
/* ==========================================================================
   Astra Chronicle (chatgpt6astra.store)
   Direct Port: Modyolo / 5play Modern Dark Theme
   Source: C:\xampp\htdocs\5play\wp-content\themes\modyolo
   Font: Geologica, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif
   Code Font: JetBrains Mono, monospace
   Palette: Modyolo Signature Emerald Green (hsl(157, 76%, 38%)), Dark Canvas (hsl(0, 0%, 9%)), Surface Tone (hsl(157, 2%, 12%))
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ==================== CORE CSS VARIABLES (DIRECT FROM MODYOLO) ==================== */
:root {
  color-scheme: dark;
  --fmono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --f: Geologica, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; 
  --lh: 1.5;
  --fw: 400;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;
  --fw-black: 800;
  
  --fs: 16px;
  --fs-1: 15px;
  --fs-2: 14px;
  --fs-3: 12px;
  --fs-4: 11px;

  --wrp-p: 20px;

  --fs-title-sect: 20px;
  --fs-title-cat: 28px;
  --fs-title-file: 22px;
  --fs-title-view: 38px;

  --fs-desc-view: 17px;
  --lh-desc-view: 30px;

  --btn-fs: 15px;
  --btn-fs-sm: 14px;

  --sect-gap: 32px;
  --group-gap: 32px;

  --header-h: 64px;
  --headersec-h: 52px;

  /* Modyolo Colors */
  --hs-p: 157, 76%;
  --hs-s: 157, 71%;
  --hs-y: 45, 99%;
  --hs-b: 206, 86%;
  --hs-r: 3, 88%;
  --hs-t: 157, 2%;

  --c-text-white: 0, 0%, 100%;
  
  --c-text: var(--hs-t), 92%;
  --c-body: 0, 0%, 9%;
  --c-body-tone: var(--hs-t), 14%;

  --c-link: var(--hs-p), 42%;
  --c-link-h: var(--hs-p), 48%;

  --c-primary: #00b06f;
  --c-primary-hsl: var(--hs-p), 38%;
  --c-second: hsl(var(--hs-p), 42%);
  --c-yellow: #fbbf24;
  --c-blue: #38bdf8;
  --c-red: #ef4444;

  --c-border: hsla(0, 0%, 100%, 0.08);

  --dropdown-w: 260px;
  --dropdown-rd: 28px;
  --dropdown-bg: var(--hs-t), 14%;
  --dropdown-sw: 0 16px 40px -4px hsla(0, 0%, 0%, 0.4), inset 0 0 0 1px hsla(0, 0%, 100%, 0.05);

  --modal-pc-w: 700px;
  --modal-w: 344px;
  --modal-rd: 28px;
  --modal-bg: var(--hs-t), 14%;
  --modal-sw: 0 16px 40px -4px hsla(0, 0%, 0%, 0.4), inset 0 0 0 1px hsla(0, 0%, 100%, 0.05);
  --modal-overlay: hsla(0, 0%, 0%, 0.6);

  --btn-fill-text: #ffffff;
  --btn-fill-bg: #00b06f;
  --btn-fill-bg-h: #009960;

  --btn-fill-blue-bg: #38bdf8;
  --btn-fill-blue-bg-h: #0ea5e9;

  --btn-tone-text: #00b06f;
  --btn-tone-bg: hsla(var(--hs-p), 38%, 0.12);

  --btn-edit-bg: 0, 0%, 12%;
  
  --block-rd: 24px;
  --block-sw: 0 0 1px 0 hsla(0, 0%, 0%, .1), 0 4px 20px -4px hsla(0, 0%, 0%, .4);
  --block-bg: var(--hs-t), 12%;

  --comcloud-bg: hsla(var(--hs-p), 0.08);
  --comcloud-bg-pos: hsla(var(--hs-p), 0.14);
  --comcloud-bg-neg: hsla(var(--hs-r), 0.14);

  /* Legacy mapped aliases for existing HTML components */
  --bg-dark: hsl(var(--c-body));
  --bg-page: hsl(var(--c-body));
  --bg-card: hsl(var(--block-bg));
  --bg-card-hover: hsl(var(--hs-t), 16%);
  --bg-surface: hsl(var(--c-body-tone));
  --bg-elevated: hsl(var(--hs-t), 16%);
  --emerald: #00b06f;
  --emerald-bg: hsla(var(--hs-p), 38%, 0.12);
  --primary: #00b06f;
  --primary-light: hsl(var(--hs-p), 48%);
  --cyan: #38bdf8;
  --border: var(--c-border);
  --border-subtle: hsla(0, 0%, 100%, 0.05);
  --text-white: #ffffff;
  --text-heading: #ffffff;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-dim: #4b5563;
  --radius-full: 9999px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --max-width: 1380px;
  --max-content: 920px;
}

/* ==================== LIGHT / WHITE MODE THEME ==================== */
html.lightmod,
[data-theme="light"] {
  color-scheme: light;

  --c-text-white: #0f172a;
  --c-text: 215, 28%, 17%;
  --c-body: 210, 20%, 98%;
  --c-body-tone: 210, 20%, 94%;

  --c-link: var(--hs-p), 35%;
  --c-link-h: var(--hs-p), 42%;

  --c-border: rgba(0, 0, 0, 0.09);

  --dropdown-bg: 0, 0%, 100%;
  --dropdown-sw: 0 16px 40px -4px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(0, 0, 0, 0.05);

  --modal-bg: 0, 0%, 100%;
  --modal-sw: 0 16px 40px -4px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  --modal-overlay: rgba(0, 0, 0, 0.4);

  --btn-tone-bg: hsla(var(--hs-p), 38%, 0.1);
  --btn-tone-text: #009960;

  --btn-edit-bg: 0, 0%, 96%;
  
  --block-bg: 0, 0%, 100%;
  --block-sw: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 0 1px 0 rgba(0, 0, 0, 0.08);

  --comcloud-bg: hsla(var(--hs-p), 0.06);

  /* Legacy mapped aliases */
  --bg-dark: #f8f9fa;
  --bg-page: #f8f9fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-surface: #f1f5f9;
  --bg-elevated: #ffffff;
  --border: rgba(0, 0, 0, 0.09);
  --border-subtle: rgba(0, 0, 0, 0.05);
  --text-white: #0f172a;
  --text-heading: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
}

html.lightmod .main-masthead,
html.lightmod .header-first {
  background-color: #ffffff;
  border-bottom-color: rgba(0, 0, 0, 0.09);
}

html.lightmod .editorial-nav,
html.lightmod .header-second {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom-color: rgba(0, 0, 0, 0.09);
}

html.lightmod .top-meta-bar {
  background-color: #f1f5f9;
  border-bottom-color: rgba(0, 0, 0, 0.09);
}

html.lightmod .nav-brand-logo,
html.lightmod .nav-brand-logo a {
  color: #0f172a;
}

html.lightmod .journal-title,
html.lightmod .journal-title a {
  color: #0f172a;
}

html.lightmod .site-footer {
  background-color: #f1f5f9;
  border-top-color: rgba(0, 0, 0, 0.09);
}

html.lightmod .footer-col-title {
  color: #0f172a;
}

html.lightmod .footer-link-list a {
  color: #334155;
}

html.lightmod .footer-about-col p,
html.lightmod .footer-disclaimer-notice {
  color: #64748b;
}

/* Theme Toggle Button (Sun / Moon) */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: hsla(var(--hs-p), 38%, 0.12);
  border-color: var(--c-primary);
  color: var(--c-primary);
  transform: rotate(15deg);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle-btn .sun-icon {
  display: none;
}

.theme-toggle-btn .moon-icon {
  display: block;
}

html.lightmod .theme-toggle-btn .sun-icon {
  display: block;
}

html.lightmod .theme-toggle-btn .moon-icon {
  display: none;
}

@media (min-width: 576px) {
  :root {
    --wrp-p: 24px;
  }
}
@media (min-width: 992px) {
  :root {
    --fs-title-cat: 32px;
    --fs-title-file: 28px;
    --fs-title-view: 44px;
    --group-gap: 40px;
  }
}
@media (min-width: 1200px) {
  :root {
    --wrp-p: 40px;
  }
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--fs);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: var(--lh);
  font-weight: var(--fw);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
}

main, .content-5p {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease, background-color .2s ease;
}

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

/* Flex utilities (Direct from Modyolo) */
.fc {
  display: flex;
  align-items: center;
}
.f-grow {
  flex-grow: 1;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==================== CONTAINERS ==================== */
.wrp, .container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--wrp-p);
}

.container-reading, .article-reading-container {
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--wrp-p);
}

/* ==================== HEADER (MODYOLO 2-TIER HEADER) ==================== */
.main-masthead, .header-first {
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border);
  padding: 20px 0 16px;
  text-align: center;
  position: relative;
}

.masthead-date {
  font-size: var(--fs-3);
  font-weight: var(--fw-semi);
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.masthead-date::before,
.masthead-date::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--c-primary);
  opacity: 0.5;
}

.journal-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: var(--fw-black);
  letter-spacing: -0.03em;
  color: var(--text-heading);
  line-height: 1.15;
  margin-bottom: 4px;
}

.journal-title a {
  color: var(--text-heading);
}

.journal-title a:hover {
  color: var(--c-primary);
}

.journal-tagline {
  font-size: var(--fs-1);
  color: var(--text-secondary);
  max-width: 680px;
  margin-inline: auto;
}

/* Second Navigation Bar (Modyolo Pill Tabs) */
.editorial-nav, .header-second {
  position: sticky;
  top: 0;
  z-index: 99;
  background-color: var(--bg-page);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand-logo {
  font-size: 1.2rem;
  font-weight: var(--fw-black);
  color: var(--text-heading);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.nav-brand-logo a {
  color: var(--text-heading);
  text-decoration: none;
}

.nav-brand-logo a:hover {
  color: var(--c-primary);
}

.nav-links, .hmenu-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.nav-link, .m-item {
  font-size: var(--btn-fs-sm);
  font-weight: var(--fw-semi);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  transition: all .2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover, .m-item:hover {
  color: var(--c-primary);
  background-color: hsla(var(--hs-p), 38%, 0.12);
}

.nav-link.active, .m-item.active {
  color: #ffffff;
  background-color: var(--c-primary);
  box-shadow: 0 2px 10px rgba(0, 176, 111, 0.4);
}

.nav-subscribe-btn, .btn-fill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--btn-fill-bg);
  color: var(--btn-fill-text) !important;
  font-size: var(--btn-fs-sm);
  font-weight: var(--fw-bold);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(0, 176, 111, 0.35);
  transition: all .2s ease;
  white-space: nowrap;
}

.nav-subscribe-btn:hover, .btn-fill:hover {
  background-color: var(--btn-fill-bg-h);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 176, 111, 0.5);
}

.mobile-toggle {
  display: none;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-heading);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ==================== SPEEDBAR / BREADCRUMBS (DIRECT FROM MODYOLO) ==================== */
.speedbar, .breadcrumb-nav {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: var(--fs-2);
}

.speedbar a, .breadcrumb-list a {
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
}

.speedbar a:hover, .breadcrumb-list a:hover {
  color: var(--c-primary);
}

.speedbar-sep, .breadcrumb-separator {
  margin: 0 8px;
  color: var(--text-muted);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
}

.breadcrumb-current {
  color: var(--c-primary);
  font-weight: var(--fw-semi);
}

/* ==================== PROMO & CALLOUT BLOCKS (MODYOLO COMCLOUD) ==================== */
.top-meta-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  font-size: var(--fs-3);
}

.top-meta-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.trending-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.breaking-badge {
  background-color: var(--c-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: var(--fw-black);
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.editorial-callout, .comcloud {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--block-rd);
  padding: 22px 26px;
  margin-bottom: 32px;
  box-shadow: var(--block-sw);
}

.editorial-callout.warning {
  border-left-color: var(--c-yellow);
}

.editorial-callout.info {
  border-left-color: var(--c-blue);
}

/* ==================== EDITORIAL 2-COLUMN HERO (MODYOLO STR-MAIN + STR-ADD) ==================== */
.editorial-layout, .sect.str {
  display: grid;
  grid-template-columns: 1.85fr 1.15fr;
  gap: var(--group-gap);
  margin-bottom: var(--sect-gap);
}

.lead-story, .str-main .lead-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--block-rd);
  padding: 28px;
  box-shadow: var(--block-sw);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}

.lead-story:hover {
  transform: translateY(-3px);
  border-color: hsla(var(--hs-p), 38%, 0.4);
}

.story-kicker {
  font-size: var(--fs-3);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-primary);
  margin-bottom: 10px;
}

.lead-headline {
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  font-weight: var(--fw-black);
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 14px;
}

.lead-headline a {
  color: var(--text-heading);
}

.lead-headline a:hover {
  color: var(--c-primary);
}

.lead-deck {
  font-size: var(--fs);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.lead-image-box, .cover {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
}

.lead-image-box img {
  width: 100%;
  height: auto;
  display: block;
}

.byline-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-2);
  color: var(--text-muted);
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.byline-author {
  color: var(--text-heading);
  font-weight: var(--fw-semi);
}

.badge-verified, .category-tags a, .tag-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-3);
  font-weight: var(--fw-bold);
  padding: 3px 10px;
  border-radius: 20px;
  background-color: hsla(var(--hs-p), 38%, 0.12) !important;
  color: var(--c-primary) !important;
}

/* Sidebar: Modyolo Blog-Block */
.sidebar-column, .str-add .blog-block {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--block-rd);
  padding: 24px;
  box-shadow: var(--block-sw);
}

.sidebar-header, .blog-block > .title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-title-sect);
  font-weight: var(--fw-black);
  color: var(--text-heading);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.trending-list, .blog-min-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.trending-item, .article-min.item {
  display: flex;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.trending-item:last-child, .article-min.item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.trending-num {
  font-size: 1.4rem;
  font-weight: var(--fw-black);
  color: var(--c-primary);
  line-height: 1;
}

.trending-content h4, .article-min .title {
  font-size: var(--fs-1);
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  line-height: 1.35;
  margin-bottom: 6px;
}

.trending-content h4 a, .article-min .title a {
  color: var(--text-heading);
}

.trending-content h4 a:hover, .article-min a:hover {
  color: var(--c-primary);
}

.trending-meta, .meta-item {
  font-size: var(--fs-3);
  color: var(--text-muted);
}

/* ==================== ARTICLES ARCHIVE (MODYOLO BLOG-LIST & ARTICLE CARDS) ==================== */
.archive-grid, .blog-list, .grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 36px;
}

.archive-card, .article.item, .story-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--block-rd);
  padding: 24px;
  box-shadow: var(--block-sw);
  transition: transform .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}

.archive-card:hover, .article.item:hover {
  transform: translateY(-3px);
  border-color: hsla(var(--hs-p), 38%, 0.4);
}

.archive-title {
  font-size: 1.2rem;
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  line-height: 1.35;
  margin-bottom: 10px;
}

.archive-title a {
  color: var(--text-heading);
}

.archive-title a:hover {
  color: var(--c-primary);
}

.archive-summary, .article .desc {
  font-size: var(--fs-2);
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.archive-meta, .article .meta {
  font-size: var(--fs-3);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Modyolo Buttons (Tone & Sm) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--f);
  font-size: var(--btn-fs-sm);
  font-weight: var(--fw-bold);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: none;
  transition: all .2s ease;
}

.btn-tone {
  background-color: hsla(var(--hs-p), 38%, 0.12);
  color: var(--c-primary);
}

.btn-tone:hover {
  background-color: hsla(var(--hs-p), 38%, 0.2);
  color: var(--c-primary);
  transform: translateY(-1px);
}

.btn-primary, .cta-button {
  background-color: var(--c-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(0, 176, 111, 0.35);
}

.btn-primary:hover, .cta-button:hover {
  background-color: #009960;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 176, 111, 0.5);
}

/* ==================== TELEMETRY & SPECS TABLES (MODYOLO TABLES) ==================== */
.tool-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--block-rd);
  padding: 28px;
  box-shadow: var(--block-sw);
}

.table-editorial-wrapper, .table-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow-x: auto;
  box-shadow: var(--block-sw);
  margin-bottom: 32px;
}

.editorial-table, .comparison-table, .telemetry-table, table.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--fs-2);
}

.editorial-table th, .comparison-table th, .telemetry-table th {
  background-color: var(--bg-surface);
  color: var(--text-heading);
  font-weight: var(--fw-bold);
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  font-size: var(--fs-3);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.editorial-table td, .comparison-table td, .telemetry-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.editorial-table tr:last-child td, .comparison-table tr:last-child td, .telemetry-table tr:last-child td {
  border-bottom: none;
}

.editorial-table tr:hover td, .comparison-table tr:hover td, .telemetry-table tr:hover td {
  background-color: hsla(var(--hs-p), 38%, 0.08);
  color: var(--text-heading);
}

/* ==================== SINGLE ARTICLE (MODYOLO BLOGVIEW LAYOUT) ==================== */
.blogview-head, .article-header {
  margin-bottom: var(--sect-gap);
}

.article-headline, .blogview-head .title {
  font-size: var(--fs-title-view);
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 14px;
}

.article-subhead {
  font-size: var(--fs-desc-view);
  color: var(--text-secondary);
  line-height: var(--lh-desc-view);
  margin-bottom: 20px;
}

.article-byline-banner, .author-bio-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--c-primary);
  background-color: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-black);
  color: var(--c-primary);
  font-size: 1.1rem;
}

.author-info h4 {
  font-size: var(--fs-1);
  font-weight: var(--fw-bold);
  color: var(--text-heading);
}

.author-info p {
  font-size: var(--fs-3);
  color: var(--text-muted);
}

.article-prose, .desc.text {
  font-size: var(--fs-desc-view);
  line-height: var(--lh-desc-view);
  color: var(--text-primary);
}

.article-prose p, .desc.text p {
  margin-bottom: 22px;
}

.article-prose h2, .desc.text h2 {
  font-size: 1.7rem;
  font-weight: var(--fw-black);
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin-top: 44px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-prose h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background-color: var(--c-primary);
  border-radius: 4px;
}

.article-prose h3, .desc.text h3 {
  font-size: 1.3rem;
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-prose ul, .article-prose ol {
  margin-bottom: 22px;
  padding-left: 24px;
}

.article-prose li {
  margin-bottom: 8px;
}

.article-prose strong {
  color: var(--text-heading);
  font-weight: var(--fw-bold);
}

/* Step Guides */
.step-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--block-rd);
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--block-sw);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.step-num {
  width: 34px;
  height: 34px;
  background-color: var(--c-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-black);
  font-size: var(--fs-1);
  box-shadow: 0 2px 8px rgba(0, 176, 111, 0.4);
  flex-shrink: 0;
}

.step-title {
  font-size: 1.15rem;
  font-weight: var(--fw-bold);
  color: var(--text-heading);
}

.key-takeaways-box, .parameter-callout, .specs-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--block-rd);
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: var(--block-sw);
}

/* Code Boxes (Terminal Mode) */
.code-box, pre {
  background-color: #0b0d10;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--fmono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #e6edf3;
  margin-bottom: 22px;
}

code {
  font-family: var(--fmono);
  font-size: 0.88em;
  background-color: hsla(var(--hs-p), 38%, 0.12);
  color: var(--c-primary);
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: var(--fw-semi);
}

pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-weight: normal;
}

/* ==================== FAQ CARDS ==================== */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.faq-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: var(--block-sw);
}

.faq-question {
  font-size: 1.05rem;
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-question::before {
  content: "Q";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: hsla(var(--hs-p), 38%, 0.15);
  color: var(--c-primary);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: var(--fw-black);
}

.faq-answer {
  font-size: var(--fs-1);
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 32px;
}

/* ==================== CALCULATOR & FORMS (MODYOLO INPUTS) ==================== */
.calc-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--block-rd);
  padding: 32px;
  box-shadow: var(--block-sw);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-1);
  font-weight: var(--fw-semi);
  color: var(--text-heading);
  margin-bottom: 8px;
}

.form-control, .qs-input {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--f);
  font-size: var(--fs-1);
  outline: none;
  transition: border-color .2s ease;
}

.form-control:focus, .qs-input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px hsla(var(--hs-p), 38%, 0.15);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background-color: var(--bg-surface);
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--c-primary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 176, 111, 0.4);
}

.calc-output-box {
  background-color: var(--bg-surface);
  border: 1px solid hsla(var(--hs-p), 38%, 0.3);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  margin-top: 24px;
}

.calc-value-huge {
  font-size: 2.6rem;
  font-weight: var(--fw-black);
  color: var(--c-primary);
  line-height: 1.1;
  margin-bottom: 4px;
}

/* ==================== FOOTER (MODYOLO FOOTER-5P) ==================== */
.site-footer, .footer-5p {
  background-color: #08090b;
  border-top: 1px solid var(--border);
  padding: 44px 0 24px;
  margin-top: 56px;
}

.footer-top-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-about-col p {
  color: var(--text-muted);
  font-size: var(--fs-2);
  line-height: 1.6;
  margin-top: 10px;
  max-width: 360px;
}

.footer-brand-title {
  font-size: 1.4rem;
  font-weight: var(--fw-black);
  color: var(--text-heading);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.author-card-name {
  font-weight: var(--fw-bold);
  font-size: 1.1rem;
  color: var(--text-heading);
}

.footer-col-title {
  font-size: var(--fs-2);
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-link-list {
  list-style: none;
}

.footer-link-list li {
  margin-bottom: 8px;
}

.footer-link-list a {
  font-size: var(--fs-2);
  color: var(--text-secondary);
}

.footer-link-list a:hover {
  color: var(--c-primary);
}

.footer-disclaimer-notice {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
  font-size: var(--fs-3);
  color: var(--text-muted);
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 991px) {
  .editorial-layout, .sect.str {
    grid-template-columns: 1fr;
  }
  .footer-top-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background-color: hsl(var(--block-bg));
    border: 1px solid var(--c-border);
    border-radius: var(--block-rd);
    padding: 16px;
    margin-top: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-row {
    flex-wrap: wrap;
  }

  .footer-top-row {
    grid-template-columns: 1fr;
  }

  .article-headline {
    font-size: 1.85rem;
  }
}

