
      :root {
        color: #f5f5f7;
        background: #111113;
        font-family: Arial, sans-serif;
      }

      * { box-sizing: border-box; }
      [hidden] { display: none !important; }

      html { scroll-behavior: smooth; }

      body {
        margin: 0;
        min-height: 100vh;
        padding: 32px 20px;
        background:
          radial-gradient(circle at 12% 18%, rgba(41, 151, 255, 0.18), transparent 24%),
          radial-gradient(circle at 85% 78%, rgba(92, 57, 190, 0.18), transparent 28%),
          linear-gradient(135deg, #070b15 0%, #111113 48%, #0a1020 100%);
        background-attachment: fixed;
      }

      main {
        max-width: 820px;
        margin: 0 auto;
      }

      .topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
      }

      .menu-wrap { position: relative; z-index: 10; }

      .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        padding: 9px 14px;
        color: #f5f5f7;
        background: rgba(44, 44, 46, 0.9);
        border: 1px solid #4b4b52;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.65s cubic-bezier(.16,1,.3,1), background 0.65s ease, border-color 0.65s ease, box-shadow 0.65s ease;
      }

      .menu-toggle:hover { background: #343442; border-color: #65a9ff; box-shadow: 0 5px 18px rgba(41, 151, 255, 0.2); }
      .menu-toggle:active { transform: scale(0.94); }
      .menu-icon { font-size: 18px; line-height: 1; transition: transform 0.65s cubic-bezier(.16,1,.3,1); }
      .menu-toggle[aria-expanded="true"] .menu-icon { transform: rotate(90deg); }

      .menu-panel {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: 210px;
        padding: 8px;
        background: rgba(24, 30, 49, 0.98);
        border: 1px solid rgba(120, 160, 220, 0.22);
        border-radius: 15px;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.96);
        transform-origin: top left;
        transition: opacity 0.55s ease, transform 0.55s cubic-bezier(.16,1,.3,1), visibility 0.55s;
      }

      .menu-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
      .menu-panel a { display: block; padding: 12px 13px; color: #d6eaff; border-radius: 10px; text-decoration: none; transition: background 0.45s ease, transform 0.45s cubic-bezier(.16,1,.3,1); }
      .menu-panel a:hover { background: rgba(41, 151, 255, 0.16); transform: translateX(4px); }
      .menu-panel a.is-current { color: #fff; background: rgba(41, 151, 255, 0.22); }

      .language-toggle {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 9px 14px;
        color: #f5f5f7;
        background: rgba(44, 44, 46, 0.9);
        border: 1px solid #4b4b52;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: transform 0.75s cubic-bezier(.16,1,.3,1), background 0.75s ease, border-color 0.75s ease, box-shadow 0.75s ease;
      }

      .language-toggle:hover { background: #343442; border-color: #65a9ff; box-shadow: 0 5px 18px rgba(41, 151, 255, 0.2); }
      .language-toggle:active { transform: scale(0.9) rotate(-4deg); }
      .language-toggle.is-changing { animation: language-pop 0.85s cubic-bezier(.16,1,.3,1); }

      @keyframes language-pop {
        0% { transform: scale(1) rotate(0); }
        45% { transform: scale(1.14) rotate(3deg); }
        100% { transform: scale(1) rotate(0); }
      }

      h1 {
        margin: 0 0 10px;
        font-size: clamp(30px, 5vw, 46px);
        letter-spacing: -1.5px;
      }

      .brand {
        display: flex;
        align-items: center;
        gap: 14px;
      }

      .logo {
        width: 54px;
        height: 54px;
        display: block;
        flex: 0 0 54px;
      }

      .intro {
        margin: 0 0 20px;
        color: #a1a1a6;
        font-size: 17px;
      }

      .content-section {
        margin-top: 22px;
        padding: 22px 24px;
        background: rgba(25, 31, 52, 0.82);
        border: 1px solid rgba(120, 160, 220, 0.14);
        border-radius: 16px;
        scroll-margin-top: 20px;
      }

      .content-section h2 { margin: 0 0 10px; font-size: 24px; }
      .content-section p { margin: 0; color: #b9c5d6; font-size: 17px; line-height: 1.6; }
      .comparison-guide { margin-top: 16px; }
      .mac-storage-grid { display: grid; gap: 8px; margin: 8px 0; }
      .mac-storage-grid h3 { margin: 0 0 8px; font-size: 17px; }
      @media (min-width: 601px) { .mac-storage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

      .post-card { display: block; margin-top: 20px; padding: 22px; color: #f5f5f7; text-decoration: none; background: #10243a; border: 1px solid #284363; border-radius: 14px; transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease; }
      .post-card:hover { background: #163452; border-color: #65a9ff; box-shadow: 0 8px 25px rgba(41, 151, 255, 0.12); }
      .post-card:focus-visible, .article-back:focus-visible { outline: 2px solid #65a9ff; outline-offset: 4px; }
      .post-card h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.35; }
      .post-card .post-read { display: block; margin-top: 15px; color: #8fc7ff; font-size: 15px; }
      .article-back { display: inline-block; color: #8fc7ff; text-decoration: none; margin-bottom: 22px; }
      .frame-article h2 { font-size: clamp(25px, 4vw, 34px); line-height: 1.25; }
      .frame-article h3 { margin: 28px 0 12px; font-size: 22px; color: #d6eaff; }
      .frame-article p + p { margin-top: 12px; }
      .article-sources { display: grid; gap: 9px; font-size: 15px; }
      .article-sources a { color: #8fc7ff; overflow-wrap: anywhere; }

      .site-footer {
        margin-top: 28px;
        padding: 18px 0;
        border-top: 1px solid rgba(120, 160, 220, 0.16);
        color: #a1a1a6;
        font-size: 14px;
        line-height: 1.6;
        overflow-wrap: anywhere;
      }
      .site-footer p { margin: 0; }
      .site-footer .site-version { margin-top: 10px; font-size: 12px; }

      .page-section { display: none; }
      .page-section.is-active { display: block; opacity: 1; animation: page-enter 0.75s cubic-bezier(.16,1,.3,1); }

      @keyframes page-enter {
        from { box-shadow: 0 0 0 1px rgba(101, 169, 255, 0.3); }
        to { box-shadow: 0 0 0 1px transparent; }
      }

      .comparison {
        background: transparent;
        border: 0;
        border-radius: 0;
        padding: 12px 0;
        transition: box-shadow 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
      }

      .comparison.interaction-pulse { animation: comparison-pulse 0.9s cubic-bezier(.16,1,.3,1); }

      @keyframes comparison-pulse {
        0% { box-shadow: 0 0 0 rgba(41, 151, 255, 0); }
        45% { box-shadow: 0 12px 35px rgba(41, 151, 255, 0.14); }
        100% { box-shadow: 0 0 0 rgba(41, 151, 255, 0); }
      }

      .comparison-results {
        display: none;
        gap: 8px;
        margin: 0;
        padding: 0;
        list-style: none;
      }

      .comparison-results.is-visible { display: grid; }

      .comparison-results li {
        opacity: 1;
        padding: 10px 14px;
        color: #d6eaff;
        background: #182537;
        border-radius: 12px;
        font-size: 20px;
        line-height: 1.5;
        box-shadow: inset 2px 0 0 #53677e;
        transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
      }

      .comparison-results li:hover { background: #203247; transform: translateX(2px); }
      .comparison-results li.is-primary { background: #102e49; box-shadow: inset 3px 0 0 #65b1ff; }
      .comparison-results li.is-primary:hover { background: #163954; }
      .comparison-results li:not(.is-primary) .metric-title { font-size: 16px; }
      .comparison-results li:not(.is-primary) .metric-difference { font-size: 26px; color: #e4c78e; }

      .comparison-results.animate-in li {
        animation: rise-in 0.8s cubic-bezier(.16,1,.3,1);
      }

      .comparison-results.animate-in li:nth-child(2) { animation-delay: 0.06s; }
      .comparison-results.animate-in li:nth-child(3) { animation-delay: 0.12s; }
      .comparison-results.animate-in li:nth-child(4) { animation-delay: 0.18s; }
      .comparison-results.animate-in li:nth-child(5) { animation-delay: 0.24s; }
      .comparison-results.animate-in li:nth-child(6) { animation-delay: 0.30s; }

      @keyframes rise-in {
        from { background-color: #1b3b5a; }
        to { background-color: #10243a; }
      }

      .metric-title { margin: 0 0 4px; font-size: 18px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; }
      .device-tabs { display: flex; gap: 6px; margin: 0 0 16px; padding: 5px; border: 1px solid #ffffff20; border-radius: 14px; background: #182033; }
      .device-tabs a { flex: 1; padding: 10px 8px; border-radius: 10px; text-align: center; text-decoration: none; color: #b8c5d8; transition: background .4s ease, color .4s ease; }
      .device-tabs a[aria-current="page"] { background: #254569; color: #fff; }
      .device-tabs a:hover { background: #234365; color: #fff; }
      .device-tabs a:focus-visible, summary:focus-visible { outline: 2px solid #65b1ff; outline-offset: 3px; }
      .guide-question summary { cursor: pointer; font-size: 16px; font-weight: 500; line-height: 1.5; }
      .guide-question.content-section { padding: 12px 0; margin-top: 0; border: 0; border-bottom: 1px solid #ffffff12; border-radius: 0; background: transparent; }
      .guide-question[open] summary { color: #8fc9ff; }
      .guide-question p { margin: 12px 0 0; }
      .brightness-sources { margin-top: 12px; color: #aec1d5; font-size: 13px; line-height: 1.5; }
      .brightness-sources summary { cursor: pointer; }
      .brightness-sources a { color: #8fc9ff; }
      .spec-help { display: inline; margin-left: 6px; font-size: 13px; font-weight: 400; }
      .spec-help summary { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 1px solid #8fc9ff66; border-radius: 50%; color: #8fc9ff; cursor: pointer; list-style: none; }
      .spec-help summary::-webkit-details-marker { display: none; }
      .spec-help p { margin: 8px 0 0; padding: 10px; border-radius: 8px; background: #20344c; color: #d6eaff; line-height: 1.5; }
      .comparison-legend-models { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
      .metric-difference { display: block; font-size: 30px; line-height: 1.3; font-weight: 700; font-variant-numeric: tabular-nums; color: #f6cc76; }
      .comparison-legend { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; margin-bottom: 8px; padding: 6px 10px; background: #182033; border: 0; border-radius: 10px; box-shadow: 0 4px 12px #0005; }
      .legend-models { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; color: #d6eaff; font-size: 15px; }
      .legend-role { display: block; margin-bottom: 4px; color: #aec1d5; font-size: 12px; }
      .legend-model { overflow-wrap: anywhere; }
      .legend-model { display: flex; align-items: center; gap: 8px; }
      .legend-model::before { content: ""; flex: 0 0 20px; height: 8px; border-radius: 8px; background: #d1d5db; }
      .legend-model.is-new::before { background: #f6cc76; }
      .legend-note { margin: 10px 0 0; color: #aec1d5; font-size: 14px; line-height: 1.5; }
      .share-comparison { display: flex; flex-direction: column; align-items: flex-end; margin-top: 20px; }
      .share-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 20px; border: 1px solid #79bbff55; border-radius: 14px; background: linear-gradient(135deg, #245f99, #234365); color: #f5f5f7; box-shadow: 0 5px 16px #07132055; font: inherit; font-weight: 600; cursor: pointer; transition: background .5s ease, transform .5s ease, box-shadow .5s ease; }
      .share-button::before { content: "↗"; font-size: 23px; line-height: 1; }
      .share-button:hover { background: #2c557f; box-shadow: 0 7px 22px #2997ff22; }
      .share-button:active { transform: scale(.96); }
      .share-button.is-clicked { animation: share-button-press .7s cubic-bezier(.16,1,.3,1); }
      @keyframes share-button-press { 0% { transform: scale(1); } 25% { transform: scale(.96); box-shadow: 0 0 0 5px #2997ff24; } 100% { transform: scale(1); box-shadow: 0 5px 16px #07132055; } }
      .share-button:focus-visible { outline: 2px solid #65b1ff; outline-offset: 4px; }
      .share-status { margin: 8px 0 0; color: #aec1d5; font-size: 14px; }
      .share-status:empty { display: none; }
      .share-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; padding: 14px; border: 1px solid #ffffff20; border-radius: 14px; background: #101e32; animation: share-enter .6s cubic-bezier(.16,1,.3,1); }
      .share-option { display: inline-flex; align-items: center; gap: 8px; padding: 11px 14px; border: 1px solid #ffffff20; border-radius: 10px; color: #f5f5f7; background: #234365; text-decoration: none; font: inherit; cursor: pointer; transition: background .5s ease, transform .5s ease; }
      .share-option:hover { background: #2c557f; }
      .share-option:active { transform: scale(.96); }
      .share-option:focus-visible { outline: 2px solid #65b1ff; outline-offset: 3px; }
      .share-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; background: #2997ff; font-size: 14px; font-weight: 700; }
      @keyframes share-enter { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
      .metric-chart { display: grid; gap: 6px; margin-top: 6px; padding-top: 6px; border-top: 1px solid #ffffff14; }
      .metric-chart-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 3px; color: #c2cfdf; font-size: 13px; line-height: 1.3; }
      .metric-chart-row.is-new .metric-chart-label { color: #f6cc76; }
      .metric-chart-track { height: 8px; overflow: hidden; border-radius: 20px; background: #091521; box-shadow: inset 0 0 0 1px #ffffff18; }
      .metric-chart-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #94a3b8, #d1d5db); transform-origin: left; }
      .metric-chart-row.is-new .metric-chart-bar { background: linear-gradient(90deg, #e5a337, #f6cc76); }
      .comparison-results.animate-in .metric-chart-bar { animation: chart-grow 1.2s cubic-bezier(.16,1,.3,1); }
      @keyframes chart-grow { from { transform: scaleX(.8); } to { transform: scaleX(1); } }
      .metric-note { display: block; margin-top: 12px; font-size: 12px; line-height: 1.5; color: #a6bbd0; }
      .metric-note a { color: #8fc9ff; text-decoration: underline; text-underline-offset: 3px; }
      .comparison-results li.is-unavailable { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding: 12px 14px; background: #172233; box-shadow: none; }
      .comparison-results li.is-unavailable[hidden] { display: none; }
      .comparison-results li.is-unavailable .metric-title { margin: 0; font-size: 15px; }
      .comparison-results li.is-unavailable .metric-note { margin: 0; }
      .hdr-device-value { display: block; margin-top: 5px; }

      .selectors {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 20px;
      }

      .ipad-choices { display: grid; gap: 14px; margin: 16px 0; }
      .ipad-choice { min-width: 0; margin: 0; padding: 8px 0; border: 0; border-radius: 0; background: transparent; }
      .ipad-choice legend { padding: 0 8px; color: #f5f5f7; font-size: 23px; font-weight: 700; }
      .ipad-choice label { display: block; margin-top: 8px; font-size: 18px; }
      .ipad-choice select { margin-bottom: 2px; }
      .ipad-choice [hidden], #ipad-result[hidden], #ipad-equal[hidden], #ipad-comparison-legend[hidden] { display: none; }
      #mac-result[hidden], #mac-equal[hidden], #mac-legend[hidden] { display: none; }
      .ipad-summary { margin: 16px 0 0; color: #b9d8f5; font-size: 17px; overflow-wrap: anywhere; }
      .ipad-summary:empty { display: none; }
      .ipad-table caption { padding: 0 0 15px; text-align: left; color: #f5f5f7; font-size: 21px; font-weight: 700; }
      

      .charge-table {
        display: none;
        width: 100%;
        margin-top: 18px;
        border-collapse: separate;
        border-spacing: 0;
        overflow: visible;
        color: #d6eaff;
        background: rgba(13, 25, 43, 0.82);
        border: 1px solid rgba(120, 160, 220, 0.2);
        border-radius: 12px;
        font-size: 17px;
        table-layout: fixed;
      }

      .charge-table.is-visible { display: table; }
      .charge-table thead th { position: sticky; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 21; background: #18283c; box-shadow: 0 2px 0 #31415a; }
      .charge-table thead th:first-child { border-top-left-radius: 11px; }
      .charge-table thead th:last-child { border-top-right-radius: 11px; }
      .mac-table-role { display: block; margin-bottom: 6px; font-size: 0.8em; color: #bec9d8; }
      #mac-new-head .mac-table-role { color: #ffd379; }
      .charge-table.animate-in { animation: rise-in 0.9s 0.2s cubic-bezier(.16,1,.3,1); }
      .charge-table th, .charge-table td { padding: 13px 14px; text-align: left; overflow-wrap: anywhere; border-bottom: 1px solid rgba(120, 160, 220, 0.12); }
      .charge-table th { color: #fff; background: rgba(41, 151, 255, 0.13); }
      .charge-table .table-group-heading th { padding-top: 18px; padding-bottom: 10px; color: #b9d8f5; background: #18283c; font-size: 0.95em; letter-spacing: 0.02em; }
      .charge-table tr:last-child td { border-bottom: 0; }

      label {
        color: #a1a1a6;
        font-size: 21px;
        font-weight: 700;
      }

      select {
        width: 100%;
        margin-top: 7px;
        padding: 15px 16px;
        color: #f5f5f7;
        background: #19202b;
        border: 1px solid #344153;
        border-radius: 10px;
        font-size: 20px;
        font-weight: 600;
        appearance: none;
        background-image: linear-gradient(45deg, transparent 50%, #8fc7ff 50%), linear-gradient(135deg, #8fc7ff 50%, transparent 50%);
        background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px;
        background-size: 6px 6px, 6px 6px;
        background-repeat: no-repeat;
        transition: transform 0.45s cubic-bezier(.16,1,.3,1), border-color 0.45s ease, box-shadow 0.45s ease, background-color 0.45s ease;
      }

      select:hover { border-color: #5d9dff; background-color: #222e40; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(41, 151, 255, 0.12); }
      select:focus { outline: none; border-color: #65a9ff; box-shadow: 0 0 0 5px rgba(101, 169, 255, 0.16), 0 10px 25px rgba(41, 151, 255, 0.15); transform: translateY(-2px) scale(1.01); }
      select:active { transform: scale(0.985); }

      select.is-opening { animation: select-open 0.75s cubic-bezier(.16,1,.3,1); }

      @keyframes select-open {
        0% { transform: scale(1); }
        40% { transform: translateY(-3px) scale(1.015); box-shadow: 0 0 0 6px rgba(101, 169, 255, 0.13); }
        100% { transform: scale(1); }
      }

      @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
        *, *::before, *::after { animation: none !important; transition: none !important; }
      }

      @media (min-width: 1200px) {
        .topbar {
          position: fixed;
          top: 24px;
          right: 24px;
          left: 24px;
          z-index: 30;
          margin: 0;
          pointer-events: none;
        }

        .topbar > * { pointer-events: auto; }
        .comparison-legend { top: env(safe-area-inset-top, 0px); }
      }

      @media (min-width: 1100px) {
        .comparison-legend { top: env(safe-area-inset-top, 0px); }
      }

      .device-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0; }
      .device-photos[hidden] { display: none; }
      .device-photo { margin: 0; padding: 10px; border: 0; border-radius: 14px; background: transparent; text-align: center; min-width: 0; }
      .device-photo small { display: block; color: #b8c5d8; margin-bottom: 6px; }
      .device-photo-media { height: 96px; max-width: 180px; margin: auto; display: flex; align-items: center; justify-content: center; background: transparent; border-radius: 10px; overflow: hidden; color: #a6bbd0; }
      .device-photo img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 0; box-sizing: border-box; }
      .device-photo figcaption { margin-top: 6px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
      @media (min-width: 601px) {
        .ipad-choices { gap: 14px; margin: 18px 0; }
        .ipad-choice { padding: 8px 0; }
        .ipad-choice label { margin-top: 8px; font-size: 15px; }
        .ipad-choice select { min-height: 44px; padding-top: 10px; padding-bottom: 10px; font-size: 17px; }
        .ipad-summary { margin: 8px 0 0; font-size: 13px; }
        .comparison > .selectors { gap: 12px; }
        select { min-height: 48px; padding-top: 12px; padding-bottom: 12px; }
      }
      
    

      .comparison-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 12px 0; }
      .swap-button { min-height: 44px; padding: 10px 12px; border: 1px solid #79bbff55; border-radius: 10px; background: #234365; color: #f5f5f7; font: inherit; cursor: pointer; }
      .swap-button:disabled { opacity: .45; cursor: default; }
      .swap-button:focus-visible { outline: 2px solid #65b1ff; outline-offset: 3px; }
      .spec-view-label { flex: 1; min-width: 160px; font-size: 13px; font-weight: 400; }
      .spec-view-label select { min-height: 44px; padding: 10px 32px 10px 12px; font-size: 15px; background-position: calc(100% - 22px) 19px, calc(100% - 16px) 19px; }
      

      /* Compact comparisons on wide screens; full-width labels on phones. */
      @media (min-width: 701px) {
        .selectors, .ipad-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .selectors label { min-width: 0; font-size: 17px; }
        .ipad-choice legend { font-size: 18px; }
        .comparison-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .comparison-results li { min-width: 0; }
        .comparison-results li.is-unavailable { grid-column: 1 / -1; }
        .device-photo-media { height: 112px; max-width: 200px; }
        .device-photo small, .device-photo figcaption { display: none; }
        .device-photo { padding: 0; }
        .device-photos { margin: 10px 0; }
      }
      .ipad-summary { line-height: 1.5; }
      

      #ipads, #macbooks { background: transparent; border: 0; border-radius: 0; padding: 12px 0; margin-top: 8px; }

      /* All phone-size overrides live together; desktop rules above remain unchanged. */
      @media (max-width: 600px) {
 .ipad-choice { padding: 4px 0; } .ipad-choice legend { font-size: 20px; } .ipad-table th, .ipad-table td { padding: 10px 8px; font-size: 14px; } 

        .device-photo { border-radius: 14px; }
        .brand { align-items: flex-start; }
        .logo { width: 44px; height: 44px; flex-basis: 44px; }
        h1 { font-size: clamp(25px, 8vw, 38px); }
        .comparison-results li { font-size: 18px; }
        .share-comparison { align-items: stretch; }
        .share-button { width: 100%; }
        .share-options { flex-direction: column; }
        .share-option { justify-content: center; min-height: 46px; }
        .charge-table { font-size: 14px; }
        .charge-table th, .charge-table td { padding: 10px 8px; }
      

        body { padding: 14px; }
        .topbar { margin-bottom: 10px; }
        .comparison { padding: 8px 0; }
        .comparison > .selectors { gap: 8px; margin-bottom: 10px; }
        .selectors label { font-size: 16px; line-height: 1.3; }
        .selectors select { min-height: 44px; margin-top: 4px; padding: 10px 32px 10px 12px; font-size: 17px; background-position: calc(100% - 22px) 19px, calc(100% - 16px) 19px; }
        .device-photos { gap: 10px; margin: 8px 0; }
        .device-photo { padding: 0; }
        .device-photo-media { height: 96px; max-width: 152px; }
        .device-photo img { padding: 0; }
        .device-photo small, .device-photo figcaption { display: none; }
        .legend-note { font-size: 12px; line-height: 1.4; margin: 6px 0; }
        .legend-role { margin-bottom: 2px; }
        .legend-models { font-size: 13px; }
        .comparison-controls { gap: 8px; margin: 8px 0; }
        .swap-button { font-size: 13px; }
        .spec-view-label { min-width: 135px; }
        .spec-view-label select { font-size: 13px; }
        .ipad-choices { gap: 8px; margin: 8px 0; }
      

        .charge-table.is-visible { display: block; }
        .charge-table caption { display: block; padding: 12px; font-size: 18px; }
        .charge-table thead, .charge-table tbody { display: block; }
        .charge-table thead { position: sticky; top: 0; z-index: 22; background: #18283c; border-radius: 11px 11px 0 0; }
        .charge-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .charge-table th, .charge-table td { display: block; min-width: 0; overflow-wrap: normal; word-break: normal; padding: 7px 10px; }
        .charge-table tr > :first-child { grid-column: 1 / -1; }
        .charge-table thead th { position: static; box-shadow: none; font-size: 13px; }
        .charge-table thead th:first-child { padding-bottom: 0; font-weight: 400; color: #aec1d5; }
        .charge-table tbody tr > :first-child { border-bottom: 0; background: #182537; }
        .charge-table tbody td { background: #101b2b; }
        .charge-table tbody tr > :nth-child(2) { color: #d6eaff; }
        .charge-table tbody tr > :nth-child(3) { color: #d6eaff; }
        .charge-table .spec-help p { width: 100%; font-weight: 400; }
      
      }

.metric-trend { display: block; margin-top: 5px; color: #c2cfdf; font-size: 12px; line-height: 1.2; }

.mac-config-grid, .mac-capacities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
.mac-cores-field { grid-column: 1 / -1; }
.mac-capacities { margin-top: 8px; padding-top: 8px; border-top: 1px solid #ffffff18; }
.mac-capacities label { font-size: 14px; }
.mac-capacities select { min-height: 44px; font-size: 16px; padding: 10px 28px 10px 10px; background-position: calc(100% - 19px) 19px, calc(100% - 13px) 19px; }
.results-jump { min-height: 44px; border: 1px solid #65b1ff55; border-radius: 10px; padding: 10px 14px; background: #254569; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.results-jump:disabled { opacity: .45; cursor: default; }
.results-jump:focus-visible { outline: 2px solid #65b1ff; outline-offset: 3px; }
#mac-result { scroll-margin-top: 12px; outline: none; }
@media (max-width: 359px) { .mac-config-grid { grid-template-columns: minmax(0, 1fr); } }

/* Touch targets extend around the small visible help icon. */
.spec-help summary::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
.spec-help summary:focus-visible { outline: 2px solid #8fc9ff; outline-offset: 4px; }
.charge-table tbody tr > .spec-different { color: #f6cc76; }
.charge-table tbody tr > .spec-higher { color: #9be3bb; }
.charge-table tbody tr > .spec-lower { color: #ffb4ae; }
.comparison-results li.is-unavailable { order: 2; grid-column: 1 / -1; padding: 6px 0; border: 0; border-top: 1px solid #ffffff14; border-radius: 0; background: transparent; }
.comparison-results li.is-unavailable .metric-note { font-size: 13px; }
.screen-reader-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.comparison-results li.is-unavailable:hover { background: transparent; transform: none; }
 .comparison-results.animate-in li.is-unavailable { animation: none; }

.comparison h2 { margin: 16px 0 8px; font-size: 24px; }
.comparison-instruction { margin: 0 0 16px; color: #b9c5d6; line-height: 1.5; }
.comparison-results li.is-higher .metric-difference, .comparison-results li.is-higher .metric-trend { color: #9be3bb; }
.comparison-results li.is-lower .metric-difference, .comparison-results li.is-lower .metric-trend { color: #ffb4ae; }

.seo-category-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0; }
.seo-category-links a { color: #8fc9ff; font-size: 13px; }

.article-home { display: block; width: fit-content; color: #8fc7ff; text-decoration: none; margin-bottom: 12px; padding: 8px 0; }
.article-home:focus-visible { outline: 2px solid #65a9ff; outline-offset: 4px; }

.comparison-results li.unavailable-metrics-note { grid-column: 1 / -1; order: 2; margin: 0; padding: 6px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #b9c5d6; font-size: 13px; line-height: 1.5; }
.comparison-results li.unavailable-metrics-note:hover { background: transparent; transform: none; }
.comparison-results.animate-in li.unavailable-metrics-note { animation: none; }

/* Choose the two model/chip identities first; fine tuning lives on the pair page. */
html:not([data-mac-pair]) #macbooks [id$="-size-wrap"],
html:not([data-mac-pair]) #macbooks [id$="-gpu-wrap"],
html:not([data-mac-pair]) #macbooks .mac-capacities,
html:not([data-mac-pair]) #macbooks .comparison-controls,
html:not([data-mac-pair]) #mac-result,
html:not([data-mac-pair]) #mac-memory-table { display: none !important; }
html:not([data-mac-pair]) #macbooks .mac-config-grid { grid-template-columns: 1fr; }

.mac-memory-section { margin-top: 28px; }
.mac-memory-section .mac-capacities { margin-top: 8px; }
html:not([data-mac-pair]) #mac-memory-section { display: none !important; }

/* Keep preparation quiet and make the comparison itself the visual focus. */
.comparison-controls .swap-button { background: transparent; border-color: #53677e; color: #d6eaff; }
.comparison-controls .swap-button:hover:not(:disabled) { background: #203247; }
.comparison-controls select { background-color: #151c27; }
.comparison-guide { background: transparent; border: 0; border-top: 1px solid #ffffff18; border-radius: 0; padding: 20px 0; }
.comparison-results { gap: 10px; }
.comparison-results li.is-primary { background: #12324e; }
#posts { padding: 0; border: 0; background: transparent; }
#posts > p { margin-bottom: 24px; }
.post-card { margin-top: 14px; padding: 22px 24px; background: #142135; border-color: #ffffff18; }
.post-card p { font-size: 16px; }
.frame-article { padding: 24px 0; border: 0; background: transparent; }
.frame-article h2 { letter-spacing: -.5px; }

@media (max-width: 600px) {
  body { padding: 12px 14px; }
  .topbar { margin-bottom: 8px; }
  .menu-toggle, .language-toggle { min-height: 44px; padding: 8px 12px; }
  .brand { align-items: center; gap: 10px; }
  .brand h1 { margin-bottom: 0; font-size: 30px; letter-spacing: -1px; }
  .logo { width: 38px; height: 38px; flex-basis: 38px; }
  .intro { margin: 6px 0 12px; font-size: 15px; line-height: 1.4; }
  .device-tabs { margin-bottom: 8px; padding: 3px; gap: 4px; border-color: #ffffff18; }
  .device-tabs a { min-height: 44px; padding: 12px 6px; font-size: 14px; }
  .comparison { padding: 0; }
  .comparison h2 { margin: 12px 0 6px; font-size: 22px; }
  .comparison-instruction { margin-bottom: 10px; font-size: 14px; line-height: 1.4; }
  .comparison > .selectors { margin-bottom: 8px; }
  .selectors label { font-size: 14px; font-weight: 500; color: #b9c5d6; }
  .comparison-controls { flex-wrap: nowrap; align-items: flex-end; }
  .comparison-controls .swap-button { flex: 0 0 44px; width: 44px; height: 44px; padding: 0; font-size: 0; }
  .comparison-controls .swap-button::before { content: "⇄"; font-size: 24px; line-height: 1; }
  .spec-view-label { min-width: 0; }
  .spec-view-label select { font-size: 14px; }
  .ipad-choice legend { font-size: 17px; padding: 0; }
  .ipad-choice label { font-size: 14px; margin-top: 6px; }
  .ipad-choice select { min-height: 44px; margin-top: 4px; padding: 10px 32px 10px 12px; font-size: 16px; background-position: calc(100% - 22px) 19px, calc(100% - 16px) 19px; }
  .ipad-summary { margin-top: 6px; font-size: 13px; }
  #posts { margin-top: 16px; }
  #posts > p { font-size: 15px; margin-bottom: 18px; }
  .post-card { padding: 18px; margin-top: 12px; }
  .post-card h3 { font-size: 20px; line-height: 1.35; }
  .post-card p { font-size: 15px; line-height: 1.6; }
  .post-card .post-read { margin-top: 12px; }
  .frame-article { padding: 12px 0; }
  .frame-article h2 { font-size: 25px; }
}

/* Difluma's blue and gold accents echo the logo without changing result colours. */
:root { --brand-blue: #2997ff; --brand-gold: #f6cc76; --control-radius: 10px; }
.device-tabs a { position: relative; }
.device-tabs a[aria-current="page"] { background: linear-gradient(135deg, #25588a, #203b5a); box-shadow: inset 0 1px 0 #8fc9ff30; }
.device-tabs a[aria-current="page"]::after { content: ""; position: absolute; bottom: 4px; left: calc(50% - 10px); width: 20px; height: 2px; border-radius: 2px; background: var(--brand-gold); }
.menu-toggle, .language-toggle { border-color: #7894b044; background: #192331; }
select, .swap-button, .results-jump { border-radius: var(--control-radius); }
.post-card { position: relative; border-top-color: #5f9ad544; }
.post-card::before { content: ""; display: block; width: 30px; height: 30px; margin-bottom: 12px; background-color: var(--brand-gold); mask: var(--post-icon) center / 26px 26px no-repeat; --post-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='3'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/g%3E%3C/svg%3E"); }
.post-card[data-page="adaptive-refresh-rate"]::before, .post-card[data-page="refresh-rate"]::before { --post-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='3'/%3E%3Cpath d='M8 21h8M12 17v4M5 11h3l2-4 4 7 2-4h3'/%3E%3C/g%3E%3C/svg%3E"); }
.post-card[data-page="camera-lenses"]::before { --post-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='M3 7h4l2-3h6l2 3h4v13H3z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/g%3E%3C/svg%3E"); }
.post-card[data-page="comparison-method"]::before { --post-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7'%3E%3Crect x='4' y='11' width='6' height='10' rx='2'/%3E%3Crect x='14' y='3' width='6' height='18' rx='2'/%3E%3C/g%3E%3C/svg%3E"); }
.post-card[data-page="iphone-cooling"]::before { --post-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3 7l18 10M3 17 21 7M9 4l3 3 3-3M9 20l3-3 3 3M3 10l4-1-1-4M18 19l-1-4 4-1'/%3E%3C/g%3E%3C/svg%3E"); }
.post-card[data-page="frame-materials"]::before { --post-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='m12 3 10 5-10 5L2 8zM2 12l10 5 10-5M2 16l10 5 10-5'/%3E%3C/g%3E%3C/svg%3E"); }
.pair-brand-name{font-size:clamp(30px,5vw,46px);letter-spacing:-1.5px;font-weight:700;margin:0 0 10px}#macbooks-title{font-size:clamp(24px,4vw,32px);line-height:1.25;letter-spacing:-.5px}.comparison-overview{padding:20px 0}.comparison-overview p,.comparison-overview li{line-height:1.65;color:#cbd5e1}.comparison-overview a{color:#8fc9ff}.comparison-overview li{margin-bottom:8px}.comparison-overview ul{padding-left:22px}