      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      html {
        scroll-behavior: smooth;
      }

      html,
      body {
        overflow-x: hidden;
      }

      body {
        font-family:
          "Inter",
          -apple-system,
          BlinkMacSystemFont,
          sans-serif;
        background: #191919;
        min-height: 100vh;
        color: #fafaf7;
        position: relative;
      }

      /* Language switcher */
      .lang-switcher {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 100;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        background: #262625;
        border: 1px solid #40403e;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
      }

      .lang-switcher:hover {
        background: #40403e;
      }

      /* Top navigation bar */
      .top-nav {
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 6px;
        background: rgba(38, 38, 37, 0.9);
        backdrop-filter: blur(10px);
        border: 1px solid #40403e;
        border-radius: 24px;
      }

      .nav-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 16px;
        background: transparent;
        border: none;
        border-radius: 18px;
        font-size: 0.85rem;
        font-weight: 600;
        color: #bfbfba;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.2s ease;
      }

      .nav-btn:hover {
        background: rgba(204, 120, 92, 0.15);
        color: #ebdbbc;
      }

      .nav-btn svg {
        width: 16px;
        height: 16px;
      }

      .nav-btn.highlight {
        background: rgba(204, 120, 92, 0.2);
        color: #cc785c;
      }

      .nav-btn.highlight:hover {
        background: rgba(204, 120, 92, 0.3);
      }

      @media (max-width: 768px) {
        .top-nav {
          top: 12px;
          padding: 4px;
          gap: 6px;
        }

        .nav-btn {
          padding: 6px 12px;
          font-size: 0.8rem;
        }

        .nav-btn span.hide-mobile {
          display: none;
        }
      }

      .lang-switcher svg {
        width: 18px;
        height: 18px;
        opacity: 0.8;
      }

      .lang-switcher span {
        font-size: 0.85rem;
        font-weight: 500;
        color: #ebdbbc;
      }

      /* Ambient glow effects */
      .ambient-glow {
        position: fixed;
        border-radius: 50%;
        filter: blur(120px);
        pointer-events: none;
        z-index: 0;
      }

      .glow-1 {
        width: 800px;
        height: 800px;
        background: radial-gradient(
          circle,
          rgba(204, 120, 92, 0.12) 0%,
          transparent 70%
        );
        top: -300px;
        right: -200px;
      }

      .glow-2 {
        width: 600px;
        height: 600px;
        background: radial-gradient(
          circle,
          rgba(212, 162, 127, 0.08) 0%,
          transparent 70%
        );
        bottom: -200px;
        left: -150px;
      }

      .glow-3 {
        width: 500px;
        height: 500px;
        background: radial-gradient(
          circle,
          rgba(235, 219, 188, 0.05) 0%,
          transparent 70%
        );
        top: 50%;
        left: 30%;
      }

      /* Card surface */
      .liquid-glass {
        background: #262625;
        border: 1px solid #40403e;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
      }

      /* Floating books */
      .floating-book {
        position: fixed;
        pointer-events: none;
        z-index: 1;
      }

      .book {
        width: var(--book-width, 80px);
        height: var(--book-height, 110px);
        background: linear-gradient(
          135deg,
          var(--book-color-1) 0%,
          var(--book-color-2) 100%
        );
        border-radius: 4px 12px 12px 4px;
        box-shadow:
          -4px 0 0 var(--book-spine, #333),
          0 15px 50px rgba(0, 0, 0, 0.4);
        transform: rotate(var(--rotation, 0deg));
        position: relative;
      }

      .book::before {
        content: "";
        position: absolute;
        left: 10px;
        top: 18px;
        right: 18px;
        height: 4px;
        background: rgba(255, 255, 255, 0.35);
        border-radius: 2px;
      }

      .book::after {
        content: "";
        position: absolute;
        left: 10px;
        top: 28px;
        width: 55%;
        height: 3px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 2px;
      }

      /* Book positions */
      .book-1 {
        top: 12%;
        left: 6%;
        --book-width: 75px;
        --book-height: 100px;
        --book-color-1: #cc785c;
        --book-color-2: #a85e45;
        --book-spine: #8a4a36;
        --rotation: -12deg;
        filter: blur(2px);
        opacity: 0.5;
        animation: float1 9s ease-in-out infinite;
      }
      .book-2 {
        top: 22%;
        right: 8%;
        --book-width: 95px;
        --book-height: 125px;
        --book-color-1: #d4a27f;
        --book-color-2: #b8886a;
        --book-spine: #9a7058;
        --rotation: 10deg;
        opacity: 0.55;
        animation: float2 10s ease-in-out infinite;
      }
      .book-3 {
        bottom: 28%;
        left: 4%;
        --book-width: 88px;
        --book-height: 118px;
        --book-color-1: #40403e;
        --book-color-2: #333331;
        --book-spine: #262625;
        --rotation: -6deg;
        opacity: 0.5;
        animation: float3 8s ease-in-out infinite;
      }
      .book-4 {
        bottom: 18%;
        right: 6%;
        --book-width: 68px;
        --book-height: 92px;
        --book-color-1: #ebdbbc;
        --book-color-2: #d4a27f;
        --book-spine: #b8886a;
        --rotation: 18deg;
        filter: blur(3px);
        opacity: 0.4;
        animation: float4 11s ease-in-out infinite;
      }
      .book-5 {
        top: 55%;
        left: 10%;
        --book-width: 58px;
        --book-height: 78px;
        --book-color-1: #91918d;
        --book-color-2: #666663;
        --book-spine: #40403e;
        --rotation: 8deg;
        filter: blur(4px);
        opacity: 0.35;
        animation: float5 12s ease-in-out infinite;
      }
      .book-6 {
        top: 8%;
        right: 22%;
        --book-width: 62px;
        --book-height: 88px;
        --book-color-1: #cc785c;
        --book-color-2: #d4a27f;
        --book-spine: #a85e45;
        --rotation: -22deg;
        filter: blur(1px);
        opacity: 0.5;
        animation: float6 9.5s ease-in-out infinite;
      }

      @keyframes float1 {
        0%,
        100% {
          transform: translateY(0) rotate(-12deg);
        }
        50% {
          transform: translateY(-22px) rotate(-9deg);
        }
      }
      @keyframes float2 {
        0%,
        100% {
          transform: translateY(0) rotate(10deg);
        }
        50% {
          transform: translateY(-28px) rotate(13deg);
        }
      }
      @keyframes float3 {
        0%,
        100% {
          transform: translateY(0) rotate(-6deg);
        }
        50% {
          transform: translateY(-20px) rotate(-3deg);
        }
      }
      @keyframes float4 {
        0%,
        100% {
          transform: translateY(0) rotate(18deg);
        }
        50% {
          transform: translateY(-25px) rotate(15deg);
        }
      }
      @keyframes float5 {
        0%,
        100% {
          transform: translateY(0) rotate(8deg);
        }
        50% {
          transform: translateY(-18px) rotate(11deg);
        }
      }
      @keyframes float6 {
        0%,
        100% {
          transform: translateY(0) rotate(-22deg);
        }
        50% {
          transform: translateY(-24px) rotate(-19deg);
        }
      }

      /* Main sections */
      section {
        position: relative;
        z-index: 10;
      }

      /* Hero Section */
      .hero {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 80px 20px 60px;
        text-align: center;
      }

      /* Calcifer mascot — canvas hosts the JS-rendered animated Calcifer.
         Bob, flicker, and breathing happen inside the canvas (see calcifer.js),
         so no CSS animation is needed here. */
      .mascot {
        width: 300px;
        height: 300px;
        margin-bottom: 8px;
      }

      .mascot canvas,
      .mascot img {
        width: 100%;
        height: 100%;
        display: block;
      }

      /* Hero text */
      .hero-text {
        max-width: 700px;
      }

      .tagline {
        font-size: 0.9rem;
        font-weight: 700;
        color: #cc785c;
        text-transform: uppercase;
        letter-spacing: 4px;
        margin-bottom: 16px;
      }

      h1 {
        font-size: clamp(2.5rem, 6vw, 4rem);
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 20px;
        background: linear-gradient(
          135deg,
          #fafaf7 0%,
          #ebdbbc 40%,
          #d4a27f 100%
        );
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }

      .subtitle {
        font-size: 1.2rem;
        color: #bfbfba;
        line-height: 1.7;
        margin-bottom: 12px;
        max-width: 550px;
        margin-left: auto;
        margin-right: auto;
      }

      .compatibility {
        font-size: 0.9rem;
        color: #d4a27f;
        margin-bottom: 36px;
      }

      /* CTA Section */
      .cta-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
      }

      .app-store-badge {
        display: block;
        transition: all 0.3s ease;
      }

      .app-store-badge:hover {
        transform: scale(1.05);
      }

      .app-store-badge img {
        height: 58px;
        width: auto;
      }

      .free-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 20px;
        background: rgba(120, 186, 101, 0.15);
        border: 1px solid rgba(120, 186, 101, 0.3);
        border-radius: 30px;
        font-size: 0.9rem;
        font-weight: 600;
        color: #ebdbbc;
      }

      .free-badge svg {
        width: 18px;
        height: 18px;
      }

      /* Screenshots Section */
      .screenshots-section {
        padding: 80px 20px;
        overflow: hidden;
      }

      .section-header {
        text-align: center;
        margin-bottom: 50px;
      }

      .section-header h2 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        font-weight: 700;
        margin-bottom: 12px;
        background: linear-gradient(135deg, #fafaf7 0%, #ebdbbc 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }

      .section-header p {
        font-size: 1.1rem;
        color: #91918d;
      }

      .screenshots-wrapper {
        display: flex;
        justify-content: center;
        gap: 24px;
        flex-wrap: wrap;
        max-width: 1400px;
        margin: 0 auto;
      }

      .screenshot {
        flex: 0 0 auto;
        width: 240px;
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
        transition: transform 0.4s ease;
      }

      .screenshot:hover {
        transform: translateY(-10px) scale(1.02);
      }

      .screenshot img {
        width: 100%;
        height: auto;
        display: block;
      }

      /* Features Section */
      .features-section {
        padding: 80px 20px 100px;
      }

      .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
        max-width: 1100px;
        margin: 0 auto;
      }

      .feature-card {
        border-radius: 24px;
        padding: 32px 28px;
        text-align: center;
        transition: transform 0.3s ease;
      }

      .feature-card:hover {
        transform: translateY(-6px);
      }

      .feature-icon {
        font-size: 2.8rem;
        margin-bottom: 18px;
      }

      .feature-card h3 {
        font-size: 1.15rem;
        font-weight: 700;
        margin-bottom: 10px;
        color: #fafaf7;
      }

      .feature-card p {
        font-size: 0.95rem;
        color: #bfbfba;
        line-height: 1.6;
      }

      /* Social Section */
      .social-section {
        padding: 60px 20px;
        text-align: center;
      }

      .social-title {
        font-size: 1.1rem;
        color: #91918d;
        margin-bottom: 24px;
      }

      .social-links {
        display: flex;
        justify-content: center;
        gap: 20px;
      }

      .social-link {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 24px;
        border-radius: 16px;
        text-decoration: none;
        color: #fafaf7;
        font-weight: 600;
        font-size: 1rem;
        transition: all 0.3s ease;
      }

      .social-link:hover {
        transform: translateY(-3px);
      }

      .social-link svg {
        width: 24px;
        height: 24px;
      }

      .social-link.instagram {
        background: linear-gradient(
          135deg,
          #833ab4 0%,
          #e1306c 50%,
          #f77737 100%
        );
      }

      .social-link.tiktok {
        background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
      }

      /* Forum card - primary community link */
      .social-link.forum {
        background: linear-gradient(135deg, #cc785c 0%, #b56849 100%);
        padding: 18px 32px;
        font-size: 1.05rem;
        box-shadow: 0 4px 18px rgba(204, 120, 92, 0.25);
      }

      .social-link.forum:hover {
        box-shadow: 0 8px 24px rgba(204, 120, 92, 0.35);
      }

      .social-link.forum svg {
        width: 26px;
        height: 26px;
      }

      .forum-subtitle {
        display: block;
        font-size: 0.78rem;
        font-weight: 400;
        opacity: 0.9;
        margin-top: 2px;
      }

      /* Articles Section */
      .articles-section {
        padding: 80px 20px;
      }

      .articles-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 24px;
        max-width: 1100px;
        margin: 0 auto;
      }

      .article-card {
        border-radius: 20px;
        overflow: hidden;
        transition: transform 0.3s ease;
        cursor: pointer;
        text-decoration: none;
        display: block;
      }

      .article-card:hover {
        transform: translateY(-6px);
      }

      .article-header {
        padding: 28px 24px 20px;
        position: relative;
      }

      .article-emoji {
        font-size: 2.5rem;
        margin-bottom: 16px;
        display: block;
      }

      .article-tag {
        display: inline-block;
        padding: 4px 12px;
        background: rgba(204, 120, 92, 0.2);
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        color: #d4a27f;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 12px;
      }

      .article-tag.trend-tag {
        background: rgba(191, 77, 67, 0.2);
        color: #bf4d43;
      }

      .article-card h3 {
        font-size: 1.2rem;
        font-weight: 700;
        color: #fafaf7;
        margin-bottom: 10px;
        line-height: 1.3;
      }

      .article-card p {
        font-size: 0.95rem;
        color: #bfbfba;
        line-height: 1.6;
      }

      .article-read-more {
        padding: 16px 24px;
        border-top: 1px solid #40403e;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.9rem;
        font-weight: 600;
        color: #cc785c;
      }

      .article-read-more svg {
        width: 16px;
        height: 16px;
        transition: transform 0.2s ease;
      }

      .article-card:hover .article-read-more svg {
        transform: translateX(4px);
      }

      .view-all-articles {
        display: inline-block;
        color: #cc785c;
        text-decoration: none;
        font-weight: 600;
        font-size: 1rem;
        padding: 12px 24px;
        border: 1px solid #40403e;
        border-radius: 12px;
        transition: all 0.2s ease;
      }
      .view-all-articles:hover {
        background: rgba(204, 120, 92, 0.1);
        border-color: #cc785c;
      }

      /* Article Page Styles */
      .article-page {
        max-width: 720px;
        margin: 0 auto;
        padding: 100px 24px 60px;
      }

      .article-page .back-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #cc785c;
        text-decoration: none;
        font-weight: 500;
        margin-bottom: 32px;
        transition: gap 0.2s ease;
      }

      .article-page .back-link:hover {
        gap: 12px;
      }

      .article-page .back-link svg {
        width: 18px;
        height: 18px;
      }

      .article-page h1 {
        font-size: clamp(2rem, 5vw, 2.8rem);
        margin-bottom: 16px;
        line-height: 1.2;
      }

      .article-page .article-meta {
        color: #91918d;
        font-size: 0.9rem;
        margin-bottom: 40px;
      }

      .article-page .article-content {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #e5e4df;
      }

      .article-page .article-content h2 {
        font-size: 1.5rem;
        color: #fafaf7;
        margin: 48px 0 20px;
        background: linear-gradient(135deg, #fafaf7 0%, #ebdbbc 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }

      .article-page .article-content p {
        margin-bottom: 24px;
      }

      .article-page .article-content strong {
        color: #fafaf7;
      }

      .article-page .article-content ul,
      .article-page .article-content ol {
        margin: 24px 0;
        padding-left: 24px;
      }

      .article-page .article-content li {
        margin-bottom: 12px;
      }

      .article-page .article-content blockquote {
        margin: 28px 0;
        padding: 16px 24px;
        border-left: 3px solid #cc785c;
        background: rgba(204, 120, 92, 0.06);
        border-radius: 0 12px 12px 0;
        color: #ebdbbc;
        font-style: italic;
      }
      .article-page .article-content blockquote p {
        margin: 0;
      }

      .article-page .article-content code {
        font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, monospace;
        font-size: 0.92em;
        color: #ebdbbc;
        background: #1f1f1e;
        padding: 1px 6px;
        border-radius: 4px;
      }

      .article-page .article-content pre {
        background: #1a1a19;
        border: 1px solid #40403e;
        border-radius: 12px;
        padding: 18px 22px;
        margin: 28px 0;
        overflow-x: auto;
        font-size: 0.9rem;
        line-height: 1.6;
      }
      .article-page .article-content pre code {
        background: transparent;
        padding: 0;
        border-radius: 0;
        color: #e5e4df;
        font-size: 1em;
      }
      /* Chroma-rendered code blocks come wrapped in .highlight, normalize the wrapping margins */
      .article-page .article-content .highlight {
        margin: 28px 0;
      }
      .article-page .article-content .highlight pre {
        margin: 0;
      }

      .article-page .highlight-box {
        background: rgba(204, 120, 92, 0.1);
        border-left: 4px solid #cc785c;
        padding: 20px 24px;
        border-radius: 0 12px 12px 0;
        margin: 32px 0;
      }

      .article-page .highlight-box p {
        margin: 0;
        color: #ebdbbc;
      }

      .article-page .speem-callout {
        background: #262625;
        border: 1px solid #40403e;
        border-radius: 16px;
        padding: 28px;
        margin: 40px 0;
        text-align: center;
      }

      .article-page .speem-callout h3 {
        font-size: 1.2rem;
        color: #fafaf7;
        margin-bottom: 12px;
      }

      .article-page .speem-callout p {
        margin-bottom: 20px;
        color: #bfbfba;
      }

      /* Inline body links inside articles */
      .article-page .article-content a {
        color: #cc785c;
        text-decoration: underline;
        text-underline-offset: 3px;
      }
      .article-page .article-content a:hover { text-decoration: none; }

      /* Inline CTA button (used inside speem-callout, etc.) — qualified with
         .article-content so it beats the body-link rule's specificity. */
      .article-page .article-content .cta-button {
        display: inline-block;
        padding: 14px 28px;
        background: #cc785c;
        color: #fafaf7;
        text-decoration: none;
        border-radius: 12px;
        font-weight: 600;
        transition: transform 0.2s ease;
      }
      .article-page .article-content .cta-button:hover {
        transform: scale(1.05);
        text-decoration: none;
      }

      /* "More articles" section at the bottom of each post */
      .article-page .more-articles {
        margin-top: 60px;
        padding-top: 40px;
        border-top: 1px solid #40403e;
      }
      .article-page .more-articles h2 {
        font-size: 1.3rem;
        color: #fafaf7;
        margin-bottom: 24px;
      }
      .article-page .more-articles-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
      }
      .article-page .more-article-card {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
        background: #262625;
        border: 1px solid #40403e;
        border-radius: 12px;
        text-decoration: none;
        color: inherit;
        transition: transform 0.2s ease, border-color 0.2s ease;
      }
      .article-page .more-article-card:hover {
        transform: translateY(-2px);
        border-color: #cc785c;
      }
      .article-page .more-article-emoji {
        font-size: 1.8rem;
        flex-shrink: 0;
      }
      .article-page .more-article-card h4 {
        color: #fafaf7;
        font-size: 1rem;
        margin-bottom: 4px;
        line-height: 1.3;
      }
      .article-page .more-article-card p {
        color: #91918d;
        font-size: 0.9rem;
        margin: 0;
        line-height: 1.5;
      }

      @media (max-width: 768px) {
        .articles-grid {
          grid-template-columns: 1fr;
          max-width: 400px;
        }

        .article-page {
          padding: 80px 20px 40px;
        }

        .article-page .article-content {
          font-size: 1rem;
        }
      }

      /* Footer */
      footer {
        position: relative;
        z-index: 10;
        text-align: center;
        padding: 40px 20px 30px;
        border-top: 1px solid #40403e;
      }

      .footer-links {
        display: flex;
        justify-content: center;
        gap: 32px;
        margin-bottom: 24px;
        flex-wrap: wrap;
      }

      .footer-links a {
        font-size: 0.9rem;
        color: #91918d;
        text-decoration: none;
        transition: color 0.2s ease;
      }

      .footer-links a:hover {
        color: #ebdbbc;
      }

      .footer-tagline {
        font-size: 1rem;
        color: #bfbfba;
        letter-spacing: 0.5px;
      }

      .speem-formula {
        font-family: "SF Mono", "Menlo", "Monaco", monospace;
      }

      .speem-formula .speed {
        color: #ebdbbc;
      }

      .speem-formula .crossed {
        text-decoration: line-through;
        opacity: 0.5;
      }

      .speem-formula .mastery {
        color: #61aaf2;
      }

      .speem-formula .speem {
        color: #cc785c;
        font-weight: 600;
      }

      /* Responsive */
      @media (max-width: 768px) {
        .floating-book {
          transform: scale(0.6);
        }

        .book-4,
        .book-5,
        .book-6 {
          display: none;
        }

        .mascot {
          width: 160px;
          height: 160px;
        }

        .hero {
          padding: 100px 20px 60px;
        }

        .subtitle {
          font-size: 1.05rem;
        }

        .screenshot {
          width: 180px;
        }

        .screenshots-wrapper {
          gap: 16px;
        }

        .features-grid {
          grid-template-columns: 1fr;
          max-width: 400px;
        }

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

        .lang-switcher {
          top: 12px;
          right: 12px;
          padding: 6px 12px;
        }
      }

      @media (max-width: 480px) {
        .screenshot {
          width: 150px;
        }
      }

      /* RTL (Arabic) specific styles */
      html[dir="rtl"] {
        font-family:
          "Inter",
          -apple-system,
          BlinkMacSystemFont,
          "SF Arabic",
          "Noto Naskh Arabic",
          sans-serif;
      }

      html[dir="rtl"] .lang-switcher {
        right: auto;
        left: 20px;
      }

      @media (max-width: 768px) {
        html[dir="rtl"] .lang-switcher {
          left: 12px;
          right: auto;
        }
      }

      html[dir="rtl"] .article-read-more svg {
        transform: scaleX(-1);
      }

      html[dir="rtl"] .article-card:hover .article-read-more svg {
        transform: scaleX(-1) translateX(4px);
      }

      html[dir="rtl"] .back-link svg {
        transform: scaleX(-1);
      }

      html[dir="rtl"] .book {
        border-radius: 12px 4px 4px 12px;
        box-shadow:
          4px 0 0 var(--book-spine, #333),
          0 15px 50px rgba(0, 0, 0, 0.4);
      }

      html[dir="rtl"] .book::before,
      html[dir="rtl"] .book::after {
        left: auto;
        right: 10px;
      }

      /* Section index pages (/articles/, /journal/) */
      .list-page {
        max-width: 1200px;
        margin: 0 auto;
        padding: 100px 24px 60px;
        position: relative;
        z-index: 2;
      }
      .list-page .back-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #cc785c;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
        margin-bottom: 32px;
        transition: gap 0.2s ease;
      }
      .list-page .back-link:hover { gap: 12px; }
      .list-page .back-link svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
      }
      .list-page .section-header {
        margin-bottom: 40px;
        text-align: center;
      }
      @media (max-width: 768px) {
        .list-page { padding: 80px 20px 40px; }
      }

      /* Legal pages (privacy, terms, cookies, support) */
      .legal-container {
        max-width: 820px;
        margin: 0 auto;
        padding: 100px 24px 60px;
        position: relative;
        z-index: 2;
      }
      .legal-container .back-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #cc785c;
        text-decoration: none;
        font-size: 0.9rem;
        margin-bottom: 32px;
        transition: gap 0.2s ease;
      }
      .legal-container .back-link:hover { gap: 12px; }
      .legal-container .back-link svg { width: 18px; height: 18px; }
      .legal-container h1 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 12px;
        background: linear-gradient(135deg, #fafaf7 0%, #ebdbbc 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }
      .legal-container .last-updated {
        color: #91918d;
        font-size: 0.9rem;
        margin-bottom: 40px;
      }
      .legal-content {
        background: #262625;
        border: 1px solid #40403e;
        border-radius: 24px;
        padding: 40px;
      }
      .legal-content h2 {
        font-size: 1.3rem;
        font-weight: 600;
        margin: 32px 0 16px;
        color: #d4a27f;
      }
      .legal-content h2:first-child { margin-top: 0; }
      .legal-content h3 {
        font-size: 1.05rem;
        font-weight: 600;
        margin: 24px 0 12px;
        color: #ebdbbc;
      }
      .legal-content p,
      .legal-content li {
        color: #bfbfba;
        line-height: 1.7;
        margin-bottom: 16px;
      }
      .legal-content ul,
      .legal-content ol { padding-left: 24px; margin-bottom: 16px; }
      .legal-content li { margin-bottom: 8px; }
      .legal-content strong { color: #fafaf7; }
      .legal-content a { color: #cc785c; }
      .legal-content code {
        font-family: ui-monospace, monospace;
        font-size: 0.9em;
        color: #ebdbbc;
        background: #1f1f1e;
        padding: 1px 6px;
        border-radius: 4px;
      }
      .legal-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 16px 0;
        font-size: 0.95rem;
      }
      .legal-content th,
      .legal-content td {
        text-align: left;
        padding: 10px 12px;
        border-bottom: 1px solid #40403e;
        color: #bfbfba;
      }
      .legal-content th {
        color: #ebdbbc;
        font-weight: 600;
      }
      .legal-content td code { white-space: nowrap; }

      .legal-content .contact-card {
        display: flex;
        align-items: center;
        gap: 16px;
        background: #1f1f1e;
        border: 1px solid #40403e;
        border-radius: 16px;
        padding: 20px 24px;
        margin: 16px 0;
        text-decoration: none;
        transition: all 0.3s ease;
      }
      .legal-content .contact-card:hover {
        background: #2f2f2e;
        transform: translateY(-2px);
        border-color: #cc785c;
      }
      .legal-content .contact-card svg {
        width: 32px;
        height: 32px;
        color: #cc785c;
        flex-shrink: 0;
      }
      .legal-content .contact-card-text h3 {
        font-size: 1rem;
        font-weight: 600;
        color: #fafaf7;
        margin: 0 0 4px 0;
      }
      .legal-content .contact-card-text p {
        font-size: 0.9rem;
        color: #bfbfba;
        margin: 0;
      }

      .legal-content .faq-item { margin-bottom: 24px; }
      .legal-content .faq-item h3 {
        font-size: 1.05rem;
        font-weight: 600;
        color: #fafaf7;
        margin: 0 0 8px 0;
      }
      .legal-content .faq-item p { margin-bottom: 0; }

      .cookie-controls {
        margin: 24px 0;
        padding: 20px;
        background: #1f1f1e;
        border: 1px solid #40403e;
        border-radius: 12px;
      }
      .cookie-controls p { margin-bottom: 12px; color: #bfbfba; }
      .cookie-controls button {
        margin: 4px 6px 4px 0;
        padding: 8px 16px;
        background: transparent;
        border: 1px solid #40403e;
        border-radius: 8px;
        color: #ebdbbc;
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
      }
      .cookie-controls button:hover {
        background: #262625;
        border-color: #cc785c;
      }
      .cookie-controls button.primary {
        background: rgba(204, 120, 92, 0.2);
        border-color: #cc785c;
        color: #ebdbbc;
      }
      .cookie-controls button.primary:hover {
        background: rgba(204, 120, 92, 0.3);
      }

      @media (max-width: 768px) {
        .legal-container { padding: 80px 20px 40px; }
        .legal-content { padding: 24px; }
        .legal-container h1 { font-size: 2rem; }
        .legal-content table { font-size: 0.85rem; }
        .legal-content th,
        .legal-content td { padding: 8px 6px; }
      }

      /* Article decorations (used by individual posts) */

      .article-page .diagram-box {
        background: #262625;
        border: 1px solid #40403E;
        border-radius: 16px;
        padding: 24px;
        margin: 32px 0;
        text-align: center;
      }
      .article-page .diagram-box .diagram-title {
        font-size: 0.9rem;
        color: #91918D;
        margin-bottom: 16px;
        text-transform: uppercase;
        letter-spacing: 1px;
      }
      .article-page .diagram-box .curve {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 8px;
        height: 120px;
        margin-bottom: 12px;
      }
      .article-page .diagram-box .bar {
        width: 40px;
        background: linear-gradient(180deg, #CC785C 0%, rgba(204, 120, 92, 0.6) 100%);
        border-radius: 4px 4px 0 0;
        transition: height 0.3s ease;
      }
      .article-page .diagram-box .bar-labels {
        display: flex;
        justify-content: center;
        gap: 8px;
        font-size: 0.75rem;
        color: #91918D;
      }
      .article-page .diagram-box .bar-labels span {
        width: 40px;
        text-align: center;
      }

      .article-page .comparison-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin: 32px 0;
      }
      .article-page .comparison-item {
        background: #262625;
        border: 1px solid #40403E;
        border-radius: 12px;
        padding: 20px;
      }
      .article-page .comparison-item.good { border-color: rgba(100, 255, 150, 0.3); }
      .article-page .comparison-item.bad { border-color: rgba(255, 100, 100, 0.3); }
      .article-page .comparison-item h4 {
        font-size: 0.9rem;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .article-page .comparison-item.good h4 { color: rgba(150, 255, 180, 0.9); }
      .article-page .comparison-item.bad h4 { color: rgba(255, 150, 150, 0.9); }
      .article-page .comparison-item p {
        font-size: 0.95rem;
        margin: 0;
        color: #BFBFBA;
      }

      .article-page .student-quote {
        background: #262625;
        border-left: 3px solid #CC785C;
        padding: 20px 24px;
        border-radius: 0 12px 12px 0;
        margin: 32px 0;
        font-size: 1.05rem;
        font-style: italic;
        color: #EBDBBC;
        line-height: 1.7;
      }
      .article-page .student-quote .source {
        display: block;
        font-style: normal;
        font-size: 0.85rem;
        color: #91918D;
        margin-top: 10px;
      }

      .article-page .answer-block {
        background: linear-gradient(135deg, rgba(204, 120, 92, 0.1) 0%, rgba(204, 120, 92, 0.06) 100%);
        border: 1px solid rgba(204, 120, 92, 0.1);
        border-radius: 16px;
        padding: 24px 28px;
        margin: 20px 0 40px;
      }
      .article-page .answer-block .answer-label {
        font-size: 0.8rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #CC785C;
        margin-bottom: 10px;
      }
      .article-page .answer-block p {
        margin: 0;
        color: #E5E4DF;
        font-size: 1.05rem;
        line-height: 1.7;
      }

      .article-page .pull-quote {
        font-size: 1.5rem;
        font-weight: 700;
        text-align: center;
        padding: 40px 20px;
        margin: 48px 0;
        color: #D4A27F;
        border-top: 1px solid #40403E;
        border-bottom: 1px solid #40403E;
        line-height: 1.4;
      }

      /* Forum invite (article footer CTA) */
      .article-page .forum-invite {
        margin-top: 40px;
        padding: 20px 24px;
        background: rgba(204, 120, 92, 0.08);
        border: 1px solid rgba(204, 120, 92, 0.3);
        border-radius: 12px;
        text-align: center;
      }
      .article-page .forum-invite p {
        margin: 0 0 12px 0;
        color: #BFBFBA;
      }
      .article-page .forum-invite-link {
        display: inline-block;
        color: #CC785C;
        text-decoration: none;
        font-weight: 600;
      }
      .article-page .forum-invite-link:hover { text-decoration: underline; }

      @media (max-width: 768px) {
        .article-page .comparison-box { grid-template-columns: 1fr; }
        .article-page .diagram-box .bar { width: 30px; }
        .article-page .diagram-box .bar-labels span { width: 30px; font-size: 0.65rem; }
        .article-page .pull-quote { font-size: 1.3rem; padding: 32px 16px; }
      }
