.legacy-renewal-page {
  --legacy-ink: #151412;
  --legacy-line: #deddd9;
  --legacy-muted: #77746f;
  color: var(--legacy-ink);
  background: #fff;
}

@media (max-width: 767px) {
  :is(
    body.blog-list-page,
    body.blog-detail-page,
    body.portfolio-list-page,
    body.portfolio-detail-page,
    body.contact-body
  ) .footer-brand .logo {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 767px) {
  body.portfolio-list-page .portfolio-card__media {
    box-sizing: border-box;
    border: 1px solid #dedede;
  }
}

/* Legacy pages ship an old #site-header rule with higher specificity. */
body.legacy-renewal-page #site-header {
  position: fixed !important;
  z-index: 50 !important;
  top: 16px !important;
  left: 50% !important;
  width: 100% !important;
  pointer-events: auto !important;
  transform: translateX(-50%) !important;
}

body.legacy-renewal-page #site-header * {
  pointer-events: auto;
}

body.legacy-renewal-page #site-header.scrolled {
  top: 10px !important;
  width: min(900px, calc(100% - 32px)) !important;
}

.legacy-renewal-page .article-back,
.legacy-renewal-page .article-share,
.legacy-renewal-page .article-list-more,
.legacy-renewal-page .article-list-all,
.legacy-renewal-page .portfolio-site-cta a,
.legacy-renewal-page .portfolio-site-link,
.legacy-renewal-page .public-admin-button {
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid var(--legacy-line);
  border-radius: 10px;
  background: #fff;
  color: var(--legacy-ink);
  font: 500 13px/1 var(--font-sans, sans-serif);
  box-shadow: none;
  transition: color .22s ease, background-color .22s ease, border-color .22s ease, transform .22s ease;
}

.legacy-renewal-page .article-back:hover,
.legacy-renewal-page .article-share:hover,
.legacy-renewal-page .article-list-more:hover,
.legacy-renewal-page .article-list-all:hover,
.legacy-renewal-page .portfolio-site-cta a:hover,
.legacy-renewal-page .portfolio-site-link:hover,
.legacy-renewal-page .public-admin-button:hover {
  border-color: var(--legacy-ink);
  background: var(--legacy-ink);
  color: #fff;
}

.legacy-renewal-page .article-back:active,
.legacy-renewal-page .article-share:active {
  transform: translateY(1px);
}

.legacy-renewal-page .article-list-all {
  border-color: var(--legacy-ink);
  background: var(--legacy-ink);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .legacy-renewal-page :is(.article-back,.article-share,.article-list-more,.article-list-all,.portfolio-site-cta a,.portfolio-site-link,.public-admin-button):hover {
    opacity: 1;
    border-color: #111;
    box-shadow: none;
    transform: translateY(-2px);
  }

  .legacy-renewal-page :is(.article-back,.article-share,.article-list-more,.public-admin-button):hover {
    background: #111;
    color: #fff;
  }

  .legacy-renewal-page :is(.article-list-all,.portfolio-site-cta a,.portfolio-site-link):hover {
    border-color: #2b2b2b;
    background: #2b2b2b;
    color: #fff;
  }
}

.legacy-renewal-page .portfolio-center-search__close,
.legacy-renewal-page .article-list-panel__close {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--legacy-line);
  border-radius: 50%;
  background: #fff;
  color: var(--legacy-ink);
  box-shadow: none;
}

.legacy-renewal-page .search-button,
.legacy-renewal-page .webzine-search-button {
  border: 0 !important;
  background: transparent;
  box-shadow: none !important;
}

/* Keep legacy content typography intact; the renewal layer only owns the shell. */
body.legacy-renewal-page .webzine-heading h1,
body.legacy-renewal-page .article-hero h1 {
  font-size: clamp(36px, 3.2vw, 48px);
}

body.legacy-renewal-page .webzine-heading h1 {
  line-height: 1.08;
}

