/* Shared native-block styles: GIFT reading bodies and the post editing canvas. */
:is(.gx-site .gx-body, .editor-styles-wrapper) {
  --gift-editorial-ink:#302f2d; --gift-editorial-line:#dfb7bc; --gift-editorial-warm:#f9f1f0;
  font-family:"Noto Sans JP",sans-serif; color:var(--gift-editorial-ink);
  font-size:16px; line-height:2.05;
}
:is(.gx-site .gx-body, .editor-styles-wrapper) :is(p,li) { line-height:2.05; }
:is(.gx-site .gx-body, .editor-styles-wrapper) p { margin-block:0 1.65em; }
:is(.gx-site .gx-body, .editor-styles-wrapper) h2:not(:where(.gx-about-body .timeaid-cta *)) {
  color:var(--gift-editorial-ink); font-size:24px; font-weight:600; line-height:1.7; letter-spacing:.015em;
  margin-block:56px 24px; padding:0 0 14px;
  border-top:0; border-bottom:2px solid var(--gift-editorial-line);
  scroll-margin-top:28px;
}
:is(.gx-site .gx-body, .editor-styles-wrapper) h3:not(:where(.gx-about-body .timeaid-cta *)) {
  color:var(--gift-editorial-ink); font-size:19px; font-weight:600; line-height:1.8; letter-spacing:.01em;
  margin-block:36px 18px; padding:0 0 0 14px;
  border:0; border-left:2px solid var(--gift-editorial-line); scroll-margin-top:28px;
}
:is(.gx-site .gx-body, .editor-styles-wrapper) :is(ul,ol) { padding-inline-start:1.6em; margin-block:0 1.8em; }
:is(.gx-site .gx-body, .editor-styles-wrapper) li { margin-block:8px; }
:is(.gx-site .gx-body, .editor-styles-wrapper) li::marker { color:#a85f70; }
:is(.gx-site .gx-body, .editor-styles-wrapper) a { text-underline-offset:4px; }
:is(.gx-site .gx-body, .editor-styles-wrapper) p a:not(.wp-block-button__link) { text-decoration:underline; }
:is(.gx-site .gx-body, .editor-styles-wrapper) a:focus-visible { outline:2px solid #a85f70; outline-offset:4px; }
:is(.gx-site .gx-body, .editor-styles-wrapper) :is(.timeaid-editorial-block:not(.timeaid-source-note, :where(.gx-about-body .timeaid-cta)),.is-style-gift-note,.is-style-gift-points,.is-style-gift-caution,.is-style-gift-related) {
  background:var(--gift-editorial-warm)!important; border:1px solid #e7d8d2!important;
  border-radius:3px; padding:26px 28px!important; margin-block:36px!important;
}
:is(.gx-site .gx-body, .editor-styles-wrapper) :is(.timeaid-editorial-block.timeaid-notice,.timeaid-editorial-block.is-style-gift-caution,.is-style-gift-caution.is-style-gift-caution) { border-left:3px solid #a85f70!important; background:#faf6f2!important; }
:is(.gx-site .gx-body, .editor-styles-wrapper) .is-style-gift-related.is-style-gift-related { background:#faf9f7!important; }
:is(.gx-site .gx-body, .editor-styles-wrapper) :is(.timeaid-editorial-block,.is-style-gift-note,.is-style-gift-points,.is-style-gift-caution,.is-style-gift-related) :is(h2,h3):not(:where(.gx-about-body .timeaid-cta *)) {
  font-size:18px; line-height:1.8; margin-block:0 14px; padding:0; border:0;
}
:is(.gx-site .gx-body, .editor-styles-wrapper) :is(.timeaid-editorial-block,.is-style-gift-note,.is-style-gift-points,.is-style-gift-caution,.is-style-gift-related) > :last-child { margin-bottom:0; }
:is(.gx-site .gx-body, .editor-styles-wrapper) :is(blockquote,.is-style-gift-experience) {
  margin:36px 0; padding:24px 28px; background:#f7f6f4; border:0; border-left:2px solid #bea69e;
  font-size:16px; line-height:2.05;
}
:is(.gx-site .gx-body, .editor-styles-wrapper) blockquote p:last-of-type { margin-bottom:14px; }
:is(.gx-site .gx-body, .editor-styles-wrapper) blockquote cite { display:block; font-size:12px; line-height:1.8; color:#77736e; font-style:normal; }
:is(.gx-site .gx-body, .editor-styles-wrapper) .wp-block-table {
  display:block; max-width:100%; overflow-x:auto; margin:32px 0;
  border:1px solid #dfd8d2; border-radius:2px; scrollbar-width:thin;
}
:is(.gx-site .gx-body, .editor-styles-wrapper) .wp-block-table table { width:100%; min-width:620px; border-collapse:collapse; font-size:13px; line-height:1.8; }
:is(.gx-site .gx-body, .editor-styles-wrapper) .wp-block-table :is(th,td) { border:1px solid #dfd8d2; padding:15px 17px; text-align:left; vertical-align:top; line-height:1.8; }
:is(.gx-site .gx-body, .editor-styles-wrapper) .wp-block-table th { background:#f5efeb; font-weight:600; }
:is(.gx-site .gx-body, .editor-styles-wrapper) .wp-block-table figcaption { padding:10px 14px; font-size:12px; color:#77736e; line-height:1.8; }
:is(.gx-site .gx-body, .editor-styles-wrapper) img { max-width:100%; height:auto; }
:is(.gx-site .gx-body, .editor-styles-wrapper) .wp-block-image figcaption { font-size:11px; line-height:1.8; color:#77736e; margin-top:9px; }
.gx-site .gx-body .gx-toc { margin-block:34px 42px; }
.gx-site .gx-body .gx-toc :is(ol,li) { margin-block:6px; line-height:1.9; }
/* Place the footer clearance outside the grid that bounds the sticky sidebar. */
.gx-site .gx-article-wrap { padding-block-end:56px; }
@media(min-width:1001px) {
  .gx-site .gx-article-wrap .gx-article > .gx-discover { padding-block-end:0; }
  .gx-site .gx-layout > .gx-sidebar {
    position:sticky; top:24px; align-self:start;
    max-height:calc(100vh - 48px); max-height:calc(100svh - 48px);
    overflow-y:auto; overscroll-behavior-y:contain; scrollbar-width:thin;
    scrollbar-color:#c7aaa9 transparent; scroll-padding-block:12px;
  }
  body.admin-bar .gx-site .gx-layout > .gx-sidebar { top:56px; max-height:calc(100vh - 80px); max-height:calc(100svh - 80px); }
  .gx-site .gx-sidebar:focus-visible { outline:2px solid #a85f70; outline-offset:5px; }
}
@media(max-width:1000px) {
  .gx-site .gx-article-wrap { padding-block-end:40px; }
  .gx-site .gx-article-wrap .gx-layout > .gx-sidebar { position:static; max-height:none; overflow:visible; padding-block-end:0; }
}
@media(max-width:600px) {
  :is(.gx-site .gx-body, .editor-styles-wrapper) { font-size:15px; }
  :is(.gx-site .gx-body, .editor-styles-wrapper) h2:not(:where(.gx-about-body .timeaid-cta *)) { font-size:21px; margin-block:44px 22px; padding-bottom:12px; }
  :is(.gx-site .gx-body, .editor-styles-wrapper) h3:not(:where(.gx-about-body .timeaid-cta *)) { font-size:18px; margin-block:30px 16px; padding-left:12px; }
  :is(.gx-site .gx-body, .editor-styles-wrapper) :is(.timeaid-editorial-block:not(.timeaid-source-note, :where(.gx-about-body .timeaid-cta)),.is-style-gift-note,.is-style-gift-points,.is-style-gift-caution,.is-style-gift-related) { padding:22px 19px!important; margin-block:30px!important; }
  :is(.gx-site .gx-body, .editor-styles-wrapper) blockquote { padding:22px 19px; font-size:15px; }
  :is(.gx-site .gx-body, .editor-styles-wrapper) .wp-block-table table { font-size:12px; }
}

/* Article headings keep Editorial Kit box titles and other page types separate. */
.gx-site .gx-article .gx-body :is(h2,h3):not(:where(
  .gx-toc *, .rank-math-toc-block *, .wp-block-rank-math-toc-block *,
  .timeaid-editorial-block *, .is-style-gift-note *, .is-style-gift-points *,
  .is-style-gift-caution *, .is-style-gift-related *
)) {
  border:0;
  border-radius:3px;
  padding:12px clamp(14px, 2vw, 22px);

  &:is(h2) {
    background:#986674;
    color:#fff;
  }

  &:is(h3) {
    background:#f8f1f0;
    color:var(--gift-editorial-ink);
  }
}

.gx-site .gx-article-header .gx-ad-disclosure {
  margin:8px 0 0;
  font-size:12px;
  line-height:1.75;
  color:#4b4845;
  text-align:left;
}

/* Use the same featured-image framing across article viewports. */
.gx-site .gx-article > .gx-featured {
  margin-block-end:26px;
}
.gx-site .gx-article > .gx-featured img {
  aspect-ratio:16/9;
  object-fit:cover;
  object-position:center;
}

@media (max-width:600px) {
  .gx-site .gx-article .gx-article-header {
    padding-block-end:16px;
    margin-block-end:18px;
  }

  .gx-site .gx-article .gx-article-header h1 {
    font-size:24px;
    line-height:1.4;
  }

  .gx-site .gx-article-header .gx-dates time {
    font-size:12px;
  }

  .gx-site .gx-article > .gx-featured {
    margin-block-end:20px;
  }

  .gx-site .gx-article {
    --gift-prose-size:14px;
    --gift-prose-leading:2;
  }

  /* Keep typography overrides on ordinary article blocks. */
  .gx-site .gx-article > .gx-body > :is(p:not([class]), p[class="wp-block-paragraph"], ul, ol) {
    font-size:var(--gift-prose-size);
    line-height:var(--gift-prose-leading);
  }

  .gx-site .gx-article > .gx-body > :is(p:not([class]), p[class="wp-block-paragraph"]) {
    margin-block-end:16px;
  }

  .gx-site .gx-article > .gx-body > :is(ul,ol) {
    padding-inline-start:1.4em;
    margin-block-end:16px;
  }

  .gx-site .gx-article > .gx-body > :is(ul,ol) > li {
    line-height:2;
    margin-block:6px;
  }

  .gx-site .gx-article > .gx-body > h2 {
    font-size:20px;
    line-height:1.5;
    margin-block:32px 14px;
  }

  .gx-site .gx-article > .gx-body > h3 {
    font-size:18px;
    line-height:1.5;
    margin-block:24px 12px;
  }

  .gx-site .gx-article > .gx-body :is(.wp-block-image,.wp-block-table) > figcaption {
    font-size:12px;
  }
}

/* Inline reading links, including those inside Editorial Kit notes. */
.gx-site .gx-article .gx-body :where(p,li,blockquote,td,th,figcaption) a[href]:not(:where(
  .gx-toc *, .rank-math-toc-block *, .wp-block-rank-math-toc-block *,
  .is-style-gift-related *, .wp-block-buttons *, .wp-block-button__link,
  .timeaid-cta *, .ta-gift-products *, .ta-gp-card *, .pochipp-box *
)) {
  color:#87515e;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
.gx-site .gx-article .gx-body :where(p,li,blockquote,td,th,figcaption) a[href]:not(:where(
  .gx-toc *, .rank-math-toc-block *, .wp-block-rank-math-toc-block *,
  .is-style-gift-related *, .wp-block-buttons *, .wp-block-button__link,
  .timeaid-cta *, .ta-gift-products *, .ta-gp-card *, .pochipp-box *
)):hover {
  color:#5e3442;
  text-decoration-thickness:2px;
}

/* Article author profile and inline Editorial Kit related cards. */
.gx-site .gx-author--editorial {
  background:#fff;
  border:1px solid var(--gx-line);
  color:var(--gift-editorial-ink, #302f2d);
  padding-inline:24px;
}
.gx-site .gx-author--editorial .gx-author-heading {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:4px 16px;
  margin-block:4px 12px;
}
.gx-site .gx-author--editorial .gx-author-heading h2 { margin:0; }
.gx-site .gx-author .gx-author-about {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  margin:0;
  padding:6px 12px;
  border:1px solid #cbb8b1;
  border-radius:3px;
  color:#302f2d;
  background:#fff;
  text-decoration:none;
  font-size:12px;
}
.gx-site .gx-article .gx-body a.gx-inline-story {
  display:grid;
  align-items:center;
  gap:16px;
  padding:14px;
  margin-block:24px;
  color:#302f2d;
  background:#fff;
  border:1px solid var(--gx-line);
  border-radius:3px;
  text-decoration:none;
}
.gx-site .gx-article .gx-body .gx-inline-story--image {
  grid-template-columns:minmax(0, 148px) minmax(0, 1fr);
}
.gx-inline-story-image { display:block; }
.gx-site .gx-article .gx-body .gx-inline-story-image img {
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/3;
  object-fit:cover;
}
.gx-inline-story-copy {
  display:grid;
  gap:4px;
  min-width:0;
  line-height:1.55;
  overflow-wrap:anywhere;
}
.gx-inline-story-category { color:#87515e; font-size:11px; }
.gx-inline-story-copy strong { font-size:16px; font-weight:600; }
.gx-inline-story-description { font-size:13px; }
@media (hover:hover) {
  .gx-site .gx-author .gx-author-about:hover,
  .gx-site .gx-article .gx-body a.gx-inline-story:hover { border-color:#a85f70; background:#faf7f6; }
}
.gx-site .gx-author .gx-author-about:focus-visible,
.gx-site .gx-article .gx-body a.gx-inline-story:focus-visible {
  outline:2px solid #a85f70;
  outline-offset:3px;
}
@media(max-width:600px) {
  .gx-site .gx-author--editorial {
    grid-template-columns:48px minmax(0, 1fr);
    gap:10px;
    padding-inline:12px;
  }
  .gx-site .gx-author--editorial .gx-author-mark { width:48px; height:48px; }
  .gx-site .gx-author--editorial .gx-author-heading { column-gap:8px; }
  .gx-site .gx-author--editorial .gx-author-about {
    gap:4px;
    padding-inline:7px;
    font-size:11px;
    white-space:nowrap;
  }
  .gx-site .gx-article .gx-body a.gx-inline-story { gap:10px; padding:10px; }
  .gx-site .gx-article .gx-body .gx-inline-story--image { grid-template-columns:minmax(0, 28%) minmax(0, 1fr); }
  .gx-inline-story-copy strong { font-size:14px; }
  .gx-inline-story-description { font-size:12px; }
}

/* Approved GIFT article copy and selection markers. */
.gift-reading-page.single-post .gx-article .gx-body :is(.gift-editorial-product, [data-gift-product]) > p.gift-product-copy {
  font-size: var(--gift-prose-size, inherit);
  line-height: var(--gift-prose-leading, inherit);
  margin: 0 0 .55rem;
}

.gift-reading-page.single-post .gx-article .gx-body :is(.gift-editorial-product, [data-gift-product]) > p.gift-product-copy:last-of-type {
  margin-bottom: 0;
}

.gift-reading-page.single-post .gx-article .gx-body span.gift-selection-marker {
  color: inherit;
  background: linear-gradient(transparent 50%, #f4aa98 50%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
