/* Reset — http://meyerweb.com/eric/tools/css/reset/ (public domain) */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/*
Design tokens — clean SaaS/dashboard direction: white surfaces, a slate
neutral scale, one accent colour, monospace for stat numbers. Replaces v3's
glass/blur palette entirely; same [data-theme] mechanism carried over since
dark mode itself wasn't the complaint, only the look was.
*/
html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --accent: #0891b2;
  --accent-hover: #0e7490;
  --accent-soft: rgba(8, 145, 178, 0.08);
  --accent-contrast: #ffffff;
  --success: #16a34a;
  --success-soft: rgba(22, 163, 74, 0.1);
  --error: #dc2626;
  --error-soft: rgba(220, 38, 38, 0.1);
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 10px;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', 'Menlo', monospace;
}
html[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #16202f;
  --surface-alt: #1c2838;
  --border: #2a3648;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --accent: #22d3ee;
  --accent-hover: #67e8f9;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-contrast: #06222b;
  --success: #4ade80;
  --success-soft: rgba(74, 222, 128, 0.12);
  --error: #f87171;
  --error-soft: rgba(248, 113, 113, 0.12);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.45);
}
body {
  font-size: 16px;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
.icon {
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  flex-shrink: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
}
code,
.mono {
  font-family: var(--mono);
}
/*
Nav — plain, bordered, sticky. No blur/glass.
*/
nav {
  box-sizing: border-box;
  width: 100%;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  height: 64px;
  gap: 2rem;
  position: sticky;
  top: 0;
  z-index: 20;
}
nav .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}
nav .logo .icon {
  width: 1.5em;
  height: 1.5em;
  color: var(--accent);
}
nav .nav-links {
  flex: 1;
  display: flex;
  gap: 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}
nav .nav-links a {
  color: var(--text-muted);
  transition: color 0.15s;
}
nav .nav-links a:hover {
  color: var(--accent);
}
@media screen and (max-width: 640px) {
  nav .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.25rem 1.5rem 0.5rem;
    box-shadow: var(--shadow-md);
  }
  nav .nav-links a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }
  nav .nav-links a:last-child {
    border-bottom: none;
  }
  nav .nav-links.open {
    display: flex;
  }
}
nav .nav-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
nav #nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: background-color 0.15s;
}
nav #nav-toggle:hover {
  background-color: var(--surface-alt);
}
nav #nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
nav #nav-toggle .icon-close {
  display: none;
}
nav #nav-toggle.open .icon-open {
  display: none;
}
nav #nav-toggle.open .icon-close {
  display: block;
}
@media screen and (max-width: 640px) {
  nav #nav-toggle {
    display: inline-flex;
  }
}
nav #dark-mode-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-muted);
  transition: background-color 0.15s;
}
nav #dark-mode-label:hover {
  background-color: var(--surface-alt);
}
nav #dark-mode-label .icon {
  position: absolute;
  transition: opacity 0.15s, transform 0.15s;
}
nav #dark-mode-label .icon.sun {
  opacity: 1;
  transform: scale(1);
}
nav #dark-mode-label .icon.moon {
  opacity: 0;
  transform: scale(0.5);
}
nav #dark-mode-label input {
  display: none;
}
nav #dark-mode-label input:checked ~ .icon.sun {
  opacity: 0;
  transform: scale(0.5);
}
nav #dark-mode-label input:checked ~ .icon.moon {
  opacity: 1;
  transform: scale(1);
}
main {
  display: flex;
  justify-content: space-between;
  min-height: calc(100vh - 64px);
}
@media screen and (max-width: 900px) {
  main {
    flex-direction: column;
  }
}
article {
  box-sizing: border-box;
  width: 100%;
  padding: 3rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
}
@media screen and (max-width: 640px) {
  article {
    padding: 2rem 1.25rem 3rem;
  }
}
article h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
}
@media screen and (max-width: 640px) {
  article h1 {
    font-size: 2rem;
  }
}
article h2 {
  font-size: 1.6rem;
  line-height: 1.35;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}
