/*
Theme Name: Yorisoi Nursing Note
Theme URI: https://nurse-preview.sevennavi.jp/
Description: A calm, editorial WordPress theme for nursing, self-care, beauty, and listening-work content.
Version: 1.0.11
Text Domain: yorisoi-nursing-note
*/

:root {
  --ink: #342c35;
  --muted: #756a73;
  --paper: #fffdfc;
  --line: #e8dde3;
  --pink: #f8dce5;
  --pink-strong: #c86f91;
  --lavender: #e9e0f1;
  --lavender-strong: #937ca6;
  --sage: #dce8df;
  --sage-strong: #668373;
  --coral: #f5d9d4;
  --coral-strong: #a9655e;
  --content: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 15px;
  line-height: 1.85;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pink-strong); }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.shell { width: min(var(--content), calc(100% - 40px)); margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.tiny-nav { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.tiny-nav__inner { display: flex; justify-content: flex-end; gap: 20px; min-height: 34px; align-items: center; }
.masthead { padding: 22px 0 20px; text-align: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { position: relative; width: 38px; height: 28px; border: 1px solid var(--pink-strong); border-radius: 50% 50% 46% 46%; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; bottom: -5px; width: 16px; height: 14px; border: 1px solid var(--lavender-strong); border-top: 0; border-left: 0; transform: rotate(35deg); }
.brand-mark::before { left: 4px; }
.brand-mark::after { right: 4px; transform: rotate(-35deg) scaleX(-1); }
.brand-name { display: block; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 26px; font-weight: 500; letter-spacing: .08em; line-height: 1.2; }
.brand-sub { display: block; margin-top: 7px; color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.category-nav { background: var(--lavender); border-top: 1px solid #ded2e6; border-bottom: 1px solid #ded2e6; }
.category-nav__inner { display: flex; align-items: stretch; justify-content: center; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.category-nav__inner::-webkit-scrollbar, .topic-links::-webkit-scrollbar { display: none; }
.category-nav a { flex: 0 0 auto; padding: 11px 23px; font-size: 13px; text-align: center; border-right: 1px solid rgba(147, 124, 166, .22); }
.category-nav a:first-child { border-left: 1px solid rgba(147, 124, 166, .22); }
.notice { background: #fff3f6; color: #8c5d6b; font-size: 13px; text-align: center; border-bottom: 1px solid #f1dce3; }
.notice a { display: inline-block; padding: 9px 20px; }

.hero { position: relative; min-height: 440px; overflow: hidden; background: #fbf5f4; border-bottom: 1px solid var(--line); }
.hero__image, .archive-hero__image, .article-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__inner { position: relative; display: flex; align-items: center; min-height: 440px; }
.hero__copy { width: min(485px, 49%); padding: 30px 0; }
.eyebrow, .section-kicker, .info-page__kicker { margin: 0 0 13px; color: var(--pink-strong); font-size: 11px; letter-spacing: .13em; }
h1, h2, h3, p { margin-top: 0; }
.hero h1, .archive-hero h1, .article-hero h1, .info-page h1 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  letter-spacing: .04em;
}
.hero h1 { margin-bottom: 18px; font-size: clamp(28px, 3.3vw, 45px); line-height: 1.55; }
.hero p { max-width: 390px; margin-bottom: 0; color: #5d515b; font-size: 15px; }

.topic-strip { padding: 30px 0; border-bottom: 1px solid var(--line); }
.topic-strip__inner { display: grid; grid-template-columns: 170px 1fr; gap: 32px; align-items: center; }
.section-kicker { margin-bottom: 3px; }
.section-title { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 22px; font-weight: 500; letter-spacing: .04em; }
.topic-links { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 1px; -ms-overflow-style: none; scrollbar-width: none; }
.topic-link { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 13px; }
.topic-link--medical { border-color: #edc9c3; background: #fff9f8; }
.topic-link--beauty { border-color: #ded0e9; background: #fcfaff; }
.topic-link--mind { border-color: #cadccd; background: #f9fdf9; }

.page-grid, .archive-layout, .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 52px; padding: 54px 0 76px; }
.main-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.main-heading h2 { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 26px; font-weight: 500; }
.main-heading span { color: var(--muted); font-size: 12px; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.article-card { min-width: 0; border-bottom: 1px solid var(--line); padding-bottom: 23px; }
.article-card__image { display: block; aspect-ratio: 16 / 9; margin-bottom: 13px; overflow: hidden; background: #f7eef1; }
.article-card__image img { width: 100%; height: 100%; object-fit: cover; }
.article-meta, .archive-entry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.category-pill, .category { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 10px; line-height: 1.5; }
.category--medical, .category-pill--medical { color: #87554f; background: var(--coral); }
.category--beauty, .category-pill--beauty { color: #6e5e7c; background: var(--lavender); }
.category--mind, .category-pill--mind { color: #506c5a; background: var(--sage); }
.pr { color: #a36078; font-size: 10px; letter-spacing: .06em; }
.article-card h3 { margin-bottom: 8px; font-size: 17px; font-weight: 600; line-height: 1.65; }
.article-card p { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.category-feature { margin-top: 46px; padding-top: 38px; border-top: 1px solid var(--line); }
.category-feature__image { position: relative; min-height: 230px; overflow: hidden; }
.category-feature__image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.category-feature__copy { position: relative; width: min(370px, 56%); min-height: 230px; display: flex; flex-direction: column; justify-content: center; padding: 28px; background: rgba(255, 253, 252, .90); }
.category-feature h2 { margin-bottom: 10px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 25px; font-weight: 500; line-height: 1.45; }
.category-feature p { margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.text-link { color: #9b6278; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.sidebar { padding-top: 2px; }
.side-section { padding: 0 0 27px; margin-bottom: 27px; border-bottom: 1px solid var(--line); }
.side-section h2, .side h2 { margin-bottom: 13px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 18px; font-weight: 500; }
.profile { display: grid; grid-template-columns: 64px 1fr; gap: 13px; align-items: start; }
.profile__circle { display: grid; width: 64px; aspect-ratio: 1; place-items: center; overflow: hidden; border-radius: 50%; background: #f2e7ec; }
.profile__circle img { width: 125%; max-width: none; height: 125%; object-fit: cover; object-position: 74% 33%; }
.profile h3 { margin: 0 0 3px; font-size: 14px; }
.profile p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.profile > p { grid-column: 1 / -1; }
.search-form { display: flex; border: 1px solid var(--line); background: #fff; }
.search-form label { flex: 1; }
.search-form input { min-width: 0; width: 100%; border: 0; padding: 10px 11px; outline: 0; color: var(--ink); font-size: 13px; }
.search-form button { flex: 0 0 auto; border: 0; border-left: 1px solid var(--line); background: #f8eef2; color: #875367; padding: 0 13px; cursor: pointer; font-size: 12px; }
.side-list, .archive-side-list { margin: 0; padding: 0; list-style: none; }
.side-list li + li, .archive-side-list li + li { border-top: 1px solid #f1eaed; }
.side-list a, .archive-side-list a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13px; }
.side-list span { color: var(--muted); font-size: 11px; }
.policy-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.archive-hero, .article-hero { position: relative; overflow: hidden; min-height: 320px; border-bottom: 1px solid var(--line); background: #fbf5f4; }
.archive-hero__inner, .article-hero__inner { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 320px; width: min(720px, calc(100% - 40px)); margin: 0 auto; }
.archive-hero h1 { max-width: 540px; margin: 0; font-size: clamp(28px, 3.8vw, 40px); line-height: 1.5; }
.archive-hero p { max-width: 480px; margin: 12px 0 0; color: #5d515b; font-size: 14px; }
.archive-intro { margin: 0 0 32px; padding-bottom: 25px; border-bottom: 1px solid var(--line); color: #554a53; font-size: 16px; }
.archive-list { border-top: 1px solid var(--line); }
.archive-entry { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.archive-entry__image { display: block; overflow: hidden; background: #f7eef1; aspect-ratio: 16 / 9; }
.archive-entry__image img { width: 100%; height: 100%; object-fit: cover; }
.archive-entry h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; line-height: 1.6; }
.archive-entry p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

.article-hero { min-height: 355px; }
.article-hero__inner { min-height: 355px; }
.article-hero h1 { max-width: 620px; margin: 0; font-size: clamp(29px, 4vw, 44px); line-height: 1.5; }
.article-hero time { margin-top: 17px; color: var(--muted); font-size: 12px; }
.article-layout { grid-template-columns: minmax(0, 720px) 230px; gap: 70px; }
.article { min-width: 0; }
.lead { margin-bottom: 35px; padding-bottom: 30px; border-bottom: 1px solid var(--line); color: #554a53; font-size: 17px; line-height: 2; }
.article h2, .info-page h2 { margin: 42px 0 17px; padding-left: 13px; border-left: 3px solid #e4a4b6; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 24px; font-weight: 500; line-height: 1.5; }
.article h3 { margin: 28px 0 11px; font-size: 17px; }
.article p { margin: 0 0 20px; }
.article ul { padding-left: 1.3em; margin: 0 0 24px; }
.article li + li { margin-top: 7px; }
.note { margin: 32px 0; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: #fffafb; color: var(--muted); font-size: 13px; line-height: 1.8; }
.disclosure { display: inline-block; margin: 0 0 18px; padding: 3px 8px; background: #fff1f5; color: #9b5b71; font-size: 11px; line-height: 1.5; }
.affiliate-offer { margin: 36px 0; padding: 24px; border: 1px solid #ead8e0; border-radius: 6px; background: #fff7fa; }
.affiliate-offer__eyebrow { margin: 0 0 7px; color: #a45e78; font-size: 11px; letter-spacing: .08em; }
.affiliate-offer__image { display: block; margin: 0 0 18px; overflow: hidden; border: 1px solid #f0e2e8; border-radius: 4px; background: #fff; }
.affiliate-offer__image img { width: 100%; height: 250px; object-fit: contain; }
.article .affiliate-offer__title { margin: 0 0 10px; padding: 0; border: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 22px; font-weight: 500; line-height: 1.5; }
.affiliate-offer__description { margin: 0 0 17px; color: #5d515b; font-size: 13px; line-height: 1.8; }
.affiliate-offer__button { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 15px; border-radius: 5px; background: #b9607f; color: #fff; font-size: 13px; font-weight: 600; }
.affiliate-offer__button:hover { background: #9f516d; color: #fff; }
.article-nav { padding-top: 28px; border-top: 1px solid var(--line); color: #8d5a70; font-size: 13px; }
.side { align-self: start; padding: 22px 0; border-top: 2px solid #e9dae1; border-bottom: 1px solid var(--line); }
.side p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.side + .side { margin-top: 27px; }

.info-page { width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: 60px 0 84px; }
.info-page__kicker { margin-bottom: 7px; }
.info-page h1 { margin: 0 0 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); font-size: clamp(29px, 4vw, 42px); line-height: 1.45; }
.info-page p, .info-page li { color: #554a53; }
.info-page ul { padding-left: 1.35em; }
.wp-block-image img { height: auto; }
.wp-block-quote { margin: 30px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--lavender-strong); color: var(--muted); }
.wp-block-button__link { background: #b9607f; border-radius: 5px; }

footer { border-top: 1px solid var(--line); background: #fcf8fa; }
.footer__inner { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0; color: var(--muted); font-size: 11px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 820px) {
  .shell { width: min(100% - 28px, 640px); }
  .tiny-nav__inner { justify-content: center; gap: 14px; }
  .masthead { padding: 17px 0 16px; }
  .brand-name { font-size: 21px; }
  .brand-sub { font-size: 10px; }
  .category-nav__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; overflow: visible; }
  .category-nav a { padding: 10px 6px; font-size: 11px; white-space: nowrap; }
  .category-nav a:nth-child(4) { border-left: 1px solid rgba(147, 124, 166, .22); }
  .category-nav a:nth-child(n + 4) { border-top: 1px solid rgba(147, 124, 166, .22); }
  .hero, .hero__inner { min-height: 470px; }
  .hero__image { object-position: 63% center; }
  .hero__inner { align-items: flex-start; padding-top: 40px; }
  .hero__copy { width: min(310px, 74%); }
  .hero h1 { font-size: 29px; line-height: 1.52; }
  .hero p { font-size: 13px; line-height: 1.8; }
  .topic-strip { padding: 23px 0; }
  .topic-strip__inner { display: block; }
  .topic-links { margin-top: 13px; }
  .page-grid, .archive-layout, .article-layout { display: block; padding: 38px 0 54px; }
  .main-heading h2 { font-size: 22px; }
  .article-grid { grid-template-columns: 1fr; gap: 24px; }
  .article-card { display: grid; grid-template-columns: 42% 1fr; column-gap: 14px; padding-bottom: 20px; }
  .article-card__image { grid-row: 1 / span 3; margin: 0; align-self: start; }
  .article-meta { margin: 0 0 5px; }
  .article-card h3 { margin: 0 0 5px; font-size: 15px; line-height: 1.55; }
  .article-card p { font-size: 12px; line-height: 1.65; }
  .category-feature { margin-top: 34px; padding-top: 30px; }
  .category-feature__image { min-height: 270px; }
  .category-feature__copy { width: 76%; min-height: 270px; padding: 22px; }
  .category-feature h2 { font-size: 22px; }
  .sidebar { margin-top: 45px; }
  .side-section { margin-bottom: 23px; padding-bottom: 23px; }
  .archive-hero, .archive-hero__inner { min-height: 345px; }
  .archive-hero__inner { justify-content: flex-start; padding-top: 42px; }
  .archive-hero h1 { max-width: 74%; font-size: 29px; }
  .archive-hero p { max-width: 72%; font-size: 13px; }
  .archive-entry { grid-template-columns: 42% minmax(0, 1fr); gap: 14px; padding: 20px 0; }
  .archive-entry h2 { margin-bottom: 5px; font-size: 15px; line-height: 1.55; }
  .archive-entry p { font-size: 12px; line-height: 1.65; }
  .article-hero, .article-hero__inner { min-height: 405px; }
  .article-hero__image { object-position: 66% center; }
  .article-hero__inner { justify-content: flex-start; padding-top: 43px; }
  .article-hero h1 { max-width: 72%; font-size: 29px; }
  .lead { font-size: 15px; }
  .article h2, .info-page h2 { font-size: 21px; }
  .affiliate-offer { margin: 30px 0; padding: 20px; }
  .affiliate-offer__image img { height: 220px; }
  .article .affiliate-offer__title { font-size: 20px; }
  .side { margin-top: 39px; }
  .info-page { width: min(100% - 28px, 640px); padding: 40px 0 56px; }
  .info-page h1 { font-size: 30px; }
  .footer__inner { display: block; padding: 23px 0; }
  .footer__links { margin-bottom: 10px; }
}

@media (max-width: 420px) {
  .tiny-nav { font-size: 11px; }
  .category-nav a { padding: 9px 4px; font-size: 10px; }
  .hero, .hero__inner { min-height: 450px; }
  .hero__inner { padding-top: 31px; }
  .hero__copy { width: 79%; }
  .hero h1 { font-size: 26px; }
  .notice { font-size: 12px; }
  .main-heading span { display: none; }
  .article-card { grid-template-columns: 43% 1fr; }
}

.article-hero__ad {
  display: inline-flex;
  width: fit-content;
  margin: 9px 0 0;
  padding: 3px 8px;
  border: 1px solid rgba(164, 94, 120, .35);
  background: rgba(255, 248, 250, .88);
  color: #8f5069;
  font-size: 11px;
  line-height: 1.45;
}

/* Compact placements only appear when a real, approved offer is available. */

.profile__link {
  grid-column: 1 / -1;
  display: inline-flex;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #efcbd5;
  border-radius: 4px;
  color: #93546d;
  background: #fff8fa;
  font-size: 12px;
  font-weight: 700;
}

.archive-hero--medical { background: #fff7f5; }
.archive-hero--beauty { background: #fcf7ff; }
.archive-hero--mind { background: #f7fbf8; }
.archive-hero--medical .archive-hero__image { opacity: .72; filter: saturate(.9); }
.archive-hero--beauty .archive-hero__image { opacity: .72; filter: saturate(.95); }
.archive-hero--mind .archive-hero__image { opacity: .56; filter: saturate(.72) hue-rotate(24deg); }
.archive-hero--medical .archive-hero__inner,
.archive-hero--beauty .archive-hero__inner,
.archive-hero--mind .archive-hero__inner { z-index: 1; }
.archive-hero--mind .category { color: #506c5a; background: var(--sage); }

.about-page { background: #fffdfc; }
.about-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #fbf5f4;
}
.about-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .58;
  filter: saturate(.85);
}
.about-hero__inner {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: center;
  padding: 42px 0;
}
.about-eyebrow {
  margin: 0 0 12px;
  color: var(--pink-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
}
.about-hero h1,
.about-main h2,
.about-aside h2 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  letter-spacing: .04em;
}
.about-hero h1 {
  max-width: 560px;
  margin-bottom: 16px;
  font-size: 38px;
  line-height: 1.45;
}
.about-hero p {
  max-width: 560px;
  margin-bottom: 0;
  color: #5d515b;
  font-size: 15px;
  line-height: 1.9;
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  padding: 54px 0 78px;
}
.about-lead {
  margin-bottom: 30px;
  color: #51454d;
  font-size: 15px;
  line-height: 2;
}
.about-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.about-values article {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.about-values span {
  display: block;
  margin-bottom: 8px;
  color: var(--pink-strong);
  font-size: 11px;
  font-weight: 700;
}
.about-values h2,
.about-policy h2,
.about-aside h2 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.55;
}
.about-values p,
.about-policy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}
.about-policy {
  margin-top: 24px;
  padding: 22px;
  border-left: 4px solid var(--sage-strong);
  background: #f8fbf8;
}
.about-aside {
  align-self: start;
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid #efcbd5;
  border-radius: 6px;
  background: #fff8fa;
}
.admin-bar .about-aside { top: 124px; }
.about-aside a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid #f0d6de;
  color: #765466;
  font-size: 13px;
}

@media (max-width: 960px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .about-aside {
    position: static;
  }
}

@media (max-width: 700px) {
  .about-hero,
  .about-hero__inner {
    min-height: 320px;
  }
  .about-hero h1 {
    font-size: 29px;
  }
  .about-layout {
    padding: 38px 0 56px;
  }
  .about-values {
    grid-template-columns: 1fr;
  }
  .about-values article,
  .about-policy,
  .about-aside {
    padding: 16px;
  }
}
.home-affiliate-strip {
  grid-column: 1 / -1;
  margin: 4px 0 10px;
  padding: 16px;
  border: 1px solid #efcbd5;
  border-radius: 6px;
  background: #fff8fa;
}

.home-affiliate-strip__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-affiliate-strip__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  align-items: center;
  padding: 2px 0;
}

.compact-offer__eyebrow {
  margin: 0 0 10px;
  color: #a85f79;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.compact-offer__kicker {
  margin: 0 0 4px;
  color: #a85f79;
  font-size: 12px;
  font-weight: 700;
}

.compact-offer__image,
.side-offer__image {
  display: block;
  overflow: hidden;
  border: 1px solid #f0d6de;
  border-radius: 4px;
  background: #fff;
}

.compact-offer__image img,
.side-offer__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-affiliate-strip__image {
  width: 96px;
  height: 96px;
}

.home-affiliate-strip__body h3,
.side-offer__title {
  margin: 0;
  color: #3e2f35;
  font-size: 15px;
  line-height: 1.55;
}

.home-affiliate-strip__text {
  margin: 5px 0 8px;
  color: #715f66;
  font-size: 12px;
  line-height: 1.65;
}

.compact-offer__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 4px;
  background: #bd6684;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.compact-offer__button:hover {
  background: #a95270;
  color: #fff;
}

.compact-offer__article-link {
  display: inline-block;
  margin-top: 9px;
  color: #8f5069;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.side-affiliate-stack {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 14px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #e2b1c1 transparent;
}

.admin-bar .side-affiliate-stack {
  top: 116px;
  max-height: calc(100vh - 132px);
}

.side-affiliate-stack::-webkit-scrollbar {
  width: 6px;
}

.side-affiliate-stack::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #e2b1c1;
}

.side-section--offer {
  margin: 0;
  padding: 14px;
  border: 1px solid #efcbd5;
  background: #fff8fa;
}

.side-section--offer .compact-offer__eyebrow {
  margin-bottom: 5px;
}

.side-offer__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 10px 0 12px;
}

.side-section--offer .compact-offer__button {
  width: 100%;
  margin-top: 12px;
}

.side-section--offer .compact-offer__article-link {
  margin-top: 10px;
}

@media (max-width: 960px) {
  .side-affiliate-stack {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 700px) {
  .home-affiliate-strip {
    padding: 14px;
  }

  .home-affiliate-strip__items {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .home-affiliate-strip__item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
  }

  .home-affiliate-strip__image {
    width: 92px;
    height: 92px;
  }

  .home-affiliate-strip__body h3,
  .side-offer__title {
    font-size: 14px;
  }

  .home-affiliate-strip__text {
    display: none;
  }
}