:root {
    --bg: #0e1117;
    --surface: #161b22;
    --surface-alt: #21262d;
    --text: #f0f6fc;
    --text-muted: #d0d7de;
    --border: #30363d;
    --primary: #f0f6fc;
    --primary-hover: #ffffff;
    --on-primary: #0e1117;
    --primary-text: #58a6ff;
    --accent: #388bfd;
    --on-accent: #ffffff;
    --accent-text: #58a6ff;
    --dark-band: #161b22;
    --on-dark: #f0f6fc;
    --on-dark-muted: #d0d7de;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Podkova', serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.55;
}

/* Site-wide legibility and brand contrast */
body [class*="text-[#8b949e]"],
body [class*="text-[#6e7681]"] {
    color: #d0d7de !important;
}

.lr-header-block img[alt="LayerRun Atlas"] {
    width: 42px !important;
    height: 42px !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(88, 166, 255, 0.7));
    box-shadow: none;
}

.hero-section h1,
.category-hero h1 {
    font-size: clamp(2rem, 7vw, 2.625rem) !important;
}

.lr-footer {
    background: #0b0f14 !important;
    color: #f0f6fc !important;
    border-color: #30363d !important;
}

.lr-footer [class*="text-[#0d1117]"],
.lr-footer [class*="text-[#57606a]"] {
    color: #d0d7de !important;
}

.lr-footer [class*="bg-[#ffffff]"] {
    background: #161b22 !important;
}

.lr-footer [class*="border-[#d0d7de]"] {
    border-color: #30363d !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.ga-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Podkova', serif;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: var(--primary);
    color: var(--on-primary);
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
}

.ga-btn:hover {
    background-color: var(--primary-hover);
    color: #000000;
}

.ga-btn-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Podkova', serif;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: var(--surface-alt);
    color: var(--text);
    border: 1px solid var(--border);
    text-decoration: none;
    cursor: pointer;
}

.ga-btn-alt:hover {
    background-color: var(--border);
    color: #ffffff;
}

.ga-card {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    box-shadow: none;
}

.ga-card:hover {
    border-color: var(--accent-text);
    background-color: #1c2128;
}

.ga-card:hover .ga-media img {
    transform: scale(1.05);
}

.ga-media {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--bg);
}

.ga-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ga-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-text);
    margin-bottom: 8px;
}

.ga-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--text);
    margin: 0 0 16px 0;
}

@media (min-width: 768px) {
    .ga-title {
        font-size: 38px;
    }
}

.ga-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    background-color: var(--surface-alt);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.ga-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: var(--surface-alt);
    color: var(--accent-text);
    border: 1px solid var(--border);
}

.ga-section {
    background-color: var(--bg);
    padding-top: 56px;
    padding-bottom: 56px;
}

.ga-section-alt {
    background-color: var(--surface-alt);
    padding-top: 56px;
    padding-bottom: 56px;
}

.ga-section-dark {
    background-color: var(--dark-band);
    color: var(--on-dark);
    padding-top: 56px;
    padding-bottom: 56px;
}

.ga-section-brand {
    background-color: var(--primary);
    color: var(--on-primary);
    padding-top: 56px;
    padding-bottom: 56px;
}

@media (min-width: 768px) {

    .ga-section,
    .ga-section-alt,
    .ga-section-dark,
    .ga-section-brand {
        padding-top: 96px;
        padding-bottom: 96px;
    }
}

.ga-section-dark .ga-title,
.ga-on-dark .ga-title {
    color: var(--on-dark);
}

.ga-section-dark .ga-eyebrow,
.ga-on-dark .ga-eyebrow {
    color: var(--accent-text);
}

.ga-section-dark p,
.ga-on-dark p {
    color: var(--on-dark-muted);
}

.ga-section-dark .ga-btn-alt,
.ga-on-dark .ga-btn-alt {
    border-color: var(--border);
    color: var(--on-dark);
}

