/* Final theme: blue with lotus pink */
/* Preview E — D, lifted: brighter cover colours, cleaner surfaces, softer corners */
:root{
  --ink:#1B2A44;        /* deep navy for reading */
  --ink-2:#55637A;
  --paper:#FCF8FB;--bright:#E85D9A;      /* clean, cool white */
  --sheet:#FFFFFF;
  --blue:#1F63B0;       /* cover blue, brightened */
  --robe:#B8336F;       /* cover red, brightened: questions and links */
  --robe-soft:#FBE6F0;
  --rule:#E1E6EE;
  --gold:#B08431;
  --goldlt:#F3D594;
}
body{border-top:4px solid var(--blue);box-shadow:inset 0 2px 0 #fff,inset 0 4px 0 var(--robe)}
a{color:var(--blue)}
.brand-q{color:var(--robe)}
.brand-a{padding-left:0;color:var(--ink)}
.nav a{font-weight:700;color:var(--ink-2)}
.nav a:hover,.nav a[aria-current]{color:var(--ink);border-bottom-color:var(--robe)}
.hero h1{letter-spacing:-.025em}
.hero-sample{border:0;border-radius:16px;box-shadow:0 1px 2px rgba(27,42,68,.06),0 18px 40px -12px rgba(27,42,68,.18);position:relative;overflow:hidden}
.hero-sample::before{content:"";position:absolute;inset:0 0 auto 0;height:5px;background:linear-gradient(90deg,var(--robe) 0 60%,var(--blue) 60%)}
.sample-q{color:var(--robe)}
.search input{border:1.5px solid #B9C3D0;border-radius:12px;box-shadow:0 1px 2px rgba(27,42,68,.05)}
.search input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 4px rgba(31,99,176,.15)}
.search-results{border-radius:12px}
.btn{background:var(--blue);border-radius:999px;padding:.75rem 1.4rem}
.btn:hover{background:#18559A}
.c-n{color:var(--gold);font-weight:600}
.contents a{border-radius:0}
.contents a:hover{background:linear-gradient(90deg,rgba(31,99,176,.05),transparent 70%)}
.home-langs{background:var(--blue)}
.home-langs p a,.lang-strip li:nth-child(3n+2) a{color:var(--goldlt)}
.home-about img{border-radius:12px}
.toc{border-radius:14px;border-color:var(--rule);box-shadow:0 1px 2px rgba(27,42,68,.04)}
.q{color:var(--robe)}
.a blockquote,.sayings blockquote{border-left-color:var(--goldlt)}
.chapter-no a{color:var(--gold);font-weight:700}
.pager{border-top:2px solid var(--rule)}
.pager a span{color:var(--gold);font-weight:700}
.l-cover img,.l-plain{border-radius:8px}
.l-dl{color:var(--blue);font-weight:700}
.note{border-left:0;border-radius:14px;background:var(--sheet);box-shadow:inset 4px 0 0 var(--robe)}
.author img{border-radius:12px}
.foot{background:var(--sheet);border-top:1px solid var(--rule)}

/* ambient lift */
body{background:linear-gradient(180deg,var(--robe-soft) 0,var(--paper) 34rem) no-repeat,var(--paper);box-shadow:inset 0 2px 0 #fff,inset 0 4px 0 var(--bright)}
.hero-sample::before{background:linear-gradient(90deg,var(--bright) 0 60%,var(--blue) 60%)}
.toc,.note{background:color-mix(in srgb,var(--robe-soft) 35%,#fff)}
.search input:focus{border-color:var(--robe);box-shadow:0 0 0 4px color-mix(in srgb,var(--bright) 25%,transparent)}
.lang-strip li:nth-child(3n+2) a,.home-langs p a{color:color-mix(in srgb,var(--bright) 55%,#fff)}
.a blockquote,.sayings blockquote{border-left-color:var(--bright)}
.c-n,.chapter-no a,.pager a span{color:var(--robe)}
.nav a:hover,.nav a[aria-current]{border-bottom-color:var(--bright)}

.brand{gap:.65rem}
.brand-logo{width:56px;height:56px;flex:none}

/* lines in the cover red; language names on blue in white + gold */
.lang-strip li a{color:#fff}
.lang-strip li:nth-child(3n+2) a,.home-langs p a{color:var(--lang-accent,#F3D594)}

/* top bar: one thicker blue line */
body{border-top:0;box-shadow:inset 0 6px 0 var(--blue)}
.masthead{padding-top:1.6rem}
/* all links and link lines in lotus pink */
a,.jump a,.more a,.help-list a,.note a,.archive-note a,.foot a,.home-about a,.lede a,.l-dl{color:var(--robe)}
.nav a:hover,.nav a[aria-current]{border-bottom-color:var(--bright)}
.c-n,.chapter-no a,.pager a span{color:var(--robe)}
.contents a:hover .c-t,.allq-ch h2 a:hover,.allq-ch li a:hover,.pager a:hover,.newslist a:hover span,.lang:hover .l-name,.search-results mark{color:var(--robe)}
.share:hover{color:var(--robe);border-color:var(--robe-soft)}

/* wordmark: Good Answer in blue */
.brand-a{color:var(--blue)}
/* default cover: transparent, blue frame, no card shadow */
.l-cover img.plain{box-shadow:none;border-radius:0;background:transparent}

/* plain white background, no ambient wash */
:root{--paper:#FFFFFF}
body{background:#FFFFFF}
.toc,.note,.archive-note{background:#F5F7FA}
.hero-sample{box-shadow:0 1px 2px rgba(27,42,68,.06),0 10px 30px -10px rgba(27,42,68,.16)}
.help-list li{background:#FAFBFC}
.foot{background:#F5F7FA}

/* readable quotes: upright, not italic */
.a blockquote,.sayings blockquote,.pull p,.a blockquote i,.a blockquote em,.sayings blockquote i,.pull em{font-style:normal}
.a blockquote{color:#3E4A5E;border-left:3px solid var(--bright);background:#FBF7F9;padding:.9rem 1.1rem;border-radius:0 10px 10px 0}
.a blockquote p{margin-bottom:.4rem}
.sayings blockquote{color:var(--ink)}
.pull{border-left-color:var(--bright)}
.pull p{color:#3E4A5E}
/* blue quote tone */
.a blockquote{border-left-color:var(--blue);background:#F2F6FB}
.pull{border-left-color:var(--blue)}
