/*
Theme Name: Coin Advisor Blog
Theme URI: https://coinadvisor.com/blog/
Description: A fresh, modern design for On The Money, the Coin Advisor numismatics blog. Light, main-site style: navy and gold on white, serif headlines, card grid, featured stories via sticky posts. No plugin dependencies.
Version: 2.03
Author: Coin Advisor
*/

/* =Tokens
Brand palette per the Coin Advisor Brand Color Hierarchy guide (2026-11-23):
Deep Navy leads, Gold accents, Slate supports, Ink carries the reading,
on Mist / Parchment / Porcelain grounds. Signal Red is reserved for rare
urgent flags only.
----------------------------------------------- */
:root {
  --navy: #000033;        /* Deep Navy — headlines, links, primary buttons */
  --navy-deep: #161B4A;   /* Midnight Navy — mastheads, large sections */
  --gold: #E4C028;        /* Gold — rules, highlights, CTAs; never body text */
  --gold-light: #E4C028;  /* Gold on dark grounds (eyebrows, hovers) */
  --ink: #03040B;         /* Ink — body text, footer, darkest surfaces */
  --muted: #3B475B;       /* Slate — subheads, secondary text */
  --line: rgb(159 165 175 / .45); /* Cool Gray #9FA5AF — borders, dividers */
  --cool-gray: #9FA5AF;
  --paper: #F0F3F7;       /* Mist — cool page backgrounds */
  --parchment: #FCFAF7;   /* Parchment — warm content backgrounds, cards */
  --white: #FBFBFC;       /* Porcelain — cleanest surfaces */
  --signal: #BC1A09;      /* Signal Red — urgent flags only, sparingly */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

/* =Base
----------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white); padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* =Main-site chrome: utility bar + header
----------------------------------------------- */
@font-face { font-family: 'icomoon'; src: url('assets/fonts/icomoon.woff') format('woff'), url('assets/fonts/icomoon.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
.ca-icon-phone { font-family: 'icomoon'; font-style: normal; font-weight: 400; line-height: 1; color: var(--white); }
.ca-icon-phone:before { content: "\e920"; }
.ca-topbar {
  background: var(--navy-deep);
  color: var(--white);
  font-size: 14.5px;
}
.ca-topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  align-items: center; justify-content: space-between;
  padding-top: 9px; padding-bottom: 9px;
}
.ca-topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.ca-topbar a:hover { color: var(--gold-light); }
.ca-topbar-links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.ca-topbar a.ca-shop-btn { display: inline-block; background: var(--gold); color: var(--white); font-weight: 700; font-size: 13.5px; padding: 5px 14px; border-radius: 3px; }
.ca-topbar a.ca-shop-btn:hover { background: var(--gold); color: var(--white); }
.ca-topbar .ca-shipping { color: var(--gold-light); font-weight: 600; }
.ca-topbar, .ca-footer { font-family: 'Inter', 'Source Sans 3', sans-serif; letter-spacing: 0; }
.ca-topbar .wrap > span { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 639.98px) {
  .ca-topbar .wrap { padding: 9px 10px; }
  .ca-topbar .wrap > span { font-size: 13px; }
  .ca-topbar a.ca-shop-btn { font-size: 12px; padding: 7px 10px; }
}

.ca-header { background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(0, 0, 51, 0.08); }
.ca-header .wrap {
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  align-items: center; justify-content: space-between;
  padding-top: 7px; padding-bottom: 7px;
}
.ca-brand { text-decoration: none; }
.ca-brand img { display: block; width: 224px; height: auto; max-width: 225px; }
.ca-brand img.ca-brand-badge { display: none; }
.ca-otm-header { display: none; }
.ca-header-tagline { display: none; }
.ca-search.ca-header-search { display: none; }
@media (max-width: 639.98px) {
  .ca-header .wrap { justify-content: space-between; gap: 0 16px; padding-left: 12px; padding-right: 12px; }
  .ca-brand { align-self: flex-end; transform: translateY(5px); }
  .ca-brand img.ca-brand-logo { height: auto; max-width: 150px; }
  .ca-otm-header { display: block; align-self: center; }
  .ca-otm-header img { display: block; height: 54px; width: auto; }
  .ca-masthead h1 { display: none; }
  .ca-masthead .ca-tagline { display: none; }
  .ca-search.ca-header-search { display: none; }
  .ca-header-tagline { display: block; flex: 1 1 100%; margin: -2px 0 0; text-align: right; color: var(--muted); font-size: 10.5px; line-height: 1.15; }
}
.ca-shop-link {
  display: inline-block; background: var(--navy); color: var(--white) !important;
  text-decoration: none; font-weight: 700; font-size: 15.5px;
  padding: 10px 20px; border-radius: 999px;
}
.ca-shop-link:hover { background: var(--gold); color: var(--white) !important; }

/* =Blog masthead
----------------------------------------------- */
.ca-masthead { text-align: center; padding: 22px 0 8px; }
.ca-masthead.wrap { padding-left: 20px; padding-right: 20px; }
.ca-masthead img.ca-otm-logo { max-height: 115px; width: auto; }
.ca-masthead h1 {
  font-family: var(--serif); font-size: clamp(42px, 6vw, 64px);
  line-height: 1.05; margin: 10px 0 0; color: var(--navy);
}
.ca-masthead h1 img { display: block; margin: 0 auto; }
.ca-masthead .ca-tagline { font-size: 19px; color: var(--muted); margin: 0 0 22px; }
.ca-header-tagline, .ca-masthead .ca-tagline { font-family: 'Inter', 'Source Sans 3', sans-serif; }
.ca-search { display: flex; justify-content: center; margin: 0 0 26px; }
.ca-search form { display: flex; width: min(480px, 100%); }
.ca-search input[type="search"] {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 14px;
  background: var(--paper); border: 1px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px;
}
.ca-search button,
.ca-search input[type="submit"] {
  font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  background: var(--navy); color: var(--white); border: 1px solid var(--navy);
  padding: 11px 18px; border-radius: 0 6px 6px 0;
}
.ca-search button:hover,
.ca-search input[type="submit"]:hover { background: var(--navy); border-color: var(--navy); }
.ca-cats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; margin: 0 0 8px; padding: 0; }
.ca-cats a {
  display: inline-block; text-decoration: none; font-family: 'Inter', 'Source Sans 3', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: -0.01rem;
  color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
}
.ca-cats a:hover, .ca-cats .current-cat a { background: var(--navy); color: var(--white); border-color: var(--navy); }
/* Buttons speak Inter: a modern UI sans, distinct from the Source Sans body text. */
.ca-topbar a.ca-shop-btn, .ca-search button, .ca-search input[type="submit"], .ca-cta a, section.ca-signup button { font-family: 'Inter', 'Source Sans 3', sans-serif; letter-spacing: 0.01em; }
.ca-topbar a.ca-shop-btn { letter-spacing: 0; }
.ca-cats .ca-cat-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; margin-left: 7px; border-radius: 999px; background: var(--gold); color: var(--white); font-size: 12.5px; font-weight: 400; line-height: 1; vertical-align: middle; }
@media (max-width: 639.98px) { .ca-cats .ca-cat-count { min-width: 18px; height: 18px; font-size: 10.5px; margin-left: 5px; } }
/* Mobile pills MUST stay after the base .ca-cats a rule above: same specificity, so the later rule wins. A copy in the early header media block loses to the 15px base rule. */
@media (max-width: 639.98px) { .ca-cats a { font-size: 10px; padding: 4px 6px 4px 8px; } }