.ga-section-dark .ga-card,
.ga-on-dark .ga-card {
    background-color: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.ga-section-dark .ga-card p,
.ga-on-dark .ga-card p {
    color: var(--text-muted);
}

.ga-section-brand .ga-btn {
    background-color: var(--bg);
    color: var(--text);
}

.ga-section-brand .ga-btn-alt {
    background-color: transparent;
    border-color: var(--on-primary);
    color: var(--on-primary);
}

/* ===== header ===== */
.lr-header-block {
    font-family: 'Podkova', serif;
}

.lr-header-block a {
    text-decoration: none;
}

.lr-header-block .js-mobile-menu:not(.hidden) {
    display: block;
}

/* ===== hero ===== */
.hero-section .hero-bg-grid {
    background-size: 32px 32px;
    background-image: linear-gradient(to right, #30363d 1px, transparent 1px),
        linear-gradient(to bottom, #30363d 1px, transparent 1px);
}

.hero-section .hero-schematic-card {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65);
}

.hero-section .layer-row {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.hero-section .layer-row:hover {
    border-color: #58a6ff;
    background-color: #161b22;
}

/* ===== comparison ===== */
.lr-comparison-section {
    font-family: 'Podkova', serif, system-ui;
}

.lr-comparison-section table {
    border-spacing: 0;
    width: 100%;
}

.lr-comparison-section p,
.lr-comparison-section h2,
.lr-comparison-section h3 {
    overflow-wrap: anywhere;
    hyphens: auto;
}

@media (max-width: 767px) {
    .lr-comparison-section table {
        display: none;
    }
}

/* ===== key_benefits ===== */
.key-benefits-section {
    background-color: var(--surface, #161b22);
}

.key-benefits-card {
    background-color: var(--surface-alt, #0e1117);
    border-color: var(--border, #30363d);
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.key-benefits-card:hover {
    border-color: var(--accent, #58a6ff);
    background-color: #1c2128;
}

@media (max-width: 767px) {
    .key-benefits-section .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== founder_note ===== */
.founder-note-section .founder-card {
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.5);
}

.founder-note-section .portrait-wrapper img {
    transition: transform 0.2s ease-in-out;
}

.founder-note-section .founder-card:hover .portrait-wrapper img {
    transform: scale(1.03);
}

.founder-note-section .signature-box {
    font-family: 'Podkova', serif;
    letter-spacing: 0.05em;
}

@media (max-width: 767px) {
    .founder-note-section .grid {
        grid-template-columns: 1fr;
    }

    .founder-note-section .signature-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== work_formats ===== */
.layerrun-formats-block {
    overflow-wrap: anywhere;
}

.layerrun-formats-block .layerrun-format-card {
    min-height: 100%;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.layerrun-formats-block .layerrun-format-card.is-active {
    border-color: #58a6ff;
    background-color: #1c2128;
}

.layerrun-formats-block input::placeholder,
.layerrun-formats-block textarea::placeholder {
    color: #6e7681;
    opacity: 1;
}

@media (max-width: 767px) {
    .layerrun-formats-block h2 {
        hyphens: auto;
    }
}

/* ===== run_maps_grid ===== */
.run-maps-section {
    font-family: 'Podkova', serif;
}

.run-maps-section .run-map-card {
    min-height: 100%;
}

.run-maps-section .run-map-card:hover {
    background-color: #1c2128;
}

@media (max-width: 767px) {
    .run-maps-section .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== guides_grid ===== */
.guides-grid-block {
    background-color: var(--surface-alt, #161b22);
}

.guides-grid-block .guides-card {
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.guides-grid-block .guides-card:hover {
    border-color: var(--primary-text, #58a6ff);
    background-color: #1c2128;
}

.guides-grid-block .guides-card h3 a {
    overflow-wrap: anywhere;
}

@media (max-width: 767px) {
    .guides-grid-block .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== footer ===== */
.lr-footer {
    font-family: 'Podkova', serif;
}

.lr-footer a:focus-visible {
    outline: 2px solid #0969da;
    outline-offset: 2px;
}

.lr-footer .lr-footer__link {
    word-break: break-word;
    text-decoration: none;
}

.lr-footer .lr-footer__link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .lr-footer .grid {
        grid-template-columns: 1fr;
    }
}

.lr-header-block {
    font-family: 'Podkova', serif;
}

.lr-header-block a {
    text-decoration: none;
}

.lr-header-block .js-mobile-menu:not(.hidden) {
    display: block;
}

.lr-cat-hero .lr-cat-hero__grid {
    background-size: 32px 32px;
    background-image: linear-gradient(to right, #30363d 1px, transparent 1px),
        linear-gradient(to bottom, #30363d 1px, transparent 1px);
}

.lr-cat-card {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.lr-cat-card:hover {
    border-color: #58a6ff;
    background-color: #1c2128;
}

.lr-cat-form input::placeholder,
.lr-cat-form textarea::placeholder {
    color: #6e7681;
    opacity: 1;
}

.lr-footer {
    font-family: 'Podkova', serif;
}

.lr-footer a:focus-visible {
    outline: 2px solid #0969da;
    outline-offset: 2px;
}

.lr-footer .lr-footer__link {
    word-break: break-word;
    text-decoration: none;
}

.lr-footer .lr-footer__link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .lr-footer .grid {
        grid-template-columns: 1fr;
    }
}


/* ===== PAGE: privacy ===== */
.policy-content { width: 100%; max-width: 1280px; margin: 0 auto; padding: 40px 16px; box-sizing: border-box; font-family: 'Podkova', serif; color: #8b949e; } @media (min-width: 768px) { .policy-content { padding: 64px 32px; } } .policy-content .policy-card { background-color: #161b22; border: 1px solid #30363d; border-radius: 8px; padding: 24px 20px; box-sizing: border-box; } @media (min-width: 768px) { .policy-content .policy-card { padding: 48px; } } .policy-content .policy-meta-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid #30363d; } .policy-content .policy-pill { display: inline-block; padding: 4px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background-color: #21262d; color: #58a6ff; border: 1px solid #30363d; border-radius: 4px; } .policy-content .policy-date { font-size: 13px; font-weight: 500; color: #8b949e; } .policy-content h2 { font-family: 'Podkova', serif; font-size: 16px; font-weight: 700; color: #f0f6fc; line-height: 1.25; margin-top: 32px; margin-bottom: 14px; overflow-wrap: anywhere; hyphens: auto; } @media (min-width: 768px) { .policy-content h2 { font-size: 26px; margin-top: 40px; margin-bottom: 18px; } } .policy-content p { font-size: 14px; line-height: 1.6; color: #8b949e; margin-bottom: 16px; overflow-wrap: anywhere; } @media (min-width: 768px) { .policy-content p { font-size: 15px; } } .policy-content ul { list-style: disc; padding-left: 20px; margin-bottom: 20px; } .policy-content li { font-size: 14px; line-height: 1.6; color: #8b949e; margin-bottom: 8px; overflow-wrap: anywhere; } @media (min-width: 768px) { .policy-content li { font-size: 15px; } } .policy-content strong { color: #f0f6fc; font-weight: 600; } .policy-content a { color: #58a6ff; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; } .policy-content a:hover { color: #ffffff; text-decoration: none; }

/* ===== PAGE: terms ===== */
.policy-content { color: #f0f6fc; font-family: 'Podkova', serif; line-height: 1.6; max-width: 960px; margin: 0 auto; padding: 32px 16px; overflow-wrap: anywhere; } .policy-content h2 { color: #f0f6fc; font-size: 16px; font-weight: 700; margin-top: 32px; margin-bottom: 12px; border-bottom: 1px solid #30363d; padding-bottom: 8px; } @media (min-width: 768px) { .policy-content h2 { font-size: 24px; margin-top: 40px; margin-bottom: 16px; } } .policy-content h3 { color: #58a6ff; font-size: 14px; font-weight: 600; margin-top: 20px; margin-bottom: 8px; } @media (min-width: 768px) { .policy-content h3 { font-size: 18px; margin-top: 24px; margin-bottom: 10px; } } .policy-content p { color: #8b949e; font-size: 15px; margin-bottom: 16px; line-height: 1.6; } .policy-content strong { color: #f0f6fc; font-weight: 600; } .policy-content ul, .policy-content ol { color: #8b949e; font-size: 15px; padding-left: 20px; margin-bottom: 20px; list-style: disc; } .policy-content li { margin-bottom: 8px; line-height: 1.55; } .policy-content a { color: #58a6ff; text-decoration: underline; text-underline-offset: 3px; } .policy-content a:hover, .policy-content a:focus { color: #ffffff; } .policy-content .policy-meta-box { background: #161b22; border: 1px solid #30363d; border-radius: 8px; padding: 20px; margin-bottom: 32px; } .policy-content .policy-contact-card { background: #161b22; border: 1px solid #30363d; border-radius: 8px; padding: 20px; margin-top: 24px; }

/* ===== PAGE: disclaimer ===== */
.policy-content { width: 100%; max-width: 960px; margin: 0 auto; padding: 48px 24px; color: #8b949e; font-family: 'Podkova', serif; font-size: 15px; line-height: 1.6; word-wrap: break-word; overflow-wrap: anywhere; } .policy-content .policy-effective-date { font-size: 14px; color: #58a6ff; margin-bottom: 24px; } .policy-content h2 { font-size: 24px; line-height: 1.25; font-weight: 700; color: #f0f6fc; margin-top: 36px; margin-bottom: 16px; border-bottom: 1px solid #30363d; padding-bottom: 8px; } .policy-content p { margin-bottom: 16px; color: #8b949e; } .policy-content strong { color: #f0f6fc; font-weight: 600; } .policy-content ul { list-style-type: square; margin-left: 20px; margin-bottom: 20px; color: #8b949e; } .policy-content li { margin-bottom: 8px; line-height: 1.55; } .policy-content a { color: #58a6ff; text-decoration: none; border-bottom: 1px dashed rgba(88, 166, 255, 0.4); } .policy-content a:hover, .policy-content a:focus { color: #ffffff; border-bottom-style: solid; } @media (max-width: 767px) { .policy-content { padding: 28px 16px; font-size: 14px; } .policy-content h2 { font-size: 16px; margin-top: 28px; margin-bottom: 12px; } .policy-content ul { margin-left: 16px; } }

/* ===== PAGE: cookies ===== */
.policy-content{color:var(--text,#f0f6fc);background:var(--surface,#161b22);border:1px solid var(--border,#30363d);border-radius:8px;padding:24px 16px;max-width:100%;overflow-wrap:anywhere;box-sizing:border-box}.policy-content h2{font-size:16px;font-weight:700;color:var(--text,#f0f6fc);margin-top:24px;margin-bottom:12px;line-height:1.25;letter-spacing:-0.015em}.policy-content h2:first-child{margin-top:0}.policy-content h3{font-size:14px;font-weight:600;color:var(--primary-text,#58a6ff);margin-top:18px;margin-bottom:8px;line-height:1.3}.policy-content p{font-size:14px;line-height:1.6;color:var(--text-muted,#8b949e);margin-bottom:14px}.policy-content ul{list-style:disc;padding-left:20px;margin-bottom:16px;color:var(--text-muted,#8b949e)}.policy-content li{font-size:14px;line-height:1.6;margin-bottom:6px}.policy-content a{color:var(--primary-text,#58a6ff);text-decoration:underline;text-underline-offset:3px}.policy-content a:hover{color:var(--text,#ffffff)}@media (min-width:768px){.policy-content{padding:40px 32px}.policy-content h2{font-size:24px;margin-top:32px;margin-bottom:16px}.policy-content h3{font-size:18px;margin-top:24px;margin-bottom:10px}.policy-content p,.policy-content li{font-size:15px;line-height:1.65}}

/* ===== PAGE: lightburn ===== */
.lb-workflow-wrapper {
  font-family: 'Podkova', serif;
}
.lb-workflow-wrapper .js-layer-tab {
  cursor: pointer;
}
.lb-workflow-wrapper .js-layer-tab.active {
  border-color: #58a6ff;
  background-color: #1c2128;
}

/* ===== PAGE: about ===== */
.layerrun-about-block{font-family:'Podkova',serif;overflow-wrap:anywhere}.layerrun-about-block h2,.layerrun-about-block h3{font-family:'Podkova',serif}@media (max-width:767px){.layerrun-about-block .grid{grid-template-columns:1fr}}

/* ===== PAGE: how-it-works ===== */
.run-map-workflow {
  font-family: 'Podkova', serif;
  box-sizing: border-box;
}

.run-map-workflow .active-step {
  background-color: #21262d !important;
  color: #f0f6fc !important;
  border-color: #58a6ff !important;
}

@media (max-width: 767px) {
  .run-map-workflow table thead {
    display: none;
  }
  .run-map-workflow table, 
  .run-map-workflow table tbody, 
  .run-map-workflow table tr, 
  .run-map-workflow table td {
    display: block;
    width: 100%;
  }
  .run-map-workflow table tr {
    margin-bottom: 16px;
    border: 1px solid #30363d;
    border-radius: 6px;
    background: #0e1117;
    padding: 8px;
  }
  .run-map-workflow table td {
    padding: 6px 8px;
    border: none;
  }
}

/* ===== PAGE: boundary ===== */
.boundary-system {
  font-family: 'Podkova', serif;
}

.boundary-system .js-tab-btn {
  cursor: pointer;
}

.boundary-system .js-tab-btn:focus {
  outline: 2px solid #58a6ff;
  outline-offset: 1px;
}

@media (max-width: 767px) {
  .boundary-system .grid {
    grid-template-columns: 1fr;
  }
  .boundary-system #js-boundary-tabs {
    grid-template-columns: 1fr;
  }
}

/* ===== PAGE: contact ===== */
.contact-workbench .contact-input::placeholder { color: #6e7681; opacity: 1; }
.contact-workbench .contact-input:focus { border-color: #58a6ff; outline: none; }
@media (max-width: 767px) {
  .contact-workbench .contact-info-card, .contact-workbench .contact-form-container { padding: 16px; }
}

.comment-item {
    transition: none;
    font-family: 'Podkova', serif;
}

.comment-item:hover {
    border-color: #58a6ff;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    object-fit: cover;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Legal pages use a brighter reading tone than secondary UI labels. */
.policy-content,
.policy-content p,
.policy-content li,
.policy-content ul,
.policy-content ol,
.policy-content .policy-date {
    color: #e6edf3 !important;
}

.comment-btn {
    transition: none;
}

.comment-btn:hover {
    border-color: #58a6ff;
    color: #ffffff;
}

.reply-comment-item {
    transition: none;
    font-family: 'Podkova', serif;
}

.reply-comment-item:hover {
    border-color: #58a6ff;
}

.reply-comment-item .comment-avatar {
    width: 36px;
    height: 36px;
    object-fit: cover;
}

.reply-comment-item .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.comment-btn {
    transition: none;
}

.comment-btn:hover {
    border-color: #58a6ff;
    color: #ffffff;
}


/* ===== PAGE TEMPLATE: run-maps, guides, materials ===== */
.lr-detail-hero .hero-bg-grid {
    background-size: 32px 32px;
    background-image: linear-gradient(to right, #30363d 1px, transparent 1px),
        linear-gradient(to bottom, #30363d 1px, transparent 1px);
}

.lr-article-layout input::placeholder,
.lr-article-layout textarea::placeholder {
    color: #6e7681;
    opacity: 1;
}

.lr-article-content h2 {
    overflow-wrap: anywhere;
}

.lr-article-content p {
    overflow-wrap: anywhere;
}

.lr-toc-active {
    color: #58a6ff !important;
    font-weight: 600;
}

@media (max-width: 767px) {
    .lr-article-layout .grid {
        grid-template-columns: 1fr;
    }

    .lr-related-section .grid {
        grid-template-columns: 1fr;
    }
}

/* mobile-text-guard */
@media (max-width: 767px) {
  h1, h2, h3, h4, h5, h6, p, li, dt, dd, blockquote, figcaption, td, th, label {
    overflow-wrap: anywhere;
  }
  a, button, .btn {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  img, video, iframe {
    max-width: 100%;
  }
}
