/*
Theme Name: Calm Guide
Description: Calm, trustworthy theme for a mainstream dating-advice blog (US & Canada). Built from Demo 4 "Calm & Trustworthy".
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: calm-guide
*/

/* Self-hosted fonts (SIL Open Font License 1.1, see assets/fonts/OFL.txt). DM Sans is a variable font: one file covers weights 400-700. */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/dm-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/dm-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/dm-serif-display-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Serif Display'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/dm-serif-display-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F4F7F4;
  --surface: #FFFFFF;
  --soft: #E7F0EA;
  --placeholder: #DCE8E0;
  --border: #DCE5DE;
  --text: #1F2A24;
  --muted: #4A5A51;
  --meta: #55655C;
  --accent: #2F6B4F;
  --link: #245A41;
  --link-hover: #163A2A;
  --dark: #1F3A2D;
  --footer: #1F2A24;
  --radius: 14px;
  --wrap: 1180px;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; }
.serif { font-family: var(--serif); font-weight: 400; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto;
  background: var(--surface); padding: 10px 16px; border-radius: 8px;
}
:focus-visible { outline: 3px solid #1D4ED8; outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--border);
  transition: box-shadow .25s ease;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; transition: padding .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(31, 42, 36, 0.10); }
.site-header.is-scrolled .wrap { padding-top: 10px; padding-bottom: 10px; }

/* Brand: W-Heart logo + name */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-mark { width: 52px; height: 52px; flex: 0 0 auto; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), width .25s ease, height .25s ease; }
.brand:hover .brand-mark { transform: scale(1.08) rotate(-4deg); }
.brand-word { font-family: var(--serif); font-size: 30px; line-height: 1; letter-spacing: -0.2px; white-space: nowrap; transition: font-size .25s ease; }
.is-scrolled .brand-mark { width: 42px; height: 42px; }
.is-scrolled .brand-word { font-size: 26px; }