article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  color: var(--text);
}
article h4 {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-muted);
  margin: 1.5rem 0 0.5rem;
}
article p,
article li {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.1rem;
  color: var(--text-muted);
}
article strong {
  color: var(--text);
  font-weight: 600;
}
article p a,
article li a,
article dd a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-style 0.15s;
}
article p a:hover,
article li a:hover,
article dd a:hover {
  color: var(--accent-hover);
  text-decoration-style: solid;
}
article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}
article code {
  background-color: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  margin: 0 0 1.5rem;
  display: inline-block;
  font-size: 0.95rem;
}
article p code,
article li code {
  display: inline;
  margin: 0;
  padding: 0.15rem 0.4rem;
}
article img {
  max-width: 50%;
  height: auto;
  border-radius: var(--radius);
}
article img.right {
  float: right;
  margin-left: 2rem;
}
@media screen and (max-width: 640px) {
  article img {
    max-width: 100%;
  }
}
article ul {
  padding-left: 1.5rem;
  padding-bottom: 1rem;
}
article ul li {
  list-style: disc;
  margin-bottom: 0.4rem;
}
article blockquote {
  position: relative;
  margin: 2.5rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--accent);
}
article blockquote .quote {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.4rem;
}
article blockquote .source {
  font-size: 0.9rem;
  color: var(--text-muted);
}
article section.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-sizing: border-box;
}
@media screen and (max-width: 640px) {
  article section.card {
    padding: 1.25rem;
  }
}
aside {
  width: 320px;
  flex-shrink: 0;
  padding: 2rem 1.5rem;
  box-sizing: border-box;
}
@media screen and (max-width: 900px) {
  aside {
    width: 100%;
    padding: 0 1.5rem 2rem;
  }
}
aside .ad {
  position: sticky;
  top: 5rem;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--surface-alt);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  min-height: 250px;
  overflow: hidden;
}
aside .ad ins {
  display: block;
  width: 100%;
}
/*
Buttons
*/
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, opacity 0.15s;
}
.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-primary {
  background-color: var(--accent);
  color: var(--accent-contrast);
}
.btn-primary:hover:not(:disabled) {
  background-color: var(--accent-hover);
}
.btn-secondary {
  background-color: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
/*
Forms
*/
.field {
  margin-bottom: 1.1rem;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.field label em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.6;
  margin-left: 0.4rem;
  font-size: 0.8rem;
}
.field.checkbox-field label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 400;
  cursor: pointer;
}
.field.checkbox-field input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.field.checkbox-field input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
select,
input[type="text"],
input[type="number"],
input[type="url"] {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
select:focus,
input[type="text"]:focus,
input[type="number"]:focus,
input[type="url"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.5rem;
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
html[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
input[type="number"] {
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.labeled-input {
  position: relative;
  display: flex;
  align-items: center;
}
.labeled-input .icon,
.labeled-input .prefix {
  position: absolute;
  left: 0.75rem;
  color: var(--text-faint);
  pointer-events: none;
}
.labeled-input input {
  width: 100%;
  box-sizing: border-box;
  padding-left: 2.25rem;
}
.labeled-input .suffix {
  position: absolute;
  right: 0.75rem;
  color: var(--text-faint);
  font-size: 0.85rem;
  pointer-events: none;
}
/*
Search box — used on homepage + /blog/
*/
.search.field {
  position: relative;
  max-width: 26rem;
}
.search.field .icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
}
.search.field input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  border-radius: 24px;
  font-size: 1rem;
}
#search-count {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin: 0.75rem 0 1.25rem;
}
/*
Article index grid (homepage teaser + /blog/) — plain bordered cards,
accent border + shadow lift on hover, no colourful glow effect.
*/
#articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}
#articles .item {
  display: block;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
#articles .item mark.highlight {
  background: var(--accent-soft);
  color: inherit;
  border-radius: 3px;
  padding: 0 0.1rem;
}
#articles .item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
#articles .item.no-results {
  pointer-events: none;
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-faint);
  font-weight: 400;
}
.also {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 2rem;
}
@media screen and (max-width: 640px) {
  .also {
    grid-template-columns: 1fr;
  }
}
.also .item {
  display: block;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.also .item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
/*
Homepage
*/
.homepage main {
  display: block;
}
.homepage article {
  max-width: 720px;
  text-align: center;
  padding-top: 4rem;
}
.homepage article .logo-icon {
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-soft);
  color: var(--accent);
  border-radius: 14px;
  margin-bottom: 1.5rem;
}
.homepage article .logo-icon .icon {
  width: 1.8rem;
  height: 1.8rem;
}
.homepage article h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.homepage article .dictionary-entry {
  max-width: 28rem;
  margin: 0 auto 2rem;
  text-align: left;
  background-color: var(--surface-alt);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  box-sizing: border-box;
}
.homepage article .dictionary-entry .pronunciation {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}
.homepage article .dictionary-entry .pronunciation .pos {
  font-style: normal;
  font-variant: small-caps;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  margin-left: 0.5rem;
}
.homepage article .dictionary-entry .definition {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 0;
}
.homepage article .dictionary-entry .definition code {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font-size: 0.95em;
}
.homepage article .search.field {
  margin: 0 auto 0.5rem;
}
.homepage article #search-count {
  text-align: center;
}
.homepage #mini-calculator {
  text-align: left;
  margin: 2rem auto;
  max-width: 640px;
}
.homepage .also-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 3rem 0 1rem;
  text-align: left;
}
.homepage .also-heading h3 {
  font-size: 1.3rem;
}
.homepage .also-heading .also-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}
.homepage .also-heading .also-all:hover {
  color: var(--accent-hover);
}
.homepage .also {
  text-align: left;
}
/*
Mini calculator (embedded in blog posts + homepage)
*/
#mini-calculator {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}
@media screen and (max-width: 640px) {
  #mini-calculator {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1rem;
  }
  #mini-calculator .mini-calc-operator {
    display: none;
  }
  #mini-calculator .mini-calc-field {
    width: 100%;
  }
  #mini-calculator .mini-calc-result {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
  }
  #mini-calculator .mini-calc-result label {
    margin-bottom: 0;
  }
}
#mini-calculator > div {
  flex-shrink: 0;
}
#mini-calculator label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  white-space: nowrap;
}
#mini-calculator label.spacer {
  visibility: hidden;
}
#mini-calculator label.align-right {
  text-align: right;
}
#mini-calculator input {
  width: 8rem;
  box-sizing: border-box;
  font-family: var(--mono);
  font-size: 1.1rem;
}
@media screen and (max-width: 640px) {
  #mini-calculator input {
    width: 100%;
  }
}
#mini-calculator .field {
  position: relative;
  margin-bottom: 0;
}
#mini-calculator .field .icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
}
#mini-calculator .field input {
  padding-left: 2.2rem;
}
#mini-calculator .static-input {
  font-family: var(--mono);
  font-size: 1.1rem;
  padding: 0.5rem 0;
  color: var(--text-muted);
}
#mini-calculator #mini-pagerpm {
  color: var(--accent);
  font-weight: 700;
  text-align: right;
  min-width: 6.5rem;
}
.mini-calculator-cta a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent);
}
.mini-calculator-cta a:hover {
  color: var(--accent-hover);
}
/*
Comprehensive calculator
*/
#calculator .calc-grid {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
@media screen and (max-width: 900px) {
  #calculator .calc-grid {
    flex-direction: column;
  }
}
#calculator .calc-inputs,
#calculator .calc-results {
  flex: 1;
  min-width: 0;
}
#calculator .field.affiliate,
#calculator .field.sales {
  display: none;
}
#calculator #results-segment {
  position: sticky;
  top: 5.5rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-sizing: border-box;
}
#calculator #results-segment .result-stat {
  text-align: center;
  padding: 0.5rem 0 1rem;
}
#calculator #results-segment .result-stat .value {
  font-family: var(--mono);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--accent);
}
#calculator #results-segment .result-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
#calculator #results-segment .result-stat.secondary {
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
}
#calculator #results-segment .result-stat.secondary .value {
  font-size: 1.4rem;
  color: var(--text);
}
#calculator #results-segment .result-stat.secondary .label {
  margin-bottom: 0;
}
#calculator #results-segment .result-stat .btn-secondary {
  margin-top: 0.5rem;
}
#calculator #results-segment #period-tabs {
  margin-bottom: 0.5rem;
}
#calculator #results-segment .result-rows .result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
}
#calculator #results-segment .result-rows .result-row:first-child {
  border-top: none;
}
#calculator #results-segment .result-rows .result-row .result-label {
  color: var(--text-muted);
}
#calculator #results-segment .result-rows .result-row .result-value {
  font-family: var(--mono);
  color: var(--text);
  white-space: nowrap;
}
#calculator #results-segment .result-rows .result-row.highlight .result-value {
  background-color: var(--success-soft);
  color: var(--success);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-weight: 700;
}
#calculator #results-segment .result-rows .result-row.affiliate,
#calculator #results-segment .result-rows .result-row.sales,
#calculator #results-segment .result-rows .result-row.total {
  display: none;
}
#benchmarks-cta {
  text-align: center;
  background-color: var(--surface-alt);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 0.5rem;
}
#benchmarks-cta h3 {
  margin-top: 0;
}
#benchmarks-cta p {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}
#benchmarks-cta .cta-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.message {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.message .icon {
  margin-right: 0.3rem;
}
.message.success {
  background-color: var(--success-soft);
  color: var(--success);
}
.message.error {
  background-color: var(--error-soft);
  color: var(--error);
}
/*
Benchmarks table (shared by /calculator/'s category table and /benchmarks/)
*/
.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
.benchmark-table th,
.benchmark-table td {
  padding: 0.65rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.benchmark-table th {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  font-weight: 600;
}
.benchmark-table td.value {
  font-family: var(--mono);
}
.benchmark-table .right {
  text-align: right;
}
.benchmark-table .empty {
  color: var(--text-faint);
  font-style: italic;
}
.benchmark-table .estimate {
  font-style: italic;
  color: var(--text-muted);
  font-weight: 400;
}
.benchmark-table .estimate sup {
  font-style: normal;
  color: var(--text-faint);
  margin-left: 0.1rem;
  font-size: 0.65em;
  position: relative;
  top: -0.5em;
  line-height: 0;
}
.benchmark-footnote {
  display: none;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin: 0.75rem 0 0;
  line-height: 1.5;
}
.benchmark-footnote span {
  display: block;
  margin-bottom: 0.25rem;
}
.benchmark-footnote span:last-child {
  margin-bottom: 0;
}
#submission-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}
.benchmark-panel {
  position: relative;
}
.benchmark-panel.locked {
  max-height: 15rem;
  overflow: hidden;
}
.benchmark-panel.locked .benchmark-table tbody {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}
.benchmark-panel.locked .unlock-overlay {
  display: flex;
}
.benchmark-panel .unlock-overlay {
  display: none;
  position: absolute;
  inset: 0;
  top: 2.2rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 1.5rem;
  box-sizing: border-box;
  background: linear-gradient(var(--surface) 0%, var(--surface) 40%, transparent 100%);
}
.benchmark-panel .unlock-overlay p {
  max-width: 26rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.benchmark-panel .unlock-overlay strong {
  color: var(--text);
}
.benchmark-panel .unlock-overlay .unlock-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.benchmark-panel .unlock-overlay #already-submitted {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-faint);
}
.benchmark-panel .unlock-overlay #already-submitted:hover {
  color: var(--accent);
}
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.tabs button {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.tabs button.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
/*
Glossary
*/
.glossary-list dt {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.75rem 0 0.4rem;
  scroll-margin-top: 5rem;
}
.glossary-list dd {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.glossary-nav {
  display: block;
  position: static;
  width: auto;
  height: auto;
  background: none;
  border-bottom: none;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}
.glossary-nav a {
  color: var(--text-muted);
}
.glossary-nav a:hover {
  color: var(--accent);
}
.glossary-nav a:not(:last-child)::after {
  content: '\00b7';
  margin: 0 0.6rem;
  color: var(--text-faint);
}
/*
Ad-networks comparison + quiz
*/
.network-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin-bottom: 2.5rem;
}
.network-table th,
.network-table td {
  padding: 0.7rem 0.6rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.network-table th {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  font-weight: 600;
}
.network-table .right {
  text-align: right;
}
#network-quiz .quiz-question {
  margin-bottom: 1.5rem;
}
#network-quiz .quiz-question[hidden] {
  display: none;
}
#network-quiz .quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
#network-quiz .quiz-option {
  font-family: inherit;
  text-align: left;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}
