/* ==========================================================================
   Main Styles - Consolidated from Angular SCSS
   ========================================================================== */

:root {
    --hide-time: 2;
}

/* Box Sizing - Essential for Bootstrap grid */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Scrollbar Styles */
* {
    scrollbar-width: thin;
    scrollbar-color: #41454b black;
}

*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track {
    background: black;
}

*::-webkit-scrollbar-thumb {
    background-color: #41454b;
    border-radius: 30px;
    border: 3px solid black;
}

/* Base Styles */
html {
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    overflow-x: hidden;
    color: snow;
    font-family: Roboto, "Helvetica Neue", sans-serif;
}

html, body {
    min-height: 100%;
}

/* Desktop: lock viewport height */
@media (min-width: 768px) {
    html {
        overflow: hidden;
    }
    body {
        height: 100vh;
        overflow: hidden;
    }
    html:has(body.scrollable) {
        overflow-x: hidden;
        overflow-y: auto;
    }
    body.scrollable {
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }
}

.container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
}

/* Ensure rows don't cause horizontal overflow */
.row {
    margin-left: -15px;
    margin-right: -15px;
    display: flex;
    flex-wrap: wrap;
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* Column classes */
.col {
    flex: 1 0 0%;
}

.col-md-5,
.col-md-6,
.col-md-7 {
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-5 {
        flex: 0 0 auto;
        width: 41.666667%;
    }
    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    .col-md-7 {
        flex: 0 0 auto;
        width: 58.333333%;
    }
}

/* Links */
a {
    display: inline-block;
    text-decoration: none !important;
    color: snow;
}

a:hover {
    border-bottom: 1px solid snow;
}

.cursor-pointer {
    cursor: pointer;
}

:focus {
    outline: none;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-start {
    text-align: start;
}

.text-end {
    text-align: end;
}

.w-100 {
    width: 100%;
}

.w-50 {
    width: 50%;
}

.float-start {
    float: left;
}

.float-end {
    float: right;
}

.position-absolute {
    position: absolute;
}

/* Page Layout - Sticky Footer */
.page-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .page-wrapper {
        position: absolute;
    }
}

.page-content {
    flex: 1 0 auto;
}

.text-gold {
    color: #ffc800;
}

.zi-10 {
    z-index: 10;
}

/* Language Switcher */
.language-switcher {
    font-size: 14px;
}

.language-switcher a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.15s ease;
}

.language-switcher a:hover {
    color: #ffc800;
}

.lang-active {
    color: rgba(255, 255, 255, 0.4);
}

.lang-separator {
    margin: 0 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

hr {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Typography */
h1, .h1 {
    font-family: "Marhey", cursive;
    letter-spacing: 3px;
    font-size: 18px;
    text-shadow: 5px 5px 0 #000000;
    text-transform: uppercase;
}

h2, .h2 {
    font-family: monospace, sans-serif;
    letter-spacing: 1px;
    font-size: 15px;
    text-transform: uppercase;
}

h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffc800;
}

h4 {
    font-size: 13px;
}

.h2-box {
    background: rgba(255, 200, 0, 0.1);
    color: snow;
    border-left: 3px solid #ffc800;
    padding-left: 0.75rem;
}

/* Back Button */
.back-button {
    top: 10px;
    left: 10px;
}

.back-button img {
    background: snow;
    border-radius: 50px;
    padding: 2px;
}

/* ==========================================================================
   SVG Symbol Styles (from sohnaris-symbol.component.scss)
   ========================================================================== */

svg.img {
    width: 100%;
    max-width: 100%;
    height: auto;
}

svg.menu {
    width: 100%;
    max-width: 100%;
    max-height: 60vh;
    margin: 9vh auto auto;
    display: block;
}

svg {
    display: block;
}

svg .static-shape:not(.sato),
svg .shape {
    opacity: 0.8;
    fill: #fff;
}

svg .static-shape.sato {
    stroke: #fff;
    stroke-width: 25px;
}

svg .active-shape:not(.sato),
svg .shape:hover {
    fill: #bfa40d;
    opacity: 1;
}

svg .active-shape.sato {
    stroke: #bfa40d;
    stroke-width: 25px;
}

svg .active .shape {
    fill: #bfa40d;
    opacity: 1;
}

svg .shape,
svg .sato-background {
    cursor: help;
}

/* SVG img variant (for part pages) */
svg.img circle,
svg.img path {
    fill: rgba(255, 255, 255, 0.2);
    stroke: none;
}

svg.img circle.active,
svg.img path.active {
    fill: snow;
}

/* Sato is represented by the SVG background itself */
svg.img.sato-active {
    outline: 3px solid snow;
    outline-offset: -3px;
    border-radius: 50%;
}

/* ==========================================================================
   Description Section (from main.scss + sohnaris-part.component.scss)
   ========================================================================== */

#description {
    overflow: visible;
    line-height: 1.8;
    padding-right: 5px;
    padding-bottom: 2rem;
    font-size: 15px;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

@media (min-width: 768px) {
    #description {
        max-height: calc(100vh - 265px);
        overflow: auto;
        padding-bottom: 0;
    }
}