body.legacy-renewal-page .article-hero h1 {
  line-height: 1.22;
}

body.legacy-renewal-page .article-content > h2 {
  font-size: clamp(24px, 2vw, 30px);
  line-height: normal;
}

body.legacy-renewal-page .article-content > h3 {
  font-size: 20px;
  line-height: normal;
}

body.legacy-renewal-page .article-content p {
  font-size: 16px !important;
  line-height: 1.75 !important;
}

body.portfolio-detail-page .portfolio-description .article-lead,
body.portfolio-detail-page .portfolio-goal-list li {
  font-size: 15px !important;
  line-height: 1.7 !important;
}

body.legacy-renewal-page .article-content > ul,
body.legacy-renewal-page .article-content > ol {
  font-size: 14px;
  line-height: 1.75;
}

body.legacy-renewal-page .article-content > ul > li,
body.legacy-renewal-page .article-content > ol > li {
  font-size: 14px !important;
  line-height: 1.75 !important;
}

body.blog-detail-page .article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

body.blog-detail-page .article-content > ol:not([class]) {
  gap: 8px;
  border: 1px solid rgba(0, 102, 255, .18);
  border-right: 0;
  border-left: 0;
  background: rgba(0, 102, 255, .025);
}

body.blog-detail-page .article-content > ol:not([class]) > li {
  color: #555;
  font-size: 16px !important;
  font-weight: 500;
}

body.blog-detail-page .article-content > ol:not([class]) > li p {
  color: #555 !important;
  font-size: 16px !important;
  font-weight: 500;
}

body.blog-detail-page .article-content > ul:not([class]) > li,
body.blog-detail-page .article-content > ul:not([class]) > li p {
  font-size: 16px !important;
  font-weight: 500;
}

/* Blog editor content
   These rules intentionally outrank both the legacy article sheet and the
   renewal shell so editor-authored headings and lists keep their design. */
body.blog-detail-page .article-content > :is(h2, h3, h4) {
  position: relative;
  padding-left: 18px;
}

body.blog-detail-page .article-content > :is(h2, h3, h4)::before {
  position: absolute;
  top: 0.16em;
  bottom: 0.16em;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: #0667f9;
  content: "";
}

body.blog-detail-page .article-content > h2 {
  margin: 72px 0 18px;
}

body.blog-detail-page .article-content > h3 {
  margin: 44px 0 15px;
}