#network-quiz .quiz-option:hover {
  border-color: var(--accent);
  background-color: var(--accent-soft);
}
#network-quiz #quiz-result {
  display: none;
  text-align: center;
  padding: 1rem 0;
}
#network-quiz #quiz-result .value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
#network-quiz #quiz-result .label {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
/*
Share-your-RPM modal
*/
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background-color: rgba(15, 23, 42, 0.5);
  align-items: center;
  justify-content: center;
}
.modal.open {
  display: flex;
}
.modal .modal-box {
  position: relative;
  background-color: var(--surface);
  color: var(--text);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 2rem;
  max-width: 30rem;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  box-sizing: border-box;
}
.modal .modal-box .close-modal {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  cursor: pointer;
  color: var(--text-faint);
}
.modal .modal-box .close-modal:hover {
  color: var(--accent);
}
.modal .modal-box .header {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.modal .modal-box h3 {
  font-size: 1.1rem;
  line-height: 1.45;
  margin-bottom: 0.6rem;
}
.modal .modal-box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
  line-height: 1.5;
}
.modal .modal-box .fields.three {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.modal .modal-box .fields.three #share-currency-code-field {
  grid-column: span 2;
}
.modal .modal-box .fineprint {
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}
.modal .modal-box .fineprint .icon {
  margin-right: 0.2rem;
}
.modal .modal-box .divider {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
  margin: 1.25rem 0 1rem;
  padding-top: 1rem;
}
.modal .modal-box select,
.modal .modal-box input {
  width: 100%;
  box-sizing: border-box;
}
.modal .modal-box .center {
  text-align: center;
}
.modal .modal-box .center .massive {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
}
.modal .modal-box .center .massive.success {
  color: var(--success);
}
.modal .modal-box .actions {
  margin-top: 1.5rem;
  text-align: right;
}
.modal .modal-box.loading {
  opacity: 0.6;
  pointer-events: none;
}
/*
Country tiers list (blog content)
*/
.country-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 2rem;
  margin-bottom: 1.5rem;
}
@media screen and (max-width: 640px) {
  .country-grid {
    grid-template-columns: 1fr;
  }
}
.country-grid ul {
  padding-left: 1.1rem;
  padding-bottom: 0;
}
.country-grid li {
  font-size: 0.95rem;
  line-height: 1.6;
}
/*
Footer
*/
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
footer .footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
footer .footer-inner .logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  color: var(--text);
}
footer .footer-inner .logo .icon {
  color: var(--accent);
}
footer .footer-inner nav {
  position: static;
  height: auto;
  border: none;
  background: none;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
}
footer .footer-inner nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
}
footer .footer-inner nav a:hover {
  color: var(--accent);
}
footer .footer-inner .copyright {
  font-size: 0.8rem;
  color: var(--text-faint);
}
/*
Admin
*/
article.admin {
  max-width: none;
}
.admin-stat {
  text-align: center;
  margin: 1.5rem 0 2rem;
}
.admin-stat .value {
  font-family: var(--mono);
  font-size: 2.25rem;
  font-weight: 700;
}
.admin-stat .label {
  font-size: 0.8rem;
  color: var(--text-faint);
  text-transform: uppercase;
}
.table-scroll {
  overflow-x: auto;
}
#submission-table {
  width: 100%;
  border-collapse: collapse;
}
#submission-table th,
#submission-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
#submission-table td:first-child {
  white-space: normal;
  word-break: break-all;
}
#submission-table th {
  color: var(--text-faint);
  text-transform: uppercase;
  font-size: 0.7rem;
  user-select: none;
}
#submission-table th[data-sort] {
  cursor: pointer;
}
#submission-table th[data-sort]:hover {
  color: var(--accent);
}
#submission-table .right {
  text-align: right;
}
#submission-table .row-actions {
  white-space: nowrap;
}
#submission-table .row-actions .icon {
  cursor: pointer;
  color: var(--text-faint);
  margin-left: 0.75rem;
  transition: color 0.15s;
}
#submission-table .row-actions .icon:hover {
  color: var(--accent);
}
#submission-table .row-actions .icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
#submission-table .row-actions .icon.delete-submission:hover {
  color: var(--error);
}
/*# sourceMappingURL=pagerpm.css.map */