#description p {
    max-width: 65ch;
    white-space: break-spaces;
}

#description b {
    font-weight: 500;
}

/* Details/Summary Accordion (from sohnaris-part.component.scss) */
details {
    font-size: 12px;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 0.5em 0.5em 0;
    white-space: break-spaces;
}

summary {
    font-weight: bold;
    margin: -0.5em -0.5em 0;
    padding: 0.5em;
}

details[open] {
    padding: 0.5em;
}

details[open] summary {
    border-bottom: 1px solid #aaa;
    margin-bottom: 0.5em;
}

/* Quote Styling (from sohnaris-part.component.scss) */
.quote {
    margin-top: 20px;
    padding: 15px;
    border-left: 3px solid #ffc800;
    background: rgba(255, 200, 0, 0.05);
}

.quote b {
    font-size: 15pt;
}

.quote i {
    letter-spacing: 1px;
}

/* ==========================================================================
   Sohnaris Part Icons (from sohnaris-part.component.scss)
   Scoped to span elements to avoid affecting #background
   ========================================================================== */

span.sato {
    font-size: 3em;
    line-height: 1px;
}

span.skalenda {
    font-size: 2em;
    line-height: 1px;
}

span.vodenda {
    font-size: 1.5em;
    line-height: 1px;
}

span.kienda {
    font-size: 1em;
    line-height: 1px;
}

span.duukram {
    display: inline-block;
    transform: rotate(-50deg);
}

span.zatjo {
    display: inline-block;
    transform: rotate(-60deg);
}

span.raos {
    display: inline-block;
    transform: rotate(45deg);
}

span.faehelbek {
    display: inline-block;
    transform: rotate(50deg);
}

span.botjo {
    display: inline-block;
    transform: rotate(60deg);
}

/* Shape Classes */
.circular-arc {
    font-size: 120px;
    line-height: 120px;
    transform: rotate(-45deg);
}

.disk {
    background: snow;
    height: 100px;
    width: 100px;
    border-radius: 100px;
}

.circle {
    border: 10px solid snow;
    height: 100px;
    width: 100px;
    border-radius: 100px;
}

/* ==========================================================================
   Workshop Page - Primordial Symbol Tool
   ========================================================================== */

#workshop {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

/* Header with Tabs */
.workshop-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.workshop-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: color 0.15s ease;
}

.workshop-home:hover {
    color: #ffc800;
}

.workshop-home img {
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease;
}

.workshop-home:hover img {
    transform: scale(1.1);
}

/* Tabs */
.workshop-tabs {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #ffc800;
    background: rgba(255, 200, 0, 0.1);
    border-color: rgba(255, 200, 0, 0.2);
}