/* Main menu: large pill buttons with icons */
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.main-nav a {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; line-height: 1.2;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.nav-icon { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), stroke .2s ease; }
.main-nav a:hover { background: var(--soft); color: var(--link); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(47, 107, 79, 0.14); }
.main-nav a:hover .nav-icon { transform: scale(1.18) rotate(-6deg); }
.main-nav a:active { transform: translateY(0) scale(.97); }
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current-menu-parent > a,
.main-nav .current-post-ancestor > a,
.main-nav .current-category-ancestor > a { background: var(--accent); color: #FFFFFF; box-shadow: 0 4px 14px rgba(47, 107, 79, 0.28); }
.main-nav .current-menu-item > a .nav-icon,
.main-nav .current-menu-ancestor > a .nav-icon,
.main-nav .current-menu-parent > a .nav-icon,
.main-nav .current-post-ancestor > a .nav-icon,
.main-nav .current-category-ancestor > a .nav-icon { stroke: #FFFFFF; }

/* Mobile menu button (shown only on small screens, and only when JavaScript runs) */
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--soft); cursor: pointer; place-items: center; padding: 0; }
.menu-toggle:hover { background: var(--placeholder); }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--accent); position: relative; transition: transform .25s ease, background-color .25s ease; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ''; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-open .menu-toggle-bars { background: transparent; }
.menu-open .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .main-nav ul { gap: 2px; }
  .main-nav a { font-size: 16px; padding: 10px 13px; gap: 7px; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-word { font-size: 27px; }
}
@media (max-width: 1024px) {
  .site-header .wrap { padding-top: 12px; padding-bottom: 12px; }
  .brand-mark, .is-scrolled .brand-mark { width: 40px; height: 40px; }
  .brand-word, .is-scrolled .brand-word { font-size: 24px; }
  .has-js .menu-toggle { display: inline-grid; }
  .has-js .main-nav {
    flex-basis: 100%; max-height: 0; overflow: hidden; visibility: hidden;
    transition: max-height .3s ease, visibility 0s linear .3s;
  }
  .has-js.menu-open .main-nav { max-height: 480px; visibility: visible; transition: max-height .35s ease; }
  .has-js .main-nav ul { flex-direction: column; gap: 4px; padding: 4px 0 10px; }
  .has-js .main-nav a { display: flex; font-size: 18px; padding: 14px 16px; border-radius: 14px; gap: 12px; }
  .has-js .main-nav a:hover { transform: none; box-shadow: none; }
  .has-js .nav-icon { width: 22px; height: 22px; }
}
@media (max-width: 380px) {
  .brand { gap: 9px; }
  .brand-mark, .is-scrolled .brand-mark { width: 36px; height: 36px; }
  .brand-word, .is-scrolled .brand-word { font-size: 21px; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 10px; font-weight: 700;
  text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 700;
}
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--link-hover); color: #FFFFFF; }
.btn-soft { background: var(--soft); color: var(--text); }
.btn-soft:hover { background: var(--placeholder); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { background: var(--surface); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.hero-text { flex: 1 1 460px; min-width: 0; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 54px); line-height: 1.1; margin-bottom: 18px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.hero-media { flex: 1 1 380px; min-width: 0; }
.hero-media img { width: 100%; height: 360px; object-fit: cover; border-radius: 20px; }
.placeholder {
  background: var(--placeholder); color: #3F5248; display: flex; align-items: center; justify-content: center;
  border-radius: 20px; min-height: 200px; font-size: 14px; text-align: center; padding: 16px;
}
.hero-media .placeholder { height: 360px; }
.hero-art {
  height: 360px; border-radius: 20px; background: var(--soft); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center;
}
.hero-art ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hero-art li { background: var(--surface); border-radius: 999px; padding: 8px 18px; font-weight: 500; color: var(--text); }
.hero-art small { color: var(--muted); font-size: 13px; }
.placeholder-empty { background: var(--soft); }

/* Hero slideshow: up to 3 photos, slow cross-fade, no JavaScript */
.hero-slides { position: relative; height: 360px; border-radius: 20px; overflow: hidden; background: var(--soft); }
.hero-slides .hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: 0;
}
.hero-slides-1 .hero-slide { opacity: 1; }
.hero-slides-2 .hero-slide { animation: calmFade2 12s infinite; }
.hero-slides-3 .hero-slide { animation: calmFade3 18s infinite; }
.hero-slides .hero-slide:nth-child(1) { animation-delay: -1s; }
.hero-slides-2 .hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slides-3 .hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slides-3 .hero-slide:nth-child(3) { animation-delay: 11s; }
@keyframes calmFade2 { 0% { opacity: 0; } 8% { opacity: 1; } 50% { opacity: 1; } 58% { opacity: 0; } 100% { opacity: 0; } }
@keyframes calmFade3 { 0% { opacity: 0; } 5.5% { opacity: 1; } 33.3% { opacity: 1; } 38.8% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header *, .main-nav a, .nav-icon, .brand-mark { transition: none !important; }
  .hero-slides .hero-slide { animation: none; opacity: 0; }
  .hero-slides .hero-slide:first-child { opacity: 1; }
}

/* Sections */
.section { padding: 48px 0 24px; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.5vw, 36px); margin-bottom: 20px; }
.section-soft { background: var(--soft); padding: 56px 0; margin-top: 32px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-wide { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.promise {
  display: flex; gap: 14px; align-items: flex-start; padding: 20px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.promise svg { flex: none; margin-top: 2px; }
.promise strong { display: block; }
.promise span { display: block; font-size: 15px; color: var(--muted); }

.topic-card {
  display: block; padding: 22px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); text-decoration: none;
}
.topic-card:hover { border-color: var(--accent); color: var(--text); }
.topic-card strong { display: block; font-size: 17px; margin-bottom: 4px; }
.topic-card span { display: block; font-size: 15px; color: var(--muted); }

.city-link {
  display: block; padding: 14px 16px; background: var(--surface); border-radius: 12px;
  color: var(--text); text-decoration: none; font-weight: 700;
}
.city-link:hover { color: var(--link); }

/* Cards */
.card { display: flex; flex-direction: column; gap: 8px; }
.card-thumb img, .card-thumb .placeholder { width: 100%; height: 170px; object-fit: cover; border-radius: var(--radius); min-height: 0; }
.card-cat { font-size: 13px; font-weight: 700; color: var(--link); text-decoration: none; }
.card h3 { font-size: 20px; line-height: 1.35; margin: 0; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--link); text-decoration: underline; }
.card-meta { font-size: 14px; color: var(--meta); }
.card p { margin: 0; font-size: 15px; color: var(--muted); }

/* Layout with sidebar */
.with-sidebar { display: flex; flex-wrap: wrap; gap: 32px; padding: 40px 0; }
.with-sidebar > .main-col { flex: 2 1 560px; min-width: 0; }
.with-sidebar > aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.flags-box { padding: 24px; background: var(--dark); color: #F4F7F4; border-radius: 16px; }
.flags-box h2 { font-size: 20px; color: #FFFFFF; }
.flags-box ul { margin: 0 0 14px; padding-left: 20px; color: #D6E4DA; font-size: 15px; }
.flags-box a { color: #FFFFFF; font-weight: 700; }

.widget { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.widget-title { font-size: 18px; }
.widget ul { margin: 0; padding-left: 18px; }

/* Ad slots — always labeled */
.ad-slot { margin: 28px 0; text-align: center; }
.ad-label {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--meta); margin-bottom: 6px;
}
.ad-slot-inner { display: block; overflow: hidden; }
.ad-slot-inner .ad-widget { display: flex; justify-content: center; }
.ad-slot-inner .ad-widget + .ad-widget { margin-top: 16px; }

/* Sponsored (Smartlink) box */
.sponsored-box {
  padding: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; margin: 32px 0;
}
.sponsored-box .sponsored-text { flex: 1 1 380px; min-width: 0; }
.sponsored-label {
  display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--meta); margin-bottom: 6px;
}
.sponsored-box h2, .sponsored-box h3 { font-size: 22px; margin: 0 0 6px; font-family: var(--sans); font-weight: 700; }
.sponsored-box p { margin: 0; color: var(--muted); }

/* Disclosure notice */
.disclosure {
  font-size: 14px; color: var(--muted); background: var(--soft); border-radius: 10px;
  padding: 12px 16px; margin: 0 0 24px;
}

/* Single post / page */
.entry { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: clamp(20px, 4vw, 48px); }
.entry-header h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.5vw, 46px); line-height: 1.15; }
.entry-meta { font-size: 14px; color: var(--meta); margin-bottom: 20px; }
.entry-thumb img { border-radius: var(--radius); margin-bottom: 24px; width: 100%; }
.entry-content { font-size: 18px; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; }
.entry-content h3 { font-size: 22px; margin-top: 1.4em; }
.entry-content img { border-radius: 10px; }
.entry-content .wp-block-image { margin: 24px 0 12px; }
.entry-content .wp-block-image img { width: 100%; height: auto; max-height: 520px; object-fit: contain; background: var(--soft); }
.entry-content .wp-block-image figcaption { text-align: center; font-size: 13px; color: var(--meta); margin-top: 6px; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 4px solid var(--accent); color: var(--muted); }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px; text-align: left; }
.author-box { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 15px; color: var(--muted); }

.archive-header { padding: 48px 0 8px; }
.archive-header h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 42px); }
.archive-header p { color: var(--muted); }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.pagination .page-numbers {
  padding: 8px 14px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
}
.pagination .current { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }

