/* Public reading themes. The masthead and footer retain the GetTopGear brand. */
html[data-theme="light"]{--ink:#27302f;--muted:#596461;--line:#d8d7cf;--paper:#f4f1e9;--green:#9b4c2e;--lime:#e7dfd1;--accent:#b45b36}
html[data-theme="dark"]{--ink:#dce1e0;--muted:#aab4b9;--line:#39434a;--paper:#1a1e23;--green:#dfa178;--lime:#303a3d;--accent:#cb805a}
html[data-theme] body{background:var(--paper);color:var(--ink)}
html[data-theme="light"] ::selection{background:#d9ae8f;color:#252b29}
html[data-theme="dark"] ::selection{background:#80533d;color:#f3eee8}

.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;min-width:86px;min-height:38px;margin-left:4px;padding:7px 11px;border:1px solid #626971;border-radius:999px;background:#242a31;color:#e8e8e3;font:700 12px/1 Arial,Helvetica,sans-serif;letter-spacing:.02em;cursor:pointer;white-space:nowrap}
.theme-toggle:hover{border-color:#d5a47d;background:#30363c;color:#fff}
.theme-toggle-icon{font-size:17px;line-height:1}
.theme-toggle:focus-visible{outline:2px solid #e1ac86;outline-offset:3px}
@media(max-width:650px){.theme-toggle{min-width:38px;width:38px;height:38px;padding:0;margin-left:auto}.theme-toggle-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.edition-masthead .theme-toggle{margin-left:0}.masthead .shell{gap:10px}}

/* Calm text proportions and a comfortable line length for long articles. */
html[data-theme] .article-header{max-width:860px}
html[data-theme] .article-header h1{font-size:clamp(36px,4.4vw,64px);line-height:1.1;letter-spacing:-.045em;text-transform:none}
html[data-theme] .dek{overflow-wrap:anywhere}
html[data-theme] .article-layout{grid-template-columns:210px minmax(0,720px);gap:clamp(24px,4vw,64px)}
html[data-theme] .article-body{font-family:Georgia,"Times New Roman",serif;font-size:19px;line-height:1.75}
html[data-theme] .article-body h2{font-family:Arial,Helvetica,sans-serif;font-size:clamp(29px,2.7vw,38px);line-height:1.2;letter-spacing:-.035em;text-transform:none}
html[data-theme] .article-body .summary,html[data-theme] .article-body .key-point,html[data-theme] .article-body .sources,html[data-theme] .article-author{font-family:Arial,Helvetica,sans-serif}
html[data-theme] .article-body .summary{font-size:15px;line-height:1.6}
html[data-theme] .article-body blockquote{font-size:clamp(23px,2.6vw,30px);line-height:1.4}
html[data-theme] .article-body p{margin-bottom:24px}
html[data-theme="light"] .article-header h1,html[data-theme="light"] .article-body h2,html[data-theme="light"] .simple h1,html[data-theme="light"] .simple h2{color:#252d2b}
html[data-theme="light"] .article-header,html[data-theme="light"] .simple,html[data-theme="light"] .article-body{color:#303937}
html[data-theme="light"] .dek,html[data-theme="light"] .simple p,html[data-theme="light"] .simple li{color:#505d59}
html[data-theme="light"] .breadcrumbs a,html[data-theme="light"] .article-body a,html[data-theme="light"] .article-author a,html[data-theme="light"] .simple a{color:#95502e}
html[data-theme="light"] .article-body .summary,html[data-theme="light"] .article-author{background:#eae6dc;border-color:#b77952;color:#303937}
html[data-theme="light"] .article-body .summary b,html[data-theme="light"] .article-body .key-point strong{color:#2b3633}
html[data-theme="light"] .article-body blockquote,html[data-theme="light"] .summary strong{color:#95502e}
html[data-theme="light"] .key-point{color:#5a4b3f}
html[data-theme="light"] .caption,html[data-theme="light"] .article-body figcaption,html[data-theme="light"] .article-body .article-citations{color:#5b6662}
html[data-theme="light"] .article-hero img,html[data-theme="light"] .article-body figure img{background:#e9e6de;border-color:#cfc9bc}
html[data-theme="light"] .toc{border-top-color:#af704e}
html[data-theme="light"] .toc ol{color:#56625e}
html[data-theme="light"] .article-table{border-color:#cfcbc2;scrollbar-color:#ac7657 #ebe7de}
html[data-theme="light"] .article-table table{color:#303937}
html[data-theme="light"] .article-table th,html[data-theme="light"] .article-table td{border-color:#d6d1c7}
html[data-theme="light"] .article-table th{background:#dedbd1;color:#2c3330}
html[data-theme="light"] .article-table tr:nth-child(odd){background:#f6f3ec}
html[data-theme="light"] .article-table tr:nth-child(even){background:#ece8df}
html[data-theme="dark"] .article-header h1,html[data-theme="dark"] .article-body h2{color:#e3e6e3}
html[data-theme="dark"] .article-header,html[data-theme="dark"] .article-body{color:#d8ddda}
html[data-theme="dark"] .dek{color:#b9c3c2}
html[data-theme="dark"] .article-body .summary,html[data-theme="dark"] .article-author{background:#252c31;color:#d9dfdd;border-color:#ad7454}
html[data-theme="dark"] .article-body blockquote,html[data-theme="dark"] .summary strong{color:#dda77f}
html[data-theme="dark"] .key-point{color:#d6aa88}
html[data-theme="dark"] .article-body a,html[data-theme="dark"] .article-author a{color:#e2a780}
html[data-theme="dark"] .article-hero img,html[data-theme="dark"] .article-body figure img{background:#252c30;border-color:#475258}
html[data-theme="dark"] .article-table th{background:#303940;color:#e1e6e3}
html[data-theme="dark"] .article-table tr:nth-child(odd){background:#20272c}
html[data-theme="dark"] .article-table tr:nth-child(even){background:#272f34}
@media(max-width:900px){html[data-theme] .article-layout{grid-template-columns:minmax(0,1fr);gap:22px}html[data-theme="light"] .toc a{background:#ebe6dc;border-color:#d0c8ba;color:#36413d}html[data-theme="dark"] .toc a{background:#252d32;border-color:#465159;color:#d7dcd9}}
@media(max-width:640px){html[data-theme] .article-header h1{font-size:clamp(32px,8vw,43px)}html[data-theme] .article-body{font-size:17px;line-height:1.72}html[data-theme] .article-body h2{font-size:clamp(25px,6.5vw,31px)}html[data-theme] .article-body blockquote{font-size:22px}}

/* The front page follows the same choice, including its cards and navigation. */
html[data-theme="light"] .edition-page{background:#f4f1e9;color:#27302f}
html[data-theme="light"] .edition-card,html[data-theme="light"] .edition-category{background:#fbfaf6}
html[data-theme="light"] .edition-nav{background:#fbfaf6}
html[data-theme="dark"] .edition-page{background:#1a1e23;color:#dce1e0}
html[data-theme="dark"] .edition-nav{background:#252b30;border-bottom-color:#3b454b}
html[data-theme="dark"] .edition-nav a{color:#c4cece}
html[data-theme="dark"] .edition-nav a:first-child,html[data-theme="dark"] .edition-nav .edition-nav-end{color:#dfa178}
html[data-theme="dark"] .edition-categories{border-color:#3b454b}
html[data-theme="dark"] .edition-categories>.edition-section-heading p{color:#aeb9b9}
html[data-theme="dark"] .edition-section-heading h1,html[data-theme="dark"] .edition-section-heading h2,html[data-theme="dark"] .edition-card h3{color:#dfe4e1}
html[data-theme="dark"] .edition-count,html[data-theme="dark"] .edition-card-meta span:last-child,html[data-theme="dark"] .edition-category-list small{color:#aab4b8}
html[data-theme="dark"] .edition-card,html[data-theme="dark"] .edition-category{background:#252b30;box-shadow:0 1px 0 #41494d;border-top-color:#c3835f}
html[data-theme="dark"] .edition-card p{color:#b7c0be}
html[data-theme="dark"] .edition-card-meta,html[data-theme="dark"] .edition-read,html[data-theme="dark"] .edition-kicker{color:#dba17c}
html[data-theme="dark"] .edition-category-list a{border-color:#3d484e}
html[data-theme="dark"] .edition-status{background:#292d2e;color:#d0d6d1}

html[data-theme="light"] .join-layout>div>p,html[data-theme="light"] .join-layout .join-note,html[data-theme="light"] .policy-page .join-layout article p{color:#53605c}
html[data-theme="light"] .join-layout h1,html[data-theme="light"] .join-layout h2{color:#27302f}
html[data-theme="light"] .join-steps{background:#e8e3d8;border-color:#ccc5b8;color:#303937}
html[data-theme="light"] .join-steps li{border-color:#cfc7ba}
html[data-theme="light"] .join-steps li span{color:#58635e}
html[data-theme="light"] .policy-page .join-layout a{color:#95502e}