.tab-badge {
    display: none;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ffc800;
    color: #000;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    line-height: 18px;
    text-align: center;
}

.tab-badge.visible {
    display: inline-block;
}

/* Tab Content */
.tab-content {
    display: none;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
}

/* Main Tool Area - Centered Vertical Stack */
.workshop-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 1rem;
    min-height: 0;
}

/* Shape Palette - Horizontal above canvas */
.shape-palette {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.shape-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.15s ease;
}

.shape-btn img {
    width: 24px;
    height: 24px;
}

.shape-btn span {
    font-size: 12px;
}

.shape-btn:hover {
    background: rgba(255, 200, 0, 0.15);
    border-color: rgba(255, 200, 0, 0.4);
    color: #ffc800;
}

.shape-btn:active {
    transform: scale(0.97);
}

/* Canvas Container */
.canvas-container {
    flex-shrink: 0;
}

.canvas-wrapper {
    position: relative;
    width: min(45vh, 350px);
    height: min(45vh, 350px);
}

.canvas-wrapper canvas {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 50%;
    cursor: crosshair;
    touch-action: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 40px rgba(0, 0, 0, 0.6);
}

/* Edit Controls - Below Canvas */
.edit-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Shape List (thumbnails) */
.shape-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    min-height: 28px;
}

.shape-list img {
    width: 26px;
    height: 26px;
    padding: 2px;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.shape-list img:hover {
    opacity: 0.8;
}

.shape-list img.selected {
    opacity: 1;
    border-color: #ffc800;
    background: rgba(255, 200, 0, 0.1);
}

/* Controls Row */
.controls-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Export Row */
.export-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Control Buttons */
.ctrl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ctrl-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: snow;
}

.ctrl-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ctrl-btn.btn-primary {
    background: rgba(255, 200, 0, 0.1);
    border-color: rgba(255, 200, 0, 0.25);
    color: #ffc800;
}

.ctrl-btn.btn-primary:hover:not(:disabled) {
    background: rgba(255, 200, 0, 0.2);
    border-color: rgba(255, 200, 0, 0.4);
}

.ctrl-btn.btn-danger:hover:not(:disabled) {
    background: rgba(200, 50, 50, 0.15);
    border-color: rgba(200, 50, 50, 0.3);
    color: #ff6b6b;
}

.ctrl-btn-sm {
    padding: 0.3rem 0.5rem;
    font-size: 11px;
}

/* Curvature Control */
.curvature-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.curvature-control label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.curvature-control input[type="range"] {
    width: 70px;
    accent-color: #ffc800;
}

.curvature-control input[type="range"]:disabled {
    opacity: 0.3;
}

/* Gallery Tab */
.gallery-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow: hidden;
}

.gallery-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.toolbar-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 0.25rem;
}

.gallery-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    overflow-y: auto;
    padding: 0.5rem;
    align-content: start;
}

.gallery-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem;
    color: rgba(255, 255, 255, 0.25);
}