body.blog-detail-page .article-content > h4 {
  margin: 34px 0 13px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

body.blog-detail-page .article-content > :is(ul, ol):not([class]) {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 22px 26px 22px 48px;
  border-top: 1px solid rgba(0, 102, 255, 0.18);
  border-right: 0;
  border-bottom: 1px solid rgba(0, 102, 255, 0.18);
  border-left: 0;
  background: rgba(0, 102, 255, 0.025);
  color: #555;
}

body.blog-detail-page .article-content > ul:not([class]) {
  list-style: disc;
}

body.blog-detail-page .article-content > ol:not([class]) {
  list-style: decimal;
}

body.blog-detail-page .article-content > :is(ul, ol):not([class]) > li {
  padding-left: 2px;
  color: #555;
  font-size: 16px !important;
  font-weight: 500;
  line-height: 1.75 !important;
}

body.blog-detail-page .article-content > :is(ul, ol):not([class]) > li::marker {
  color: #0667f9;
  font-weight: 600;
}

body.blog-detail-page .article-content > :is(ul, ol):not([class]) > li > p {
  margin: 0;
  color: #555 !important;
  font-size: 16px !important;
  font-weight: 500;
  line-height: 1.75 !important;
}

body.blog-detail-page .article-content > :is(ul, ol):not([class]) :is(ul, ol) {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 22px;
  color: #666;
}

body.blog-detail-page .article-content > blockquote:not(.article-quote) {
  margin: 30px 0;
  padding: 22px 26px;
  border-left: 3px solid #0667f9;
  background: #f7f8fa;
  color: #444;
}

body.blog-detail-page .article-content > blockquote:not(.article-quote) p {
  margin: 0;
  color: inherit !important;
}

body.blog-detail-page .article-content > table:not(.article-table) {
  width: 100%;
  margin: 30px 0;
  border: 1px solid #e4e8ef;
  border-collapse: collapse;
  color: #555;
  font-size: 14px;
}

body.blog-detail-page .article-content > table:not(.article-table) :is(th, td) {
  padding: 16px 18px;
  border: 1px solid #e4e8ef;
  text-align: left;
  vertical-align: top;
}

body.blog-detail-page .article-content > table:not(.article-table) th {
  background: #f7f8fa;
  color: #222;
  font-weight: 600;
}

body.blog-detail-page .article-content > :is(p, ul, ol) a {
  color: #0667f9;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/*
 * The article stylesheet is shared with locozdesign.com.  Keep these
 * higher-specificity shell safeguards in sync with its mobile type scale.
 */
@media (max-width: 767px) {
  body.legacy-renewal-page .article-hero h1 {
    font-size: 20px;
    line-height: 1.3;
  }

  body.legacy-renewal-page .article-content > h2 {
    font-size: 20px;
    line-height: normal;
  }

  body.legacy-renewal-page .article-content > h3 {
    font-size: 17px;
    line-height: normal;
  }

  body.legacy-renewal-page .article-content > ul > li,
  body.legacy-renewal-page .article-content > ol > li {
    font-size: 15px !important;
  }
}

body.legacy-renewal-page .portfolio-card h2 {
  font-size: 18px;
  line-height: 1.4;
}

body.legacy-renewal-page .portfolio-card__primary,
body.legacy-renewal-page .portfolio-card__secondary {
  object-position: center top;
}

body.legacy-renewal-page .portfolio-card__media {
  aspect-ratio: 1 / 1.3;
}

body.portfolio-detail-page .portfolio-media-carousel,
body.portfolio-detail-page .portfolio-content-images {
  width: min(800px, 100%);
  margin-right: auto;
  margin-left: auto;
}

body.portfolio-detail-page .portfolio-media-slide img,
body.portfolio-detail-page .portfolio-showcase img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin-right: auto;
  margin-left: auto;
  object-fit: contain;
}

body.portfolio-detail-page .portfolio-media-carousel.is-single .portfolio-media-carousel__viewport,
body.portfolio-detail-page .portfolio-media-carousel.is-single .portfolio-media-slide {
  height: auto;
  aspect-ratio: auto !important;
  overflow: visible;
}

body.portfolio-detail-page #description > h2,
body.portfolio-detail-page #challenge > h2 {
  position: relative;
  padding-left: 22px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

body.portfolio-detail-page #description > h2::before,
body.portfolio-detail-page #challenge > h2::before {
  position: absolute;
  top: -0.08em;
  bottom: -0.08em;
  left: 0;
  width: 4px;
  height: auto;
  border-radius: 999px;
  background: #0667f9;
  content: "";
}

/* Blog view components: match the reference article UI.
   The original red accent is intentionally mapped to the renewal blue. */
body.blog-detail-page .article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 68px;
  padding-top: 28px;
  border-top: 1px solid #e8e8e8;
}

body.blog-detail-page .article-tags a {
  padding: 9px 13px;
  border-radius: 999px;
  background: #f2f2f2;
  color: #666;
  font-size: 12px;
}

body.blog-detail-page .article-post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: auto;
  margin-top: 28px;
}

body.blog-detail-page .article-post-navigation__item {
  display: grid;
  min-height: 124px;
  grid-template-columns: 20px 88px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 20px;
  border: 0;
  border-radius: 14px;
  background: #f7f7f8;
  color: #111;
  text-decoration: none;
  transition: background-color 0.22s ease, transform 0.22s ease;
}

body.blog-detail-page .article-post-navigation__item--prev {
  grid-template-columns: minmax(0, 1fr) 88px 20px;
  text-align: right;
}

body.blog-detail-page .article-post-navigation__item--prev span { order: 1; }
body.blog-detail-page .article-post-navigation__item--prev img { order: 2; }
body.blog-detail-page .article-post-navigation__item--prev svg { order: 3; }

body.blog-detail-page .article-post-navigation__item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.blog-detail-page .article-post-navigation__item img {
  width: 88px;
  aspect-ratio: 3 / 2;
  border-radius: 9px;
  object-fit: cover;
}

body.blog-detail-page .article-post-navigation__item span { min-width: 0; }

body.blog-detail-page .article-post-navigation__item small {
  display: block;
  margin-bottom: 7px;
  color: #999;
  font-size: 11px;
  font-weight: 600;
}

body.blog-detail-page .article-content .article-post-navigation__item strong:not([class]) {
  display: -webkit-box;
  overflow: hidden;
  padding: 0;
  background: none;
  color: #222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.blog-detail-page .article-post-navigation__item time {
  display: block;
  margin-top: 7px;
  color: #aaa;
  font: 500 10px Outfit, Pretendard, sans-serif;
}

body.blog-detail-page .article-post-navigation__item:not(.article-post-navigation__item--empty):hover {
  background: #f1f1f3;
  transform: translateY(-2px);
}

body.blog-detail-page .article-post-navigation__item--empty { visibility: hidden; }

body.blog-detail-page .article-continuation {
  display: block;
  margin: 0 0 50px;
}

body.blog-detail-page .article-content .article-continuation__intro {
  margin: 0 0 14px;
  color: #999;
  font-size: 12px;
  line-height: 1.6;
  word-break: keep-all;
}

body.blog-detail-page .article-continuation__card {
  display: grid;
  min-height: 0;
  grid-template-columns: 112px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 17px;
  padding: 22px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #f7f7f8;
  color: #111;
  text-decoration: none;
  transition: background-color 0.22s ease, transform 0.22s ease;
}

body.blog-detail-page .article-continuation__card:hover {
  border-color: transparent;
  background: #f7f7f8;
  transform: none;
}

body.blog-detail-page .article-continuation__card > img {
  width: 112px;
  height: auto;
  aspect-ratio: 3 / 2;
  margin: 0;
  border-radius: 10px;
  object-fit: cover;
}

body.blog-detail-page .article-continuation__body {
  display: block;
  min-width: 0;
}

body.blog-detail-page .article-continuation__body small {
  display: block;
  margin-bottom: 7px;
  color: #0667f9;
  font: 600 10px Outfit, sans-serif;
  letter-spacing: 0.1em;
}

body.blog-detail-page .article-content .article-continuation__body strong:not([class]) {
  display: block;
  padding: 0;
  background: none;
  color: #111;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}

body.blog-detail-page .article-continuation__body > span {
  display: -webkit-box;
  margin-top: 7px;
  overflow: hidden;
  color: #777;
  font-size: 12.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.blog-detail-page .article-continuation__card > svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

body.blog-detail-page .article-continuation__card:hover > svg {
  transform: translate(3px, -3px);
}

body.blog-detail-page .article-note-popover > span { color: #0667f9; }

body.blog-detail-page .article-term {
  background: rgba(6, 103, 249, 0.07) !important;
  text-decoration-color: rgba(6, 103, 249, 0.78) !important;
}

body.blog-detail-page .article-term:hover,
body.blog-detail-page .article-term.is-active {
  background: rgba(6, 103, 249, 0.14) !important;
  text-decoration-color: #0667f9 !important;
}

body.blog-detail-page .article-term:focus-visible {
  outline-color: #0667f9 !important;
}

body.blog-detail-page .article-list-panel {
  background:
    radial-gradient(circle at 88% 82%, rgba(6, 103, 249, 0.07), transparent 42%),
    rgba(255, 255, 255, 0.98);
}

body.blog-detail-page .article-list-panel__close:hover { color: #0667f9; }
body.blog-detail-page .article-list-all:hover { background: #0667f9; }

@media (max-width: 767px) {
  body.blog-detail-page .article-continuation {
    margin-bottom: 50px;
  }

  body.blog-detail-page .article-continuation__card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
  }

  body.blog-detail-page .article-continuation__card > img {
    width: 92px;
    aspect-ratio: 1;
  }

  body.blog-detail-page .article-content .article-continuation__body strong:not([class]) {
    font-size: 15px;
  }

  body.blog-detail-page .article-continuation__body > span,
  body.blog-detail-page .article-continuation__card > svg {
    display: none;
  }
}

body.portfolio-detail-page #challenge .portfolio-goals article {
  padding: 22px 24px;
  border: 1px solid #dfeaff;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fbff 0%, #fff 72%);
}

body.portfolio-detail-page #challenge .portfolio-goals h3 {
  padding-left: 0;
}

body.portfolio-detail-page #challenge .portfolio-goals h3::before {
  content: none;
}

body.portfolio-detail-page #challenge .portfolio-goal-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

body.portfolio-detail-page #challenge .portfolio-goal-list li {
  position: relative;
  padding-left: 14px;
  color: #666;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  word-break: keep-all;
}

body.portfolio-detail-page #challenge .portfolio-goal-list li::before {
  content: "";
  position: absolute;
  top: .7em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #176bff;
}

@media (min-width: 768px) {
  body.portfolio-detail-page #challenge .portfolio-goals {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

body.portfolio-detail-page .portfolio-primary-original {
  box-sizing: border-box;
  width: min(800px, 100%);
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #e3e3e3;
  border-radius: 20px;
  background: transparent;
}

body.portfolio-detail-page .portfolio-primary-original img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: contain;
  border-radius: inherit;
}

body.portfolio-detail-page .portfolio-media-slide {
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #e3e3e3;
  border-radius: 20px;
}

body.legacy-renewal-page .webzine-list {
  padding-top: clamp(130px, 10vw, 150px);
}

/* Keep editorial and portfolio list/detail headers on one shared start line. */
body.blog-detail-page .webzine-article,
body.portfolio-detail-page .portfolio-view-main {
  padding-top: clamp(130px, 10vw, 150px);
}