/* =Sections
----------------------------------------------- */
.ca-section { padding: 36px 0; }
.ca-section-title {
  font-family: var(--serif); font-size: 32px; line-height: 1.15;
  color: var(--navy); margin: 0 0 6px;
}
.ca-section-sub { color: var(--muted); margin: 0 0 26px; }
.ca-rule { width: 56px; height: 3px; background: var(--gold); border: 0; margin: 0 0 22px; }
.ca-intro { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ca-intro p { max-width: 820px; margin: 0 auto; font-size: 19px; color: var(--muted); }

/* =Hero story
----------------------------------------------- */
.ca-hero { display: block; text-decoration: none; color: inherit; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.ca-hero:hover { color: inherit; text-decoration: none; }
.ca-hero-media { background: linear-gradient(120deg, var(--navy-deep), var(--navy) 55%, #3B475B); color: var(--white); padding: clamp(28px, 5vw, 56px); }
.ca-hero-media .ca-eyebrow { color: var(--gold-light); }
.ca-hero-media h2 { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 48px); line-height: 1.1; margin: 8px 0 12px; }
.ca-hero-media p { color: var(--white); max-width: 640px; margin: 0; }
.ca-hero img { display: block; width: 100%; }
.ca-hero-body { padding: 22px 26px 26px; }
.ca-hero-body h2 { font-family: var(--serif); font-size: 34px; line-height: 1.15; color: var(--navy); margin: 0 0 10px; }
.ca-hero-body p { color: var(--muted); margin: 0 0 14px; }
.ca-readmore { font-weight: 700; color: var(--gold); }
.ca-hero:hover .ca-readmore { text-decoration: underline; }

/* =Card grid
----------------------------------------------- */
.ca-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ca-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .ca-grid { grid-template-columns: 1fr 1fr 1fr; } }
.ca-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--white); transition: box-shadow .2s ease, transform .2s ease;
}
.ca-card:hover { color: inherit; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 51, .12); transform: translateY(-2px); }
.ca-card-media { background: linear-gradient(120deg, var(--navy-deep), #3B475B); background-image: url('assets/blog-walking-liberty-card-bg-edge.png'), linear-gradient(120deg, var(--navy-deep), #3B475B); background-position: bottom right, 0 0; background-repeat: no-repeat; background-size: 100% auto, auto; min-height: 148px; display: flex; align-items: flex-end; padding: 18px 20px; }
.ca-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ca-card-media.has-img { padding: 0; min-height: 148px; }
.ca-card-media.has-img img { height: 148px; }
.ca-card-media .ca-eyebrow { color: var(--gold-light); }
.ca-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.ca-card-body h3 { font-family: var(--serif); font-size: 25px; line-height: 1.2; margin: 0 0 10px; color: var(--navy); }
.ca-card-body p { color: var(--muted); font-size: 16.5px; line-height: 1.35; margin: 0 0 16px; flex: 1; }
.ca-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); }
.ca-meta { font-size: 14.5px; color: var(--muted); }
.ca-meta a { color: var(--muted); }

