/* Shared fixed UI for the blog-generation network. Article body copy is untouched. */
html.codex-brand-ui {
  --codex-header-fade: color-mix(in srgb, var(--codex-brand-primary) 14%, transparent);
  --codex-border: color-mix(in srgb, var(--codex-brand-primary) 22%, #fff);
  --codex-shadow: 0 18px 46px color-mix(in srgb, var(--codex-brand-ink) 13%, transparent);
  color: var(--codex-brand-ink);
}

html.codex-brand-ui .l-header,
html.codex-brand-ui #header-container,
html.codex-brand-ui .header {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: color-mix(in srgb,var(--codex-brand-primary) 74%,#15202a) !important;
  background-image:
    linear-gradient(110deg,color-mix(in srgb,var(--codex-brand-ink) 78%,transparent),color-mix(in srgb,var(--codex-brand-primary) 46%,transparent),color-mix(in srgb,var(--codex-brand-ink) 68%,transparent)),
    var(--codex-hero-image) !important;
  background-position: center !important;
  background-size: cover !important;
}

html.codex-brand-ui .l-header__inner,
html.codex-brand-ui .header-in {
  position: relative;
  z-index: 1;
  min-height: 216px;
}

html.codex-brand-ui .l-header__logo {
  display: flex !important;
  flex: 1 0 100% !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 176px !important;
  height: auto !important;
}

html.codex-brand-ui .c-headLogo,
html.codex-brand-ui .logo-header {
  height: auto !important;
  width: min(760px,92vw) !important;
  max-width: 760px !important;
  margin: 14px auto 4px !important;
  padding: 0 !important;
  border: 0;
  background: transparent;
  box-shadow: none;
}

html.codex-brand-ui .c-headLogo__link,
html.codex-brand-ui .c-headLogo a,
html.codex-brand-ui .logo-header a {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  height: auto !important;
  color: #fff !important;
  text-decoration: none !important;
}

html.codex-brand-ui .c-headLogo img,
html.codex-brand-ui .c-headLogo__img,
html.codex-brand-ui .logo-header img {
  display: none !important;
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 22%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  object-fit: contain !important;
  object-position: center !important;
}

html.codex-brand-ui .c-headLogo__link::after,
html.codex-brand-ui .c-headLogo a::after,
html.codex-brand-ui .logo-header a::after {
  content: var(--codex-site-title);
  color: #fff;
  font-size: clamp(34px,4.3vw,56px);
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.1;
  text-shadow: 0 3px 16px rgba(0,0,0,.52);
}

html.codex-brand-ui .c-catchphrase,
html.codex-brand-ui .l-header__catchphrase {
  margin-top: 3px;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600;
  letter-spacing: .08em;
  text-shadow: 0 2px 10px rgba(0,0,0,.62);
}

html.codex-brand-ui .l-header__gnav,
html.codex-brand-ui .l-header__spNav,
html.codex-brand-ui #navi,
html.codex-brand-ui .navi {
  position: relative;
  z-index: 2;
  flex: 1 0 100% !important;
  width: 100% !important;
  min-height: 40px;
  border-top: 1px solid rgba(255,255,255,.24);
  background: color-mix(in srgb,var(--codex-brand-primary) 94%,#202631) !important;
  box-shadow: 0 7px 22px color-mix(in srgb, var(--codex-brand-ink) 18%, transparent);
}

html.codex-brand-ui .c-gnav,
html.codex-brand-ui .navi-in > ul {
  justify-content: center;
}

html.codex-brand-ui .c-gnav > li > a,
html.codex-brand-ui .navi-in > ul > li > a {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

html.codex-brand-ui .c-gnav > li > a:hover,
html.codex-brand-ui .navi-in > ul > li > a:hover {
  background: rgba(255,255,255,.12) !important;
}

html.codex-brand-ui .c-widget__title.-side,
html.codex-brand-ui .sidebar .widget-title,
html.codex-brand-ui .sidebar h3:not(.codex-profile-identity h3) {
  border-color: var(--codex-brand-primary) !important;
  background: var(--codex-brand-primary) !important;
  color: #fff !important;
}

html.codex-brand-ui .home .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)),
html.codex-brand-ui .page .post_content h2:where(:not([class^="swell-block-"]):not(.faq_q):not(.p-postList__title)) {
  border-color: var(--codex-brand-primary) !important;
  background: var(--codex-brand-primary) !important;
  color: #fff !important;
}

/* Individual background techniques: each keeps the shared structure but changes the atmosphere. */
html.codex-pattern-grid .l-header,
html.codex-pattern-grid .header {
  background-image: linear-gradient(rgba(49,87,213,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(49,87,213,.07) 1px, transparent 1px), radial-gradient(circle at 72% 20%, rgba(44,198,183,.28), transparent 34%), linear-gradient(125deg,#f5f8ff,#e8efff) !important;
  background-size: 24px 24px,24px 24px,auto,auto !important;
}
html.codex-pattern-frames .l-header,
html.codex-pattern-frames .header {
  background-image: linear-gradient(135deg, transparent 0 68%, rgba(237,122,168,.15) 68% 72%, transparent 72%), repeating-linear-gradient(90deg, rgba(88,102,168,.055) 0 1px, transparent 1px 44px), linear-gradient(120deg,#f6f3fc,#eef1fb) !important;
}
html.codex-pattern-notebook .l-header,
html.codex-pattern-notebook .header {
  background-image: linear-gradient(90deg, transparent 0 9%, rgba(229,111,89,.16) 9% calc(9% + 2px), transparent calc(9% + 2px)), repeating-linear-gradient(0deg, transparent 0 27px, rgba(49,95,119,.09) 27px 28px), linear-gradient(125deg,#fffaf0,#fff1de) !important;
}
html.codex-pattern-soft .l-header,
html.codex-pattern-soft .header {
  background-image: radial-gradient(ellipse at 8% 30%, rgba(125,165,139,.28), transparent 34%), radial-gradient(ellipse at 86% 5%, rgba(184,107,85,.20), transparent 38%), linear-gradient(125deg,#fbf7f1,#f4ebe4) !important;
}
html.codex-pattern-road .l-header,
html.codex-pattern-road .header {
  background-image: repeating-linear-gradient(112deg, transparent 0 48px, rgba(255,255,255,.72) 48px 54px, transparent 54px 108px), linear-gradient(125deg,#f8e9e8,#ebeef2) !important;
}
html.codex-pattern-steps .l-header,
html.codex-pattern-steps .header {
  background-image: linear-gradient(135deg, transparent 0 56%, rgba(49,95,119,.08) 56% 60%, transparent 60%), repeating-linear-gradient(135deg, rgba(232,120,100,.10) 0 2px, transparent 2px 34px), linear-gradient(125deg,#f5fbfb,#e8f3f5) !important;
}
html.codex-pattern-waves .l-header,
html.codex-pattern-waves .header {
  background-image: radial-gradient(80px 36px at 16% 100%, transparent 47%, rgba(23,123,145,.15) 49% 54%, transparent 56%), radial-gradient(100px 40px at 70% 100%, transparent 47%, rgba(85,185,165,.20) 49% 54%, transparent 56%), linear-gradient(155deg,#eaf8f7,#dceff4) !important;
}
html.codex-pattern-care .l-header,
html.codex-pattern-care .header {
  background-image: radial-gradient(circle at 18% 38%, rgba(98,183,150,.22) 0 8%, transparent 8.5%), radial-gradient(circle at 78% 20%, rgba(57,123,178,.16) 0 12%, transparent 12.5%), linear-gradient(125deg,#f5fbfa,#e7f2f7) !important;
}
html.codex-pattern-steam .l-header,
html.codex-pattern-steam .header {
  background-image: radial-gradient(ellipse at 22% 110%, transparent 42%, rgba(155,73,56,.13) 43% 48%, transparent 49%), radial-gradient(ellipse at 72% 110%, transparent 45%, rgba(228,169,79,.18) 46% 51%, transparent 52%), linear-gradient(125deg,#fcf5eb,#f5e2cf) !important;
}
html.codex-pattern-network .l-header,
html.codex-pattern-network .header {
  background-image: radial-gradient(circle,rgba(46,181,195,.22) 0 2px,transparent 2.5px), linear-gradient(135deg,transparent 48%,rgba(51,87,164,.07) 48% 50%,transparent 50%), linear-gradient(125deg,#f3f7fd,#e7eef9) !important;
  background-size: 34px 34px,68px 68px,auto !important;
}
html.codex-pattern-palette .l-header,
html.codex-pattern-palette .header {
  background-image: radial-gradient(circle at 13% 22%,rgba(228,160,143,.24) 0 15%,transparent 15.5%),radial-gradient(circle at 85% 8%,rgba(155,107,145,.20) 0 19%,transparent 19.5%),radial-gradient(circle at 72% 88%,rgba(113,151,184,.15) 0 16%,transparent 16.5%),linear-gradient(125deg,#fff8fa,#f4edf5) !important;
}
html.codex-pattern-table .l-header,
html.codex-pattern-table .header {
  background-image: radial-gradient(circle at 12% 30%,transparent 0 33px,rgba(214,88,67,.13) 34px 39px,transparent 40px),radial-gradient(circle at 82% 15%,transparent 0 48px,rgba(240,169,58,.16) 49px 54px,transparent 55px),linear-gradient(125deg,#fffaf1,#ffeddc) !important;
}
html.codex-pattern-mountain .l-header,
html.codex-pattern-mountain .header {
  background-image: linear-gradient(145deg,transparent 0 63%,rgba(63,107,82,.13) 63% 76%,transparent 76%),linear-gradient(35deg,transparent 0 64%,rgba(217,144,69,.13) 64% 76%,transparent 76%),radial-gradient(circle at 82% 18%,rgba(217,144,69,.25) 0 5%,transparent 5.5%),linear-gradient(125deg,#f5f5ea,#e7eee4) !important;
}

/* The photographic masthead is the primary shared technique; patterns continue quietly through the page. */
html.codex-brand-ui .l-header,
html.codex-brand-ui #header-container,
html.codex-brand-ui .header {
  background-image:
    linear-gradient(110deg,color-mix(in srgb,var(--codex-brand-ink) 82%,transparent),color-mix(in srgb,var(--codex-brand-primary) 48%,transparent),color-mix(in srgb,var(--codex-brand-ink) 72%,transparent)),
    var(--codex-hero-image) !important;
  background-position: center !important;
  background-size: cover !important;
}

html.codex-pattern-grid #body_wrap { background-image: linear-gradient(rgba(49,87,213,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(49,87,213,.028) 1px,transparent 1px); background-size: 28px 28px; }
html.codex-pattern-notebook #body_wrap { background-image: repeating-linear-gradient(0deg,transparent 0 31px,rgba(229,111,89,.035) 31px 32px); }
html.codex-pattern-soft #body_wrap { background-image: radial-gradient(circle at 7% 28%,rgba(125,165,139,.07),transparent 24%),radial-gradient(circle at 93% 70%,rgba(184,107,85,.06),transparent 22%); }
html.codex-pattern-steps #body_wrap { background-image: repeating-linear-gradient(135deg,rgba(49,95,119,.025) 0 1px,transparent 1px 38px); }
html.codex-pattern-waves #body_wrap { background-image: radial-gradient(90px 36px at 15% 0,transparent 47%,rgba(23,123,145,.045) 49% 52%,transparent 54%),radial-gradient(110px 44px at 78% 0,transparent 47%,rgba(85,185,165,.05) 49% 52%,transparent 54%); }
html.codex-pattern-steam #body_wrap { background-image: radial-gradient(ellipse at 20% 100%,transparent 45%,rgba(155,73,56,.035) 46% 49%,transparent 50%),radial-gradient(ellipse at 78% 100%,transparent 45%,rgba(228,169,79,.04) 46% 49%,transparent 50%); }
html.codex-pattern-network #body_wrap { background-image: radial-gradient(circle,rgba(46,181,195,.055) 0 2px,transparent 2.5px); background-size: 40px 40px; }
html.codex-pattern-table #body_wrap { background-image: radial-gradient(circle at 8% 18%,transparent 0 28px,rgba(214,88,67,.035) 29px 32px,transparent 33px),radial-gradient(circle at 88% 70%,transparent 0 40px,rgba(240,169,58,.04) 41px 44px,transparent 45px); }
html.codex-pattern-mountain #body_wrap { background-image: linear-gradient(150deg,transparent 0 76%,rgba(63,107,82,.035) 76% 84%,transparent 84%),linear-gradient(30deg,transparent 0 78%,rgba(217,144,69,.03) 78% 85%,transparent 85%); }

/* Compact latest-post rail: the fixed home-page counterpart to Uchiplant's post slider. */
html.codex-brand-ui .codex-top-rail {
  position: relative;
  z-index: 3;
  padding: 14px max(20px,calc((100vw - 1180px)/2)) 24px;
  border-bottom: 0;
  background: color-mix(in srgb,var(--codex-brand-soft) 34%,#fff);
}
html.codex-brand-ui .codex-top-rail__inner { max-width: 1180px; margin: 0 auto; }
html.codex-brand-ui .codex-top-rail__eyebrow {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0 0 10px;
  color: var(--codex-brand-primary);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}
html.codex-brand-ui .codex-top-rail__eyebrow span { color: var(--codex-brand-ink); font-size: 13px; letter-spacing: .05em; }
html.codex-brand-ui .codex-top-rail__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
html.codex-brand-ui .codex-top-rail__track::-webkit-scrollbar { display: none; }
html.codex-brand-ui .codex-top-rail__card {
  position: relative;
  display: block;
  flex: 0 0 calc((100% - 56px)/5);
  min-width: 0;
  color: var(--codex-brand-ink) !important;
  text-decoration: none !important;
  scroll-snap-align: start;
}
html.codex-brand-ui .codex-top-rail__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 8px;
  border-radius: 0;
  background: linear-gradient(145deg,var(--codex-brand-soft),#fff);
  box-shadow: none;
}
html.codex-brand-ui .codex-top-rail__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
html.codex-brand-ui .codex-top-rail__card:hover .codex-top-rail__media img { transform: scale(1.035); }
html.codex-brand-ui .codex-top-rail__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(145deg,color-mix(in srgb,var(--codex-brand-primary) 18%,transparent),color-mix(in srgb,var(--codex-brand-soft) 28%,transparent)),
    var(--codex-hero-image) center/cover no-repeat;
}
html.codex-brand-ui .codex-top-rail__card:nth-child(1) .codex-top-rail__media { background: linear-gradient(145deg,color-mix(in srgb,var(--codex-brand-primary) 12%,#fff),#fff); }
html.codex-brand-ui .codex-top-rail__card:nth-child(2) .codex-top-rail__media { background: linear-gradient(145deg,color-mix(in srgb,var(--codex-brand-accent) 15%,#fff),#fff); }
html.codex-brand-ui .codex-top-rail__card:nth-child(3) .codex-top-rail__media { background: linear-gradient(145deg,#fff,color-mix(in srgb,var(--codex-brand-primary) 10%,var(--codex-brand-soft))); }
html.codex-brand-ui .codex-top-rail__card:nth-child(4) .codex-top-rail__media { background: linear-gradient(145deg,color-mix(in srgb,var(--codex-brand-soft) 74%,#fff),color-mix(in srgb,var(--codex-brand-accent) 10%,#fff)); }
html.codex-brand-ui .codex-top-rail__card:nth-child(5) .codex-top-rail__media { background: linear-gradient(145deg,color-mix(in srgb,var(--codex-brand-primary) 8%,#fff),color-mix(in srgb,var(--codex-brand-accent) 8%,#fff)); }
html.codex-brand-ui .codex-top-rail__card:nth-child(6) .codex-top-rail__media { background: linear-gradient(145deg,#fff,var(--codex-brand-soft)); }
html.codex-brand-ui .codex-top-rail__category {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  display: block;
  padding: 4px 8px;
  background: var(--codex-brand-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
html.codex-brand-ui .codex-top-rail__title { display: -webkit-box; overflow: hidden; color: var(--codex-brand-ink); font-size: 13px; font-weight: 700; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
html.codex-brand-ui .codex-top-rail__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-height: 8px;
  margin-top: 15px;
}
html.codex-brand-ui .codex-top-rail__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb,var(--codex-brand-ink) 20%,#fff);
}
html.codex-brand-ui .codex-top-rail__dot.is-active { background: var(--codex-brand-primary); }

/* Uchiplant-style home feed: article cards first, fixed site explanation second. */
html.codex-brand-ui .codex-home-feed { margin: 0 0 clamp(46px,7vw,74px); }
html.codex-brand-ui .codex-home-feed__item {
  margin: 0 0 40px;
  padding: 0 0 36px;
  border-bottom: 1px solid var(--codex-border);
}
html.codex-brand-ui .codex-home-feed__link { display: block; color: var(--codex-brand-ink) !important; text-decoration: none !important; }
html.codex-brand-ui .codex-home-feed__heading {
  display: grid;
  grid-template-columns: 74px minmax(0,1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}
html.codex-brand-ui .codex-home-feed__meta {
  display: grid;
  gap: 7px;
  padding-top: 4px;
  color: color-mix(in srgb,var(--codex-brand-ink) 72%,#fff);
  font-size: 11px;
  line-height: 1.45;
}
html.codex-brand-ui .codex-home-feed__meta span { color: var(--codex-brand-primary); font-weight: 800; }
html.codex-brand-ui .codex-home-feed h2 {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--codex-brand-ink) !important;
  font-size: clamp(20px,2.3vw,28px) !important;
  line-height: 1.55;
}
html.codex-brand-ui .codex-home-feed__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/8.8;
  margin-bottom: 20px;
  background: var(--codex-brand-soft);
}
html.codex-brand-ui .codex-home-feed__media img { width: 100%; height: 100%; object-fit: cover; }
html.codex-brand-ui .codex-home-feed__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(145deg,color-mix(in srgb,var(--codex-brand-primary) 16%,transparent),color-mix(in srgb,var(--codex-brand-soft) 24%,transparent)),
    var(--codex-hero-image) center/cover no-repeat;
}
html.codex-brand-ui .codex-home-feed__item p { margin: 0; color: color-mix(in srgb,var(--codex-brand-ink) 82%,#fff); line-height: 1.9; }

/* Shared upper card on articles and pages. */
html.codex-brand-ui .p-articleHead,
html.codex-brand-ui .article-header,
html.codex-brand-ui .archive-title,
html.codex-brand-ui .c-pageTitle {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(22px,4vw,38px);
  padding: clamp(20px,3.3vw,34px) !important;
  border: 1px solid var(--codex-border);
  border-left: 6px solid var(--codex-brand-primary);
  border-radius: 16px;
  background: linear-gradient(125deg,rgba(255,255,255,.96),color-mix(in srgb,var(--codex-brand-soft) 82%,#fff));
  box-shadow: 0 12px 32px color-mix(in srgb,var(--codex-brand-ink) 7%,transparent);
}
html.codex-brand-ui .p-articleHead::after,
html.codex-brand-ui .article-header::after,
html.codex-brand-ui .c-pageTitle::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -18px;
  width: 86px;
  aspect-ratio: 1;
  border-radius: 24%;
  background: var(--codex-site-icon) center/contain no-repeat;
  opacity: .075;
  pointer-events: none;
}

html.codex-brand-ui .c-pageTitle {
  min-height: 92px;
  display: flex;
  align-items: center;
}
html.codex-brand-ui .c-pageTitle__inner { position: relative; z-index: 1; }

/* Uchiplant-aligned fixed-page hierarchy: quiet page heading, then page content. */
html.codex-static-page .p-articleHead,
html.codex-static-page .article-header,
html.codex-static-page .c-pageTitle {
  min-height: 0;
  margin-bottom: clamp(38px,6vw,64px);
  padding: 0 14px 12px !important;
  border: 0;
  border-bottom: 1px solid var(--codex-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html.codex-static-page .p-articleHead::after,
html.codex-static-page .article-header::after,
html.codex-static-page .c-pageTitle::after { display: none; }

/* Profile page identity: real icon, clear role, and a site-specific color atmosphere. */
html.codex-brand-ui .codex-profile-identity {
  display: block;
  margin: 0 0 clamp(64px,9vw,90px);
  padding: 0;
  text-align: center;
}

html.codex-profile-page .eye-catch-wrap,
html.codex-profile-page .sns-share,
html.codex-profile-page .sns-follow,
html.codex-profile-page #toc,
html.codex-profile-page .p-toc,
html.codex-profile-page .blog-generation-toc {
  display: none !important;
}

html.codex-profile-page .article-header {
  min-height: 0;
}
html.codex-brand-ui .codex-profile-identity__icon {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border: 1px solid var(--codex-border);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 26px color-mix(in srgb,var(--codex-brand-ink) 10%,transparent);
  object-fit: contain;
}
html.codex-brand-ui .codex-profile-identity > noscript,
html.codex-brand-ui .codex-profile-identity > p:empty {
  display: none !important;
}
html.codex-brand-ui .codex-profile-identity__copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
html.codex-brand-ui .codex-profile-identity__copy > * { margin-top: 0; }
html.codex-brand-ui .codex-profile-identity__eyebrow {
  margin-bottom: 8px;
  color: var(--codex-brand-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
}
html.codex-brand-ui .codex-profile-identity__title {
  margin-bottom: 4px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: var(--codex-brand-ink) !important;
  font-size: clamp(26px,4vw,38px);
  font-weight: 800;
  line-height: 1.35;
}
html.codex-brand-ui .codex-profile-identity__role {
  margin-bottom: 14px;
  color: var(--codex-brand-primary);
  font-size: 14px;
  font-weight: 700;
}
html.codex-brand-ui .codex-profile-identity__lead {
  margin-bottom: 0;
  line-height: 1.9;
}
html.codex-brand-ui .codex-profile-identity__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
html.codex-brand-ui .codex-profile-identity__links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid color-mix(in srgb,var(--codex-brand-primary) 28%,#fff);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: var(--codex-brand-primary) !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
}
html.codex-brand-ui .codex-profile-identity__links a::after { content: "→"; margin-left: 6px; }

html.codex-profile-page .post_content > .codex-profile-facts {
  margin: 0 0 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  line-height: 2;
  box-shadow: none;
}
html.codex-profile-page .post_content > .codex-profile-facts strong {
  display: inline-block;
  min-width: 92px;
  color: var(--codex-brand-primary);
}
html.codex-profile-page .post_content > ul {
  display: block;
  margin: 0 0 34px 1.4em;
  padding: 0;
  list-style: disc;
}
html.codex-profile-page .post_content > ul > li {
  margin: 0 0 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  line-height: 1.8;
}
html.codex-profile-page .post_content > ul > li::before { display: none; }
html.codex-profile-page .post_content > p:not(.codex-profile-facts) { line-height: 2; }

html.codex-brand-ui .codex-three-pillars { margin: 0 0 38px; }
html.codex-brand-ui .codex-three-pillars h3 {
  margin: 34px 0 18px;
  padding: 0 0 10px;
  border-bottom: 2px solid var(--codex-brand-primary);
  color: var(--codex-brand-ink);
}
html.codex-brand-ui .codex-three-pillars ul,
html.codex-brand-ui .codex-disclaimer-safety { margin-bottom: 28px; }
html.codex-brand-ui .post_content a[target="_blank"] { text-underline-offset: 3px; }

html.codex-brand-ui .codex-sidebar-profile,
html.codex-brand-ui .uchip-sidebar-profile,
html.codex-brand-ui .p-profileBox,
html.codex-brand-ui .author-box {
  overflow: hidden;
  border: 1px solid var(--codex-border) !important;
  border-radius: 16px !important;
  background: linear-gradient(155deg,#fff,var(--codex-brand-soft)) !important;
  box-shadow: 0 10px 28px color-mix(in srgb,var(--codex-brand-ink) 8%,transparent);
}
html.codex-brand-ui .codex-sidebar-profile img,
html.codex-brand-ui .uchip-sidebar-profile img,
html.codex-brand-ui .p-profileBox img,
html.codex-brand-ui .author-box img {
  border-color: color-mix(in srgb,var(--codex-brand-primary) 22%,#fff) !important;
  object-fit: contain !important;
}

html.codex-brand-ui .l-footer__inner::before,
html.codex-brand-ui .footer-in::before {
  content: "";
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  padding: 6px;
  border-radius: 22%;
  background: #fff var(--codex-site-icon) center/46px no-repeat;
  box-shadow: 0 8px 22px rgba(0,0,0,.14);
}

@media (max-width: 959px) {
  html.codex-profile-page body,
  html.codex-profile-page #container,
  html.codex-profile-page #content,
  html.codex-profile-page .content-in,
  html.codex-profile-page #main,
  html.codex-profile-page .main,
  html.codex-profile-page .article,
  html.codex-profile-page .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  html.codex-profile-page .wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  html.codex-profile-page .content-in { display: block !important; }
  html.codex-profile-page .main { padding-right: 12px !important; padding-left: 12px !important; }
  html.codex-profile-page .sidebar { display: none !important; }
  html.codex-profile-page img { max-width: 100% !important; height: auto; }
  html.codex-brand-ui .l-header__inner,
  html.codex-brand-ui .header-in { min-height: 132px; }
  html.codex-brand-ui .l-header__logo { min-height: 132px !important; }
  html.codex-brand-ui .c-headLogo,
  html.codex-brand-ui .logo-header { max-width: min(560px,88vw) !important; margin: 10px auto 2px !important; padding: 0 !important; }
  html.codex-brand-ui .c-headLogo img,
  html.codex-brand-ui .c-headLogo__img,
  html.codex-brand-ui .logo-header img { width: 42px !important; height: 42px !important; max-width: 42px !important; max-height: 42px !important; padding: 5px; }
  html.codex-brand-ui .c-headLogo__link::after,
  html.codex-brand-ui .c-headLogo a::after,
  html.codex-brand-ui .logo-header a::after { font-size: clamp(26px,8vw,34px); }
  html.codex-brand-ui .c-catchphrase,
  html.codex-brand-ui .l-header__catchphrase { font-size: 12px !important; }
  html.codex-brand-ui .codex-top-rail { padding: 14px 14px 17px; }
  html.codex-brand-ui .codex-top-rail__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 3px;
  }
  html.codex-brand-ui .codex-top-rail__track::-webkit-scrollbar { display: none; }
  html.codex-brand-ui .codex-top-rail__card { flex: 0 0 min(64vw,240px); scroll-snap-align: start; }
  html.codex-brand-ui .codex-home-feed__heading { grid-template-columns: 1fr; gap: 8px; }
  html.codex-brand-ui .codex-home-feed__meta { display: flex; gap: 12px; }
  html.codex-brand-ui .codex-profile-identity { text-align: center; }
  html.codex-brand-ui .codex-profile-identity__icon { width: 150px; height: 150px; margin-inline: auto; }
  html.codex-profile-page .post_content > .codex-profile-facts { padding: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  html.codex-brand-ui .c-gnav > li > a,
  html.codex-brand-ui .navi-in > ul > li > a { transition: background-color .18s ease, transform .18s ease; }
  html.codex-brand-ui .c-gnav > li > a:hover,
  html.codex-brand-ui .navi-in > ul > li > a:hover { transform: translateY(-1px); }
}