body.blog-detail-page .article-category,
body.portfolio-detail-page .article-category {
  color: var(--blue, #2c6bff);
}

/*
 * Detail list drawers use the blog article scale on both content types.
 * Portfolio's native stylesheet uses a compact landscape row, so these
 * explicit rules restore the shared square thumbnail and two-line title.
 */
body.blog-detail-page .article-list-item,
body.portfolio-detail-page .article-list-item {
  display: grid;
  height: auto;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 7px 0;
}

body.blog-detail-page .article-list-item img,
body.portfolio-detail-page .article-list-item img {
  width: 60px;
  height: 60px;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
}

body.blog-detail-page .article-list-item small,
body.portfolio-detail-page .article-list-item small {
  margin-bottom: 5px;
  font-size: 11.5px;
  font-weight: 600;
}

body.blog-detail-page .article-list-item strong,
body.portfolio-detail-page .article-list-item strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

body.portfolio-detail-page .article-list-panel__scroll {
  overflow-y: auto;
}

body.portfolio-detail-page .article-list-items {
  gap: 10px;
  overflow: visible;
}

body.blog-detail-page .article-list-more,
body.blog-detail-page .article-list-all,
body.portfolio-detail-page .article-list-more,
body.portfolio-detail-page .article-list-all {
  min-height: 54px;
  border-radius: 10px;
  font-size: 14px;
}

body.blog-detail-page .article-side-tools :is(a, button),
body.portfolio-detail-page .article-side-tools :is(a, button),
body.blog-detail-page .article-mobile-tools :is(a, button),
body.portfolio-detail-page .article-mobile-tools :is(a, button) {
  border-radius: 10px;
}

body.legacy-renewal-page .webzine-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.legacy-renewal-page .webzine-pagination__pages {
  display: flex;
  align-items: center;
  gap: 20px;
}

.legacy-renewal-page .site-footer a,
.legacy-renewal-page .site-footer button {
  font-family: var(--font-sans, sans-serif);
}

/* Keep the shared dark footer authoritative after legacy page styles. */
:is(
  body.blog-list-page,
  body.blog-detail-page,
  body.portfolio-list-page,
  body.portfolio-detail-page,
  body.contact-body
) .footer-card {
  background: #101010;
  color: #f7f7f7;
}

:is(
  body.blog-list-page,
  body.blog-detail-page,
  body.portfolio-list-page,
  body.portfolio-detail-page,
  body.contact-body
) .footer-top {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

:is(
  body.blog-list-page,
  body.blog-detail-page,
  body.portfolio-list-page,
  body.portfolio-detail-page,
  body.contact-body
) .footer-brand .logo {
  border: 1px solid var(--footer-dark-line, rgba(255, 255, 255, 0.16));
  border-radius: 50%;
  background-color: #111;
}

:is(
  body.blog-list-page,
  body.blog-detail-page,
  body.portfolio-list-page,
  body.portfolio-detail-page,
  body.contact-body
) :is(.footer-company, .footer-info, .copyright) {
  color: rgba(255, 255, 255, 0.66);
}

:is(
  body.blog-list-page,
  body.blog-detail-page,
  body.portfolio-list-page,
  body.portfolio-detail-page,
  body.contact-body
) :is(.legal-links a, .footer-nav a, .footer-nav h3) {
  color: rgba(255, 255, 255, 0.86);
}

:is(
  body.blog-list-page,
  body.blog-detail-page,
  body.portfolio-list-page,
  body.portfolio-detail-page,
  body.contact-body
) .footer-family-select {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: #171717;
  color: rgba(255, 255, 255, 0.9);
}

:is(
  body.blog-list-page,
  body.blog-detail-page,
  body.portfolio-list-page,
  body.portfolio-detail-page,
  body.contact-body
) .footer-login {
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 767px) {
  body.blog-detail-page .article-list-item,
  body.portfolio-detail-page .article-list-item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 11px;
    padding: 6px 0;
  }

  body.blog-detail-page .article-list-item img,
  body.portfolio-detail-page .article-list-item img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
  }

  body.blog-detail-page .article-list-item small,
  body.portfolio-detail-page .article-list-item small {
    margin-bottom: 3px;
    font-size: 10.5px;
  }

  body.blog-detail-page .article-list-item strong,
  body.portfolio-detail-page .article-list-item strong {
    font-size: 13.5px;
    line-height: 1.45;
  }

  body.blog-detail-page .article-list-more,
  body.blog-detail-page .article-list-all,
  body.portfolio-detail-page .article-list-more,
  body.portfolio-detail-page .article-list-all {
    min-height: 48px;
    border-radius: 10px;
    font-size: 13px;
  }

  body.legacy-renewal-page #site-header,
  body.legacy-renewal-page #site-header.scrolled {
    top: 12px !important;
    width: calc(100% - 24px) !important;
  }

  body.legacy-renewal-page .webzine-heading h1 {
    font-size: 26px;
    line-height: 1.3;
  }

  body.legacy-renewal-page .portfolio-card h2 {
    font-size: 14px;
    line-height: 1.42;
  }

  body.legacy-renewal-page .webzine-list {
    padding-top: 108px;
  }

  body.blog-detail-page .webzine-article,
  body.portfolio-detail-page .portfolio-view-main {
    padding-top: 108px;
  }

  body.legacy-renewal-page .webzine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1099px) {
  body.legacy-renewal-page .webzine-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Blog view: continuation and adjacent-post components
   Keep these rules scoped so renewal layout styles cannot expand article media. */
body.blog-detail-page .article-continuation {
  display: grid;
  gap: 14px;
  margin: 72px 0 0;
}

body.blog-detail-page .article-continuation__intro {
  margin: 0;
  color: #777;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

body.blog-detail-page .article-continuation__card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 24px;
  min-height: 156px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #e7e5e1;
  border-radius: 16px;
  background: #f8f8f7;
  color: #111;
  text-decoration: none;
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

body.blog-detail-page .article-continuation__card:hover {
  border-color: #d7d4ce;
  background: #f3f2f0;
  transform: translateY(-2px);
}

body.blog-detail-page .article-continuation__card > img {
  width: 180px;
  height: 120px;
  aspect-ratio: 3 / 2;
  margin: 0;
  object-fit: cover;
  border-radius: 10px;
}

body.blog-detail-page .article-continuation__body {
  display: grid;
  min-width: 0;
  gap: 7px;
}

body.blog-detail-page .article-continuation__body small {
  color: #999;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

body.blog-detail-page .article-continuation__body strong {
  display: block;
  color: #111;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

body.blog-detail-page .article-continuation__body > span {
  color: #777;
  font-size: 14px;
  line-height: 1.55;
}

body.blog-detail-page .article-continuation__card > svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

body.blog-detail-page .article-post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: auto;
  margin-top: 28px;
}

body.blog-detail-page .article-post-navigation__item {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #e7e5e1;
  border-radius: 12px;
  background: #fff;
  color: #111;
  text-decoration: none;
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

body.blog-detail-page .article-post-navigation__item:hover {
  border-color: #d7d4ce;
  background: #f8f8f7;
  transform: translateY(-2px);
}

body.blog-detail-page .article-post-navigation__item > img {
  grid-column: 1;
  grid-row: 1;
  width: 72px;
  height: 72px;
  margin: 0;
  object-fit: cover;
  border-radius: 9px;
}

body.blog-detail-page .article-post-navigation__item > span {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  gap: 4px;
}

body.blog-detail-page .article-post-navigation__item small {
  color: #999;
  font-size: 11px;
  font-weight: 600;
}

body.blog-detail-page .article-post-navigation__item strong {
  display: -webkit-box;
  overflow: hidden;
  color: #222;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.blog-detail-page .article-post-navigation__item time {
  color: #aaa;
  font-size: 11px;
}

body.blog-detail-page .article-post-navigation__item > svg {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #aaa;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 767px) {
  body.blog-detail-page .article-content > :is(h2, h3, h4) {
    padding-left: 15px;
  }

  body.blog-detail-page .article-content > :is(h2, h3, h4)::before {
    width: 3px;
  }

  body.blog-detail-page .article-content > :is(ul, ol):not([class]) {
    gap: 8px;
    padding: 18px 18px 18px 38px;
  }

  body.blog-detail-page .article-content > :is(ul, ol):not([class]) > li,
  body.blog-detail-page .article-content > :is(ul, ol):not([class]) > li > p {
    font-size: 15px !important;
  }

  body.blog-detail-page .article-continuation {
    margin-top: 48px;
  }

  body.blog-detail-page .article-continuation__card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    min-height: 112px;
    padding: 12px;
    border-radius: 12px;
  }

  body.blog-detail-page .article-continuation__card > img {
    width: 92px;
    height: 92px;
    aspect-ratio: 1;
  }

  body.blog-detail-page .article-continuation__body strong {
    font-size: 15px;
  }

  body.blog-detail-page .article-continuation__body > span {
    display: none;
  }

  body.blog-detail-page .article-continuation__card > svg {
    display: none;
  }

  body.blog-detail-page .article-post-navigation {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }
}

@media (max-width: 1024px) {
  .mobile-menu a {
    padding: 5px 0;
  }
}