/* =Pagination
----------------------------------------------- */
.ca-pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.ca-pagination .page-numbers, .ca-pagination a {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 16px;
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 15px; color: var(--navy);
}
.ca-pagination .current, .ca-pagination a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* =Article
----------------------------------------------- */
.ca-breadcrumb { font-size: 15px; color: var(--muted); margin: 30px 0 4px; }
.ca-breadcrumb a { color: var(--muted); }
.ca-article { max-width: 880px; margin: 0 auto; padding: 0 24px 20px; }
.ca-article h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 54px); line-height: 1.08; color: var(--navy); margin: 6px 0 14px; }
.ca-byline { color: var(--muted); font-size: 16px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 26px; }
.ca-byline a { color: var(--muted); }
.ca-article-hero { border-radius: 12px; overflow: hidden; margin-bottom: 30px; }
.ca-article-hero img { display: block; width: 100%; }
.ca-article-hero--band {
  background: linear-gradient(120deg, var(--navy-deep), #3B475B);
  background-image: url('assets/blog-walking-liberty-card-bg-edge.png'), linear-gradient(120deg, var(--navy-deep), #3B475B);
  background-position: bottom right, 0 0;
  background-repeat: no-repeat;
  background-size: 500px auto, auto;
  min-height: 260px; display: flex; align-items: flex-end; padding: 24px;
}
.ca-article-hero--band .ca-eyebrow { color: var(--gold-light); }
.ca-content h2, .ca-content h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 34px 0 12px; }
.ca-content h2 { font-size: 31px; }
.ca-content h3 { font-size: 27px; }
.ca-content p { margin: 0 0 18px; }
/* v1.65: wpautop wraps each post's trailing JSON-LD script + editor-note comments in a <p>; it renders as a blank gap before the CTA. Hide that paragraph (the schema stays in the page source). */
.ca-content > p:has(> script[type="application/ld+json"]) { display: none; }
/* v1.65: hide the "Comments are closed." notice on articles. */
.ca-article .nocomments { display: none; }
.ca-content figure { margin: 26px 0; }
.ca-content figcaption { font-size: 14.5px; color: var(--muted); text-align: center; margin-top: 8px; }
.ca-content table { border-collapse: collapse; font-size: inherit; margin: 40px auto 60px; min-width: 85%; }
@media (max-width: 639.98px) { .ca-content table { font-size: 14.85px; display: block; overflow-x: auto; } }
.ca-content table tr { border-bottom: 1px solid var(--line); }
.ca-content table th { padding: 10px 15px; }
.ca-content table td { padding: 10px 15px; }
.ca-content table th { text-align: left; }
.ca-content table td:first-child { white-space: nowrap; }

/* Key Takeaways box: wrapped at render by ca_wrap_takeaways() in functions.php */
.ca-content .ca-takeaways { background-color: var(--parchment); border: 1px solid var(--line); padding: 30px 40px 15px 40px; width: 90%; max-width: 600px; margin: 0 auto 18px; }
.ca-content .ca-takeaways h2 { margin: 0 0 12px; }
.ca-content .ca-takeaways ul { margin: 0; margin-left: 4px; padding-left: 0; list-style: none; }
.ca-content .ca-takeaways li { position: relative; padding-left: 18px; margin-bottom: 15px; }
.ca-content .ca-takeaways li::before { content: ''; position: absolute; left: 0; top: calc(0.9em - 2px); width: 9px; height: 9px; background: currentColor; transform: translateY(-50%); }
@media (max-width: 639.98px) {
  .ca-content .ca-takeaways { padding: 15px 20px 0 20px; font-size: 14.4px; line-height: 1.15; margin: 20px auto 20px; }
  .ca-content .ca-takeaways h2 { font-size: 24.8px; line-height: 1.15; }
  .ca-content .ca-takeaways li::before { top: calc(0.9em - 5px); }
}

/* =CTA + signup bands
----------------------------------------------- */
.ca-cta { background: var(--navy); color: var(--white); border-radius: 12px; padding: 30px 32px; text-align: center; margin: 38px 0; }
.ca-cta p { margin: 0 0 16px; font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.ca-cta a { display: inline-block; background: var(--gold); color: var(--white) !important; text-decoration: none; font-weight: 700; font-size: 13.5px; padding: 5px 14px; border-radius: 3px; }
.ca-cta a:hover { background: var(--gold); color: var(--white); }
.ca-signup { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.ca-signup h2 { font-family: var(--serif); font-size: 32px; color: var(--navy); margin: 0 0 8px; }
.ca-signup p { color: var(--muted); max-width: 620px; margin: 0 auto 20px; }
.ca-signup form { display: flex; gap: 0; justify-content: center; max-width: 480px; margin: 0 auto; }
.ca-signup input[type="email"] { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px; }
.ca-signup button { font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; background: var(--navy); color: var(--white); border: 1px solid var(--navy); padding: 12px 20px; border-radius: 0 6px 6px 0; }
.ca-signup button:hover { background: var(--navy); border-color: var(--navy); }
.ca-signup small { display: block; color: var(--muted); margin-top: 14px; }
@media (max-width: 639.98px) { .ca-signup h2 { font-size: 26px; } }

/* =Footer
----------------------------------------------- */
.ca-footer { background: var(--ink); color: var(--white); font-size: 15.5px; line-height: 1.25; }
.ca-footer .wrap { padding-top: 100px; padding-bottom: 100px; display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; align-items: flex-start; }
.ca-footer a { color: var(--white); text-decoration: none; font-size: 14.5px; letter-spacing: -0.01rem; }
.ca-footer a:hover { color: var(--gold-light); }
.ca-footer .ca-foot-brand { display: block; text-align: center; }
.ca-footer .ca-foot-logo { width: 239px; max-width: none; height: auto; padding-right: 0; flex: none; }
.ca-footer .ca-foot-info { margin-top: 7px; }
.ca-footer .ca-foot-info span { font-size: 14px; }
.ca-footer .ca-foot-info .ca-foot-tagline { font-size: 14px; white-space: nowrap; }
.ca-foot-cols { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px 40px; align-items: start; width: 100%; }
.ca-foot-cat { margin-bottom: 20px; }
.ca-foot-cat:last-child { margin-bottom: 0; }
.ca-footer a.ca-foot-cat-name { font-weight: 500; }
.ca-foot-posts { list-style: none; margin: 6px 0 0; padding: 0; }
.ca-foot-posts li { margin: 0 0 4px; }
.ca-foot-catlist { list-style: none; margin: 0; padding: 0; }
.ca-foot-catlist li {
    margin: 0 0 24px;
}
.ca-foot-catlist a { font-weight: 300; }
@media (max-width: 639.98px) { .ca-foot-cols { grid-template-columns: 1fr 1fr; column-gap: 0; width: 100%; } .ca-foot-col:empty { display: none; } .ca-foot-col-brand { grid-column: 1 / -1; margin-top: 50px; text-align: center; } .ca-footer .ca-foot-logo { width: 180px; padding-right: 0; } .ca-foot-catlist a { font-size: 11px; } .ca-footer .wrap { padding-top: 60px; } }

/* Understanding Pedigree cards use the slab background instead of Walking Liberty */
.ca-card.ca-cat-designations-explained .ca-card-media, .ca-article-hero--band.ca-cat-designations-explained { background-image: url('assets/blog-designations-explained-card-bg-6.png'), linear-gradient(120deg, var(--navy-deep), #3B475B); }

/* Coin Designers cards use the designers portrait background instead of Walking Liberty */
.ca-card.ca-cat-coin-designers .ca-card-media, .ca-article-hero--band.ca-cat-coin-designers { background-image: url('assets/blog-coin-designers-card-bg-alt-4.png'), linear-gradient(120deg, var(--navy-deep), #3B475B); }

/* U.S. Mint Locations cards use the Mint building photo instead of Walking Liberty */
.ca-card.ca-cat-u-s-mint-locations .ca-card-media, .ca-article-hero--band.ca-cat-u-s-mint-locations { background-image: url('assets/blog-mint-locations-card-bg-alt-4.png'), linear-gradient(120deg, var(--navy-deep), #3B475B); }

/* History of Numismatics cards use the historical portrait instead of Walking Liberty */
.ca-card.ca-cat-history-of-coins .ca-card-media, .ca-article-hero--band.ca-cat-history-of-coins, .ca-card.ca-cat-us-mint-bios .ca-card-media, .ca-article-hero--band.ca-cat-us-mint-bios, .ca-card.ca-cat-world-mint-bios .ca-card-media, .ca-article-hero--band.ca-cat-world-mint-bios { background-image: url('assets/blog-history-of-numismatics-card-bg-6.png'), linear-gradient(120deg, var(--navy-deep), #3B475B); }

/* Coins of the U.S. Mint cards use the dual-date Liberty image instead of the standard Liberty */
.ca-card.ca-cat-us-coins .ca-card-media, .ca-article-hero--band.ca-cat-us-coins { background-image: url('assets/blog-walking-liberty-card-bg-edge.png'), linear-gradient(120deg, var(--navy-deep), #3B475B); }

/* =Alternate home template (template-home-mobile.php)
The mobile header arrangement at every width: Coin Advisor logo left,
On The Money logo right in the header, tagline underneath it, and the
masthead reduced to search + category pills. Scoped to the template's
ca-alt-mobile body class and placed last so it wins over the base rules
above; the regular pages keep the desktop header. Values mirror the
max-width: 639.98px header block exactly.
----------------------------------------------- */
body.ca-alt-mobile .ca-header .wrap { justify-content: space-between; gap: 0 16px; padding-left: 12px; padding-right: 12px; }
body.ca-alt-mobile .ca-brand { align-self: flex-end; transform: translateY(5px); }
body.ca-alt-mobile .ca-brand img.ca-brand-logo { height: auto; max-width: 150px; }
body.ca-alt-mobile .ca-otm-header { display: block; align-self: center; }
body.ca-alt-mobile .ca-otm-header img { display: block; height: 54px; width: auto; }
body.ca-alt-mobile .ca-masthead h1 { display: none; }
body.ca-alt-mobile .ca-masthead .ca-tagline { display: none; }
body.ca-alt-mobile .ca-masthead { margin-top: 30px; }
body.ca-alt-mobile .ca-header-tagline { display: block; flex: 1 1 100%; margin: -2px 0 0; text-align: right; color: var(--muted); font-size: 10.5px; line-height: 1.15; }
/* Pills: no alt override — the alternate template uses the main template's pill sizes (15px desktop, 10px mobile). */
/* Alternate template on desktop: Coin Advisor logo width 224px, On The Money logo width 150px (height auto), tagline 13px, header padding +10px top and bottom (7px → 17px); mobile widths keep the base alt sizes above. */
@media (min-width: 640px) {
  body.ca-alt-mobile .ca-header .wrap { padding-top: 17px; padding-bottom: 17px; }
  body.ca-alt-mobile .ca-brand img.ca-brand-logo { width: 224px; max-width: 224px; }
  body.ca-alt-mobile .ca-otm-header img { width: 150px; height: auto; }
  body.ca-alt-mobile .ca-header-tagline { font-size: 13px; }
}

/* =Desktop home template (template-home-desktop.php)
A third home layout, designed for desktop: a different Coin Advisor logo
in the header (the On The Money header logo is removed), the tagline
under the logo and the search below the tagline (centered stack at
783.98px and below), and the masthead reduced to the category pills.
Scoped to the template's
ca-alt-desktop body class and placed last so it wins over the base rules;
the regular home page and the mobile-layout template are untouched.
The desktop-layout logo image is hidden everywhere except this template.
----------------------------------------------- */
.ca-brand img.ca-brand-logo-desktop { display: none; }
.ca-brand.ca-brand-desktop { display: none; }
body.ca-alt-desktop a.ca-brand:not(.ca-brand-desktop) { display: none; }
body.ca-alt-desktop .ca-brand.ca-brand-desktop { display: block; flex: 0 0 auto; }
body.ca-alt-desktop .ca-header .wrap { padding-top: 17px; padding-bottom: 17px; }
body.ca-alt-desktop .ca-brand img.ca-brand-logo { display: none; }
body.ca-alt-desktop .ca-brand img.ca-brand-logo-desktop { display: block; width: 224px; height: auto; max-width: 224px; }
body.ca-alt-desktop .ca-otm-header { display: none; }
body.ca-alt-desktop .ca-search.ca-header-search { display: flex; order: 2; flex: 1 1 100%; min-width: 0; justify-content: flex-start; margin: 0; }
body.ca-alt-desktop .ca-header-search form { width: 100%; max-width: 480px; }
body.ca-alt-desktop .ca-header-tagline { display: block; order: 1; flex: 1 1 100%; margin: 2px 0 0; text-align: left; color: var(--muted); font-size: 14px; line-height: 1.15; }
body.ca-alt-desktop .ca-masthead h1 { display: none; }
body.ca-alt-desktop .ca-masthead .ca-tagline { display: none; }
body.ca-alt-desktop .ca-masthead .ca-search { display: none; }
body.ca-alt-desktop .ca-masthead { margin-top: 10px; }
/* Header order (v2.03, 2026-11-24, owner spec): at 784px and wider
   the header stacks logo, then the tagline under the logo, then the
   search above nothing else (the order and flex rules above). At
   783.98px and below the same stack runs with logo, tagline and
   search all centered. The brand rule below must carry the
   .ca-brand-desktop class: the base rule sets flex: 0 0 auto at
   higher specificity, which is why the logo stayed left before. */
@media (max-width: 783.98px) {
  body.ca-alt-desktop .ca-header .wrap { row-gap: 10px; }
  body.ca-alt-desktop .ca-brand.ca-brand-desktop { flex: 1 1 100%; align-self: center; transform: none; }
  body.ca-alt-desktop .ca-brand img.ca-brand-logo-desktop { width: 180px; max-width: 180px; margin: 0 auto; }
  body.ca-alt-desktop .ca-header-tagline { order: 1; margin: 0; font-size: 14.75px; line-height: 1.2; text-align: center; white-space: nowrap; }
  body.ca-alt-desktop .ca-search.ca-header-search { order: 2; flex: 1 1 100%; justify-content: center; margin: 0; min-width: 0; }
  body.ca-alt-desktop .ca-header-search form { width: 100%; min-width: 0; margin: 0 auto; }
}

/* Preview cards (all categories, everywhere the card appears): fixed
   470px height; the body text fades out at the bottom into a "Read More"
   cue (owner, 2026-11-07; first applied to History of Coins at 360px,
   then extended to all preview cards at 440px, raised to 480px and then
   set to 470px the same
   day; the fade overlay was later extended via its top padding,
   40px → 60px → 70px, and its bottom padding set to 20px, moving the
   label 10px closer to the card's bottom edge). CSS-only:
   the card markup is unchanged. */
.ca-card { height: 470px; position: relative; }
.ca-card .ca-card-body { overflow: hidden; min-height: 0; }
.ca-card::after {
  content: "Read More \2192";
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 70px 22px 20px;
  background: linear-gradient(to bottom, rgba(251, 251, 252, 0), var(--white) 45%);
  color: var(--gold); font-weight: 700; font-size: 15px;
  pointer-events: none;
}

/* =Author archive (v2.01): photo, bio, social links, post grid.
The Gravatar verification link on Julian Goldenthal's page renders as
a simple labeled pill; the anchor carries rel="me" to his Gravatar
profile (gravatar.com/jgoldenthal1).
----------------------------------------------- */
.ca-author-head { display: flex; gap: 28px; align-items: flex-start; }
.ca-author-avatar img { border-radius: 50%; display: block; }
.ca-author-name { margin: 4px 0 10px; }
.ca-author-bio { max-width: 640px; }
.ca-author-social { list-style: none; margin: 14px 0 0; padding: 0; }
.ca-author-social .wp-block-social-link-anchor { display: inline-block; padding: 6px 14px; border: 1px solid var(--navy); border-radius: 999px; color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none; }
.ca-author-social .wp-block-social-link-anchor:hover { background: var(--navy); color: var(--white); text-decoration: none; }
@media (max-width: 640px) { .ca-author-head { flex-direction: column; gap: 16px; } }