.gallery-empty p {
    margin: 0;
    font-size: 13px;
    text-align: center;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gallery-item svg {
    width: 100%;
    aspect-ratio: 1;
    background: radial-gradient(circle, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 2px solid transparent;
}

.gallery-item svg:hover {
    transform: scale(1.03);
    border-color: rgba(255, 200, 0, 0.3);
}

.gallery-item-actions {
    display: flex;
    gap: 0.25rem;
    width: 100%;
}

.gallery-item-actions button {
    flex: 1;
    padding: 0.4rem;
    font-size: 11px;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item-actions button svg {
    width: 14px;
    height: 14px;
    background: none;
    border: none;
}

/* Generic button styles (used elsewhere) */
.btn {
    padding: 0.5rem 1rem;
    cursor: pointer;
    background: transparent;
    border: 1px solid snow;
    color: snow;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 576px) {
    .workshop-header {
        padding: 0.4rem 0.75rem;
    }

    .workshop-logo img {
        width: 28px;
        height: 28px;
    }

    .tab-btn {
        padding: 0.4rem 0.6rem;
        font-size: 12px;
    }

    .tab-btn span:not(.tab-badge) {
        display: none;
    }

    .shape-btn span {
        display: none;
    }

    .shape-btn {
        padding: 0.5rem;
    }

    .canvas-wrapper {
        width: min(40vh, 280px);
        height: min(40vh, 280px);
    }

    .btn-label {
        display: none;
    }

    .ctrl-btn {
        padding: 0.4rem;
    }

    .curvature-control label {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.75rem;
    }
}

/* ==========================================================================
   Tooltip Styles (from app.component.scss)
   ========================================================================== */

.tooltip {
    position: absolute;
    font-size: 0.75em;
    background-color: #1a1a1a;
    border-style: double;
    border-color: #ffb300;
    border-width: 7px;
    border-radius: 400px;
    z-index: 10000;
    color: #e7ffff;
    padding: 5px 10px;
    width: 250px;
    height: 250px;
    hyphens: auto;
    align-content: center;
}

.tooltip h3, .tooltip .h3 {
    font-family: "Marhey", cursive;
    text-transform: uppercase;
    text-align: center;
    font-size: 1.3em;
    color: #ffb300;
    letter-spacing: 3px;
}

.tooltip h4, .tooltip .h4 {
    text-align: center;
    font-size: 1.5em;
    font-family: monospace;
    margin-top: 0;
    text-transform: capitalize;
    letter-spacing: 1px;
}

.tooltip p {
    font-size: 1.4em;
    font-family: monospace;
    text-align: center;
}

/* ==========================================================================
   Spacing Utilities (Bootstrap-style)
   ========================================================================== */

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 0.25rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mt-5 {
    margin-top: 3rem !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.my-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.my-1 {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

.my-2 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.my-3 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.pt-2 {
    padding-top: 0.5rem !important;
}

.pt-3 {
    padding-top: 1rem !important;
}

.pt-5 {
    padding-top: 3rem !important;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.pb-2 {
    padding-bottom: 0.5rem !important;
}

.pb-3 {
    padding-bottom: 1rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.mx-3 {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */

.d-none {
    display: none !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.justify-content-center {
    justify-content: center !important;
}

.align-content-around {
    align-content: space-around !important;
}

.gap-1 {
    gap: 0.25rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media (max-width: 576px) {
    .shape-panel-horizontal .btn {
        flex: 1 1 auto;
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    .shape-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 100%;
        padding-bottom: 10px;
    }
}

@media (min-width: 768px) {
    svg.menu {
        width: 60vw;
    }

    /* Responsive spacing utilities - md */
    .mt-md-0 {
        margin-top: 0 !important;
    }

    .mt-md-3 {
        margin-top: 1rem !important;
    }

    .mt-md-4 {
        margin-top: 1.5rem !important;
    }

    .mt-md-5 {
        margin-top: 3rem !important;
    }

    .mb-md-0 {
        margin-bottom: 0 !important;
    }

    .mb-md-3 {
        margin-bottom: 1rem !important;
    }

    .mb-md-5 {
        margin-bottom: 3rem !important;
    }

    /* Responsive display utilities - md */
    .d-md-none {
        display: none !important;
    }

    .d-md-block {
        display: block !important;
    }

    .d-md-inline {
        display: inline !important;
    }

    .d-md-inline-block {
        display: inline-block !important;
    }
}

@media (min-width: 991px) {
    h1 {
        font-size: 38px;
    }

    h2, .h2 {
        font-size: 19px;
    }

    h3 {
        font-size: 18px;
    }

    details {
        font-size: 16px;
    }

    .text-lg-start {
        text-align: left !important;
    }

    .text-lg-end {
        text-align: right !important;
    }
}

@media (min-width: 992px) {
    .d-lg-inline {
        display: inline !important;
    }

    .d-lg-none {
        display: none !important;
    }

    .d-lg-block {
        display: block !important;
    }

    /* Responsive spacing utilities - lg */
    .mt-lg-4 {
        margin-top: 1.5rem !important;
    }

    /* Responsive order utilities - lg */
    .order-lg-2 {
        order: 2 !important;
    }
}

/* ==========================================================================
   Breadcrumb Navigation
   ========================================================================== */

.breadcrumb {
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 12px;
    gap: 0.5rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: ">";
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #ffc800;
    border-bottom: none;
}

.breadcrumb li:last-child span {
    color: #ffc800;
    font-weight: 500;
}

/* ==========================================================================
   Domain Badge (Part Pages)
   ========================================================================== */

.domain-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
    overflow: hidden;
}

.domain-icon {
    font-size: 2.5em;
    line-height: 1;
}

.domain-info {
    flex: 1;
}

.domain-title {
    margin: 0 0 0.25rem 0;
    font-size: 16px;
}

.domain-label {
    font-size: 12px;
    color: #ffc800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   Content Cards (Part Pages)
   ========================================================================== */

.content-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    max-width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
    border-color: rgba(255, 200, 0, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.content-card .card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-card .card-header h4 {
    margin: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-card .card-body {
    padding: 1rem;
    font-size: 14px;
    line-height: 1.6;
}

/* ==========================================================================
   Section Numbers
   ========================================================================== */

.section-number {
    display: inline-block;
    font-family: monospace;
    font-size: 11px;
    color: #ffc800;
    background: rgba(255, 200, 0, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    min-width: 28px;
    text-align: center;
}

.h2-box .section-number {
    margin-right: 0.75rem;
    background: rgba(255, 200, 0, 0.15);
}

/* ==========================================================================
   Featured Quote (Part Pages)
   ========================================================================== */

.featured-quote {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 200, 0, 0.1) 0%, rgba(255, 200, 0, 0.05) 100%);
    border-left: 4px solid #ffc800;
    border-radius: 0 8px 8px 0;
    position: relative;
    text-align: center;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.featured-quote .quote-mark {
    font-size: 2rem;
    color: #ffc800;
    line-height: 1;
    vertical-align: top;
}

.featured-quote .quote-text {
    display: inline;
    font-style: italic;
    font-size: 15px;
    letter-spacing: 0.5px;
    line-height: 1.8;
    margin: 0 0.5rem;
}

/* ==========================================================================
   Part Navigation (Prev/Next)
   ========================================================================== */

.part-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.part-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 13px;
}

.part-nav-link:hover {
    background: rgba(255, 200, 0, 0.1);
    border-color: rgba(255, 200, 0, 0.3);
    border-bottom: 1px solid rgba(255, 200, 0, 0.3);
}

.part-nav-link .nav-arrow {
    font-size: 1.2em;
    color: #ffc800;
}

.part-nav-link .nav-label {
    text-transform: uppercase;
    letter-spacing: 1px;
}

.part-nav-placeholder {
    width: 100px;
}

/* ==========================================================================
   Related Concepts (Part Pages)
   ========================================================================== */

.related-concepts {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.related-concepts h4 {
    margin: 0 0 1rem 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

.related-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.related-item:hover {
    background: rgba(255, 200, 0, 0.1);
    border-color: rgba(255, 200, 0, 0.3);
    border-bottom: 1px solid rgba(255, 200, 0, 0.3);
}

.related-icon {
    font-size: 1em;
}

.related-name {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   TOC Sidebar (Knowledge Pages)
   ========================================================================== */

.toc-sidebar {
    position: sticky;
    top: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.toc-title {
    margin: 0 0 1rem 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.5rem;
}

.toc-link {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.toc-link:hover {
    color: snow;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: none;
}

.toc-link.active {
    color: #ffc800;
    background: rgba(255, 200, 0, 0.1);
    border-left-color: #ffc800;
}

.toc-number {
    font-family: monospace;
    font-size: 10px;
    color: #ffc800;
    min-width: 20px;
}

.toc-text {
    flex: 1;
    line-height: 1.3;
}

/* ==========================================================================
   Continue Reading (Knowledge Pages)
   ========================================================================== */

.continue-reading {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.continue-reading h4 {
    margin: 0 0 1rem 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
}

.continue-reading-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.continue-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.continue-link:hover {
    background: rgba(255, 200, 0, 0.1);
    border-color: rgba(255, 200, 0, 0.3);
    border-bottom: 1px solid rgba(255, 200, 0, 0.3);
}

.continue-arrow {
    color: #ffc800;
    font-size: 1.2em;
}

.continue-title {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
}

.continue-reading-cta {
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(255, 200, 0, 0.05);
    border: 1px solid rgba(255, 200, 0, 0.2);
    border-radius: 8px;
}

/* ==========================================================================
   Component Groups (Components Page)
   ========================================================================== */

#components {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 3rem;
}

.component-section {
    margin-bottom: 2.5rem;
}

.component-group {
    text-align: center;
    padding: 1rem 0;
}

.group-header {
    margin: 0 0 0.5rem 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffc800;
}

.group-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: 500px;
    margin: 0 auto;
}

/* Sato Featured Card */
.sato-featured-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 200, 0, 0.08) 0%, rgba(0, 0, 0, 0.3) 100%);
    border: 1px solid rgba(255, 200, 0, 0.2);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sato-featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255, 200, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.sato-featured-card:hover {
    border-color: rgba(255, 200, 0, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.sato-visual {
    flex-shrink: 0;
}

.sato-symbol {
    width: 100px;
    height: 100px;
    color: rgba(255, 200, 0, 0.6);
    animation: sato-pulse 4s ease-in-out infinite;
}

@keyframes sato-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.sato-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.sato-content .component-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.sato-content h2 {
    margin: 0 0 0.25rem 0;
    font-size: 1.75rem;
}

.sato-subtitle {
    margin: 0 0 0.75rem 0;
    font-size: 14px;
    color: #ffc800;
}

.sato-desc {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Component Grids */
.component-grid {
    display: grid;
    gap: 1rem;
}

.spheres-grid {
    grid-template-columns: repeat(3, 1fr);
}

.arcs-grid {
    grid-template-columns: repeat(6, 1fr);
}

/* First row: 3 items spanning 2 columns each */
.arcs-grid .component-card:nth-child(1),
.arcs-grid .component-card:nth-child(2),
.arcs-grid .component-card:nth-child(3) {
    grid-column: span 2;
}

/* Second row: 2 items centered (offset by 1 column on each side) */
.arcs-grid .component-card:nth-child(4) {
    grid-column: 2 / 4;
}

.arcs-grid .component-card:nth-child(5) {
    grid-column: 4 / 6;
}

/* Component Cards */
.component-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.component-card:hover {
    background: rgba(255, 200, 0, 0.05);
    border-color: rgba(255, 200, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.component-icon {
    font-size: 1.75rem;
    min-width: 45px;
    text-align: center;
    color: #ffc800;
}

.component-info {
    flex: 1;
    min-width: 0;
}

.component-info h2 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.component-info p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sato-featured-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .sato-symbol {
        width: 80px;
        height: 80px;
    }

    .spheres-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .spheres-grid .component-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 60%;
        margin: 0 auto;
    }

    .arcs-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .arcs-grid .component-card:nth-child(1),
    .arcs-grid .component-card:nth-child(2) {
        grid-column: span 2;
    }

    .arcs-grid .component-card:nth-child(3),
    .arcs-grid .component-card:nth-child(4),
    .arcs-grid .component-card:nth-child(5) {
        grid-column: span 2;
    }

    .arcs-grid .component-card:nth-child(4) {
        grid-column: 1 / 3;
    }

    .arcs-grid .component-card:nth-child(5) {
        grid-column: 3 / 5;
    }
}

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

    .spheres-grid .component-card:nth-child(3) {
        max-width: 100%;
    }

    .arcs-grid {
        grid-template-columns: 1fr;
    }

    .arcs-grid .component-card {
        grid-column: auto !important;
    }

    .component-info p {
        white-space: normal;
    }
}

/* ==========================================================================
   Martial Arts Page
   ========================================================================== */

.martial-arts-intro {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 65ch;
}

.martial-arts-group {
    margin-bottom: 2rem;
}

.martial-arts-group .group-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffc800;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 200, 0, 0.2);
}

.martial-arts-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.martial-arts-card:hover {
    background: rgba(255, 200, 0, 0.05);
    border-color: rgba(255, 200, 0, 0.2);
}

.martial-arts-card .card-icon {
    flex-shrink: 0;
    width: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0.25rem;
}

.martial-arts-card .card-icon .component-icon {
    font-size: 1.5rem;
    color: #ffc800;
}

.martial-arts-card .card-content {
    flex: 1;
    min-width: 0;
}

.martial-arts-card .card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: snow;
}

.martial-arts-card .card-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    white-space: break-spaces;
}

@media (max-width: 576px) {
    .martial-arts-card {
        flex-direction: column;
        text-align: center;
    }

    .martial-arts-card .card-icon {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #0a0a0a;
    color: snow;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    font-size: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffc800;
    border-bottom: none;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
}

.language-switcher {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lang-active {
    color: #ffc800;
    font-weight: 500;
}

.lang-separator {
    color: rgba(255, 255, 255, 0.3);
}

.lang-link {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.lang-link:hover {
    color: snow;
    border-bottom: none;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.brand-name {
    font-family: "Marhey", cursive;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================================================
   Inline Content Links (in-text references to other pages)
   ========================================================================== */

#description a.content-link {
    color: #ffc800;
    border-bottom: 1px solid rgba(255, 200, 0, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}

#description a.content-link:hover {
    color: #ffe066;
    border-bottom-color: #ffe066;
}

/* ==========================================================================
   Knowledge Section Styles
   ========================================================================== */

.knowledge-section {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.knowledge-section:last-child {
    border-bottom: none;
}

/* Workshop CTA (Spirituality Page) */
.workshop-cta {
    margin-top: 1.5rem;
}

.workshop-cta-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 200, 0, 0.08) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: 1px solid rgba(255, 200, 0, 0.2);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.workshop-cta-link:hover {
    background: linear-gradient(135deg, rgba(255, 200, 0, 0.15) 0%, rgba(0, 0, 0, 0.3) 100%);
    border-color: rgba(255, 200, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.workshop-cta-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.workshop-cta-icon img {
    width: 32px;
    height: 32px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.workshop-cta-link:hover .workshop-cta-icon img {
    opacity: 1;
}

.workshop-cta-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.workshop-cta-title {
    font-size: 14px;
    font-weight: 500;
    color: #ffc800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.workshop-cta-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.primordial-shapes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.primordial-shape {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
}

.primordial-shape-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.primordial-shape-visual {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.primordial-shape-visual svg {
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

.primordial-shape h3 {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    color: #ffc800;
}

.primordial-shape p {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   Responsive Adjustments for New Components
   ========================================================================== */

@media (max-width: 767px) {
    .container {
        padding-bottom: 2rem;
    }

    .domain-badge {
        flex-direction: column;
        text-align: center;
    }

    .part-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .part-nav-link {
        width: 100%;
        justify-content: center;
    }

    .part-nav-placeholder {
        display: none;
    }

    .related-list {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-separator {
        display: none;
    }

    .breadcrumb ol {
        justify-content: center;
    }

    .page-content {
        padding-bottom: 2rem;
    }
}

@media (min-width: 992px) {
    .content-card .card-body {
        font-size: 16px;
        line-height: 1.8;
    }

    .featured-quote .quote-text {
        font-size: 17px;
    }

    #description {
        font-size: 16px;
        line-height: 1.9;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}