.search-form { display: flex; flex-wrap: wrap; gap: 8px; }
.search-form input[type="search"] {
  flex: 1 1 220px; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid #B9CBBE;
  border-radius: 10px; font: inherit; background: var(--surface);
}
.search-form button { height: 48px; }

/* Footer */
.site-footer { background: var(--footer); color: #D6E0D9; font-size: 15px; margin-top: 56px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 18px; padding-top: 48px; padding-bottom: 32px; }
.site-footer .footer-brand { color: #FFFFFF; align-self: flex-start; }
.site-footer .footer-brand:hover { color: #FFFFFF; }
.site-footer .footer-brand .brand-mark { width: 40px; height: 40px; }
.site-footer .footer-brand .brand-word { font-size: 24px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: #D6E0D9; }
.site-footer a:hover { color: #FFFFFF; }
.site-footer p { margin: 0; color: #AFC0B5; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero .wrap { padding-top: 40px; }
  .hero-media img, .hero-media .placeholder, .hero-art, .hero-slides { height: 260px; }
  .sponsored-box { padding: 22px; }
}

/* Cookie consent banner */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 16px; pointer-events: none; }
.consent[hidden] { display: none; }
.consent-box { pointer-events: auto; max-width: 760px; margin: 0 auto; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 32px rgba(31, 42, 36, 0.18); padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.consent-box p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); flex: 1 1 380px; }
.consent-box .consent-title { flex-basis: 100%; font-weight: 700; color: var(--text); font-size: 16px; }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent-btn { font: 600 15px/1 var(--sans); padding: 12px 22px; border-radius: 999px; border: 2px solid var(--accent); background: var(--surface); color: var(--accent); cursor: pointer; min-width: 110px; }
.consent-btn[data-consent="yes"] { background: var(--accent); color: #FFFFFF; }
.consent-btn:hover { filter: brightness(0.95); }
.consent-btn:focus-visible, .footer-link-btn:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.footer-link-btn { background: none; border: 0; padding: 0; font: inherit; color: #D6E0D9; text-decoration: underline; cursor: pointer; }
.footer-link-btn:hover { color: #FFFFFF; }
@media (max-width: 560px) { .consent { padding: 10px; } .consent-actions { width: 100%; } .consent-btn { flex: 1; } }

/* Share buttons */
.share { margin: 0; }
.share-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.share-list li[hidden] { display: none; }
.share-btn {
  --brand: var(--accent);
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 16px 9px 13px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text);
  font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.share-btn:hover, .share-btn:focus-visible { background: var(--brand); border-color: var(--brand); color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(31, 42, 36, 0.15); }
.share-btn:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.share-icon { width: 18px; height: 18px; flex: 0 0 auto; fill: var(--brand); transition: fill .2s ease, stroke .2s ease; }
.share-icon-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-btn:hover .share-icon, .share-btn:focus-visible .share-icon { fill: #FFFFFF; }
.share-btn:hover .share-icon-line, .share-btn:focus-visible .share-icon-line { fill: none; stroke: #FFFFFF; }
.share-facebook { --brand: #0866FF; }
.share-x { --brand: #000000; }
.share-whatsapp { --brand: #1DA851; }
.share-pinterest { --brand: #E60023; }
.share-reddit { --brand: #FF4500; }
.share-telegram { --brand: #229ED9; }
.share-copy.is-done { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.share-copy.is-done .share-icon-line { stroke: #FFFFFF; }
.share-label { white-space: nowrap; }
.share-status { display: block; min-height: 1.2em; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* Under the title: compact round icons */
.share--top { margin: -6px 0 18px; }
.share--top .share-btn { width: 40px; height: 40px; min-height: 0; padding: 0; justify-content: center; background: var(--soft); border-color: transparent; }
.share--top .share-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.share--top .share-status { margin-top: 4px; }

/* End of the article */
.share--end { margin-top: 36px; padding: 22px 24px 14px; background: var(--soft); border-radius: var(--radius); }
.share-title { margin: 0 0 14px; font-family: var(--serif); font-size: 22px; color: var(--text); }
@media (max-width: 600px) {
  .share--end { padding: 18px 16px 10px; }
  .share--end .share-list { display: grid; grid-template-columns: 1fr 1fr; }
  .share--end .share-btn { justify-content: flex-start; width: 100%; padding-left: 12px; padding-right: 10px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) { .share-btn { transition: none; } .share-btn:hover { transform: none; } }

/* Amazon card (sidebar / homepage / end of post) */
.amazon-box { padding: 0; overflow: hidden; gap: 0; }
.amazon-photo { margin: 0; position: relative; line-height: 0; }
.amazon-photo-img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; margin: 0 !important; }
.amazon-photo figcaption { position: absolute; left: 10px; bottom: 8px; font-size: 11px; line-height: 1.2; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.amazon-body { padding: 24px; }
.amazon-body h2, .amazon-body h3 { margin: 4px 0 8px; line-height: 1.2; }
.amazon-body p { margin: 0 0 16px; }
.amazon-body .btn { display: block; text-align: center; width: 100%; box-sizing: border-box; }
.amazon-body .amazon-note { font-size: 12.5px; color: var(--meta); margin: 12px 0 0; }
.amazon-card { display: block; margin: 0 0 24px; }
.amazon-card .amazon-photo { aspect-ratio: 16 / 10; }
.amazon-card .amazon-body h3 { font-size: 22px; }
.amazon-wide { display: grid; grid-template-columns: minmax(180px, 38%) 1fr; margin: 32px 0; }
.amazon-wide .amazon-photo { min-height: 100%; }
.amazon-wide .amazon-body { align-self: center; padding: 28px; }
.amazon-wide .amazon-body .btn { width: auto; display: inline-block; padding-left: 28px; padding-right: 28px; }
@media (max-width: 640px) {
  .amazon-wide { grid-template-columns: 1fr; }
  .amazon-wide .amazon-photo { aspect-ratio: 16 / 10; }
  .amazon-wide .amazon-body .btn { width: 100%; display: block; }
}
