/* ==========================================================================
   NICEBLOG — a calm, literary blog skin for DCR CMS
   --------------------------------------------------------------------------
   Design intent
     "Editorial paper". Where HOTBLOG is loud and gradient-driven, NICEBLOG is
     quiet, typographic and warm: cream paper, sage/clay accents, serif
     headlines, generous margins, no icon fonts, no jQuery.

   What this skin guarantees
     - Blog first. Article cards render with no price and no cart button.
     - Directory-first navigation: a real 2-level article directory
       (see directory.htm, generated from the live category tree).
     - SEO-first markup: one <h1> per page, semantic landmarks, breadcrumb
       structured data, Article/BlogPosting + WebSite + Organization JSON-LD,
       lazy images, canonical URLs.

   Sections
     01 Tokens        07 Article cards       13 Directory (2-level)
     02 Base          08 Listing + sidebar   14 Pagination & breadcrumb
     03 Helpers       09 Article page        15 Custom code
     04 Header        10 Tables / prose      16 Footer
     05 Drawer        11 Forms               17 Blog-mode kill switch
     06 Hero          12 Category chips      18 Responsive / print / a11y
   ========================================================================== */

/* ===== 01. Tokens ======================================================= */
:root {
  /* palette */
  --nc-paper: #fbf8f4;
  --nc-card: #ffffff;
  --nc-ink: #22201d;
  --nc-ink-soft: #4a453f;
  --nc-body: #3a3631;
  --nc-muted: #837a70;
  --nc-line: #e6ded4;
  --nc-line-soft: #f1eae1;
  --nc-sage: #4a6b57;
  --nc-sage-dark: #35503f;
  --nc-sage-tint: #eef3ef;
  --nc-clay: #b4643c;
  --nc-clay-tint: #fdf1ea;
  --nc-gold: #c39a3f;

  /* type */
  --nc-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
              Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
  --nc-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
             "Helvetica Neue", "PingFang SC", "Hiragino Sans GB",
             "Microsoft YaHei", Arial, sans-serif;

  /* metrics */
  --nc-wide: 1180px;
  --nc-narrow: 760px;
  --nc-radius: 3px;
  --nc-shadow: 0 1px 2px rgba(34, 32, 29, .05), 0 12px 28px rgba(34, 32, 29, .06);
  --nc-shadow-lg: 0 2px 4px rgba(34, 32, 29, .06), 0 22px 48px rgba(34, 32, 29, .12);
  --nc-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ===== 02. Base ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.nc-body {
  margin: 0;
  padding: 0;
  background: var(--nc-paper);
  color: var(--nc-body);
  font-family: var(--nc-sans);
  font-size: 17px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nc-body img { max-width: 100%; height: auto; border: 0; }
body.nc-body a { color: var(--nc-sage-dark); text-decoration: none; }
body.nc-body a:hover { color: var(--nc-clay); }
body.nc-body ul, body.nc-body ol { list-style: none; margin: 0; padding: 0; }
body.nc-body table { border-collapse: collapse; }

/* scoped control reset — cannot outrank component rules */
body.nc-body button:not([class]),
body.nc-body input:not([class]),
body.nc-body select:not([class]),
body.nc-body textarea:not([class]) { font: inherit; color: var(--nc-ink); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .55em;
  color: var(--nc-ink);
  font-family: var(--nc-serif);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -.012em;
  word-wrap: break-word;
}
h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.14; }
h2 { font-size: clamp(24px, 3.2vw, 33px); }
h3 { font-size: clamp(19px, 2.2vw, 23px); }
h4 { font-size: 18px; }
h5, h6 { font-size: 15px; letter-spacing: .02em; }
p { margin: 0 0 1.15em; }

::selection { background: var(--nc-sage); color: #fff; }
:focus-visible { outline: 2px solid var(--nc-clay); outline-offset: 3px; }

/* ===== 03. Helpers ====================================================== */
.nc-wrap { width: 100%; max-width: var(--nc-wide); margin: 0 auto; padding: 0 26px; }
.nc-wrap--narrow { max-width: var(--nc-narrow); }
.nc-main { display: block; }
.nc-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.nc-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: 12px 20px; background: var(--nc-ink); color: #fff; border-radius: 0 0 var(--nc-radius) 0;
}
.nc-skip:focus { left: 0; color: #fff; }
.nc-ico { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nc-ico--sm { width: 15px; height: 15px; }

.nc-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--nc-clay);
  font-family: var(--nc-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.nc-rule { height: 1px; background: var(--nc-line); border: 0; margin: 0; }

/* ===== 04. Header ======================================================= */
.nc-notice {
  background: var(--nc-ink);
  color: #f3ece4;
  font-size: 13px;
  letter-spacing: .03em;
}
.nc-notice__inner { display: flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 0; text-align: center; }
.nc-notice__inner > * { margin: 0; }
.nc-notice a { color: var(--nc-gold); text-decoration: underline; }

.nc-head {
  background: var(--nc-paper);
  border-bottom: 1px solid var(--nc-line);
  position: relative;
  z-index: 60;
}
.nc-head__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 84px;
  padding: 16px 0;
}
.nc-brand { display: flex; align-items: center; flex: 0 0 auto; }
.nc-brand img { max-height: 46px; width: auto; }
.nc-brand__text {
  font-family: var(--nc-serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--nc-ink);
}
.nc-brand:hover .nc-brand__text { color: var(--nc-sage-dark); }

.nc-head__nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nc-head__nav a {
  padding: 9px 13px;
  border-radius: var(--nc-radius);
  color: var(--nc-ink-soft);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .18s var(--nc-ease), color .18s var(--nc-ease);
}
.nc-head__nav a:hover { background: var(--nc-sage-tint); color: var(--nc-sage-dark); }
.nc-head__nav a.is-active { color: var(--nc-sage-dark); font-weight: 700; }

.nc-head__tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nc-iconbtn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--nc-line);
  border-radius: 50%;
  background: var(--nc-card);
  color: var(--nc-ink-soft);
  cursor: pointer;
  transition: all .18s var(--nc-ease);
}
.nc-iconbtn:hover { border-color: var(--nc-sage); color: var(--nc-sage-dark); }

.nc-search { display: none; padding: 0 0 20px; }
.nc-search.is-open { display: block; }
.nc-search__form {
  display: flex;
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius);
  background: var(--nc-card);
  overflow: hidden;
}
.nc-search__form:focus-within { border-color: var(--nc-sage); box-shadow: 0 0 0 3px var(--nc-sage-tint); }
.nc-search__form input {
  flex: 1 1 auto; min-width: 0;
  padding: 14px 18px;
  border: 0; outline: 0; background: transparent;
  color: var(--nc-ink); font-size: 15px;
}
.nc-search__form button {
  flex: 0 0 auto;
  padding: 0 22px;
  border: 0; cursor: pointer;
  background: var(--nc-ink); color: #fff !important;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  transition: background .2s var(--nc-ease);
}
.nc-search__form button:hover { background: var(--nc-sage); color: #fff !important; }

/* desktop category strip (2-level dropdowns) */
.nc-catbar { background: var(--nc-card); border-bottom: 1px solid var(--nc-line); }
.nc-catbar__inner { display: flex; align-items: center; gap: 6px; }
.nc-catbar__list { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 6px 0; }
.nc-catbar__list > li { position: relative; }
.nc-catbar__list > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-radius: var(--nc-radius);
  color: var(--nc-ink-soft);
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  transition: background .18s var(--nc-ease), color .18s var(--nc-ease);
}
.nc-catbar__list > li > a:hover,
.nc-catbar__list > li > a.is-active { background: var(--nc-sage-tint); color: var(--nc-sage-dark); }
.nc-catbar__list > li > a i,
.nc-catbar__list > li > a .fa { display: none; }
/* parent gets a small marker when it has children */
.nc-catbar__list > li:has(> ul) > a::after {
  content: "";
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .5;
}
.nc-sub {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 90;
  min-width: 232px; padding: 10px;
  background: var(--nc-card);
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius);
  box-shadow: var(--nc-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s var(--nc-ease), transform .2s var(--nc-ease), visibility .2s;
}
.nc-catbar__list > li:hover > .nc-sub,
.nc-catbar__list > li:focus-within > .nc-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nc-sub a {
  display: block;
  padding: 9px 12px;
  border-radius: 2px;
  color: var(--nc-ink-soft);
  font-size: 13.5px;
  line-height: 1.5;
  white-space: normal;
}
.nc-sub a:hover { background: var(--nc-sage-tint); color: var(--nc-sage-dark); }
.nc-catbar__more {
  margin-left: auto;
  padding: 10px 14px;
  color: var(--nc-clay);
  font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.nc-catbar__more:hover { text-decoration: underline; }

/* ===== 05. Drawer ====================================================== */
.nc-veil {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(34, 32, 29, .5);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--nc-ease), visibility .3s;
}
.nc-veil.is-open { opacity: 1; visibility: visible; }

.nc-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000;
  width: 328px; max-width: 88vw;
  background: var(--nc-card);
  box-shadow: 8px 0 40px rgba(34, 32, 29, .18);
  transform: translateX(-102%);
  transition: transform .34s var(--nc-ease);
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.nc-drawer.is-open { transform: translateX(0); }
.nc-drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 22px; border-bottom: 1px solid var(--nc-line);
}
.nc-drawer__head img { max-height: 38px; width: auto; }
.nc-drawer__brand { font-family: var(--nc-serif); font-size: 21px; color: var(--nc-ink); }
.nc-drawer__close {
  width: 38px; height: 38px; border: 1px solid var(--nc-line); border-radius: 50%;
  background: transparent; color: var(--nc-ink-soft); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.nc-drawer__close:hover { border-color: var(--nc-clay); color: var(--nc-clay); }
.nc-drawer__link {
  padding: 15px 22px;
  border-bottom: 1px solid var(--nc-line-soft);
  font-size: 14px;
}
.nc-drawer__contact { color: var(--nc-sage-dark); font-weight: 600; }
.nc-drawer .language_currency { padding: 10px 22px; border-bottom: 1px solid var(--nc-line-soft); font-size: 14px; }
.nc-drawer .language_currency a { color: var(--nc-ink-soft); }
.nc-drawer__menu { padding: 6px 0 40px; }
.nc-drawer__menu > li { border-bottom: 1px solid var(--nc-line-soft); }
.nc-drawer__menu > li > a {
  display: block; position: relative;
  padding: 15px 22px;
  color: var(--nc-ink);
  font-family: var(--nc-serif);
  font-size: 17px;
}
.nc-drawer__menu > li > a:hover { color: var(--nc-sage-dark); }
.nc-ditem.has-sub > a { padding-right: 56px; cursor: pointer; }
.nc-ditem.has-sub > a::after {
  content: "";
  position: absolute; right: 24px; top: 50%;
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--nc-muted);
  border-bottom: 1.5px solid var(--nc-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .24s var(--nc-ease);
}
.nc-ditem.is-open > a::after { transform: translateY(-30%) rotate(-135deg); }
.nc-dsub { display: none; background: #faf7f3; }
.nc-dsub a {
  display: block;
  padding: 12px 22px 12px 38px;
  border-top: 1px solid var(--nc-line-soft);
  color: var(--nc-ink-soft);
  font-size: 14.5px;
}
.nc-dsub a:hover { color: var(--nc-sage-dark); background: var(--nc-sage-tint); }

/* ===== 06. Hero ========================================================= */
.nc-hero {
  background: var(--nc-card);
  border-bottom: 1px solid var(--nc-line);
  padding: clamp(48px, 7vw, 92px) 0;
  position: relative;
  overflow: hidden;
}
.nc-hero__inner { max-width: 760px; }
.nc-hero__title {
  margin: 0 0 20px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
  letter-spacing: -.022em;
}
.nc-hero__title em { font-style: italic; color: var(--nc-sage-dark); }
.nc-hero__lede {
  max-width: 62ch;
  margin: 0 0 28px;
  color: var(--nc-ink-soft);
  font-size: 18px;
  line-height: 1.72;
}
.nc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.nc-hero__stats {
  display: flex; flex-wrap: wrap; gap: 14px 34px;
  margin-top: 34px; padding-top: 24px;
  border-top: 1px solid var(--nc-line);
  color: var(--nc-muted);
  font-size: 13px; letter-spacing: .04em;
}
.nc-hero__stats b { display: block; color: var(--nc-ink); font-family: var(--nc-serif); font-size: 22px; font-weight: 600; letter-spacing: 0; }

/* ===== 07. Buttons & pills ============================================= */
.nc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--nc-radius);
  background: var(--nc-ink);
  /* explicit: the button sits on a dark fill, so the label must stay light
     regardless of any inherited link colour from the theme */
  color: #fff !important;
  font-family: var(--nc-sans);
  font-size: 14px; font-weight: 600; letter-spacing: .03em;
  cursor: pointer;
  transition: background .2s var(--nc-ease), color .2s var(--nc-ease), border-color .2s var(--nc-ease), transform .2s var(--nc-ease);
}
.nc-btn:hover { background: var(--nc-sage); color: #fff !important; transform: translateY(-1px); }
.nc-btn--ghost { background: transparent; border-color: var(--nc-line); color: var(--nc-ink-soft) !important; }
.nc-btn--ghost:hover { background: var(--nc-sage-tint); border-color: var(--nc-sage); color: var(--nc-sage-dark) !important; }
.nc-btn--wide { width: 100%; }

.nc-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--nc-line);
  border-radius: 999px;
  background: var(--nc-card);
  color: var(--nc-muted);
  font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
}

/* ===== 08. Section headers ============================================= */
.nc-section { padding: clamp(48px, 6vw, 76px) 0; }
.nc-section--tint { background: var(--nc-card); border-top: 1px solid var(--nc-line); border-bottom: 1px solid var(--nc-line); }
.nc-section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 36px;
}
.nc-section__head h2 { margin: 0; }
.nc-section__sub { margin: 10px 0 0; color: var(--nc-muted); font-size: 15.5px; }
.nc-section__link { flex: 0 0 auto; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nc-section__link:hover { text-decoration: underline; }

/* ===== 09. Article cards =============================================== */
.plists { min-width: 0; }
.nc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 34px; }
.nc-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nc-grid--list { grid-template-columns: minmax(0, 1fr); gap: 0; }

.nc-card {
  display: flex; flex-direction: column; height: 100%;
  background: transparent;
}
.nc-card__thumb {
  display: block; position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--nc-line-soft);
  border-radius: var(--nc-radius);
}
.nc-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .7s var(--nc-ease);
}
.nc-card:hover .nc-card__thumb img { transform: scale(1.04); }
.nc-card__body { padding: 20px 0 0; display: flex; flex-direction: column; flex: 1 1 auto; }
.nc-card__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--nc-clay);
  font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.nc-card__title {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.28;
}
.nc-card__title a {
  color: var(--nc-ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s var(--nc-ease);
}
.nc-card:hover .nc-card__title a { color: var(--nc-sage-dark); }
.nc-card__foot {
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--nc-line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nc-card__more {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--nc-sage-dark);
  font-size: 13px; font-weight: 600;
}
.nc-card__more::after { content: "→"; transition: transform .25s var(--nc-ease); }
.nc-card:hover .nc-card__more::after { transform: translateX(4px); }
.nc-card__meta { color: var(--nc-muted); font-size: 12.5px; letter-spacing: .04em; }

/* lead card — first article of a section spans wider */
.nc-grid--lead > .plists:first-child { grid-column: 1 / -1; }
.nc-grid--lead > .plists:first-child .nc-card { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: center; }
.nc-grid--lead > .plists:first-child .nc-card__thumb { aspect-ratio: 16 / 10; }
.nc-grid--lead > .plists:first-child .nc-card__title { font-size: clamp(24px, 3vw, 32px); }
.nc-grid--lead > .plists:first-child .nc-card__body { padding: 0; }

/* horizontal list variant */
.nc-list { display: grid; gap: 0; }
.nc-list > .plists { border-bottom: 1px solid var(--nc-line-soft); }
.nc-list > .plists:last-child { border-bottom: 0; }
.nc-list .nc-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 26px; align-items: center; padding: 26px 0; }
.nc-list .nc-card__thumb { aspect-ratio: 4 / 3; }
.nc-list .nc-card__body { padding: 0; }
.nc-list .nc-card__title { font-size: 22px; }

/* ===== 10. Listing layout + sidebar ==================================== */
.nc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 56px;
  padding: 44px 0 16px;
  align-items: start;
}
.nc-layout__main { min-width: 0; }

.nc-pagehead { margin-bottom: 34px; padding-bottom: 22px; border-bottom: 1px solid var(--nc-line); }
.nc-pagehead h1 { margin: 0; }
.nc-pagehead__sub { margin: 14px 0 0; max-width: 62ch; color: var(--nc-muted); font-size: 15.5px; }

.nc-side { min-width: 0; position: sticky; top: 24px; }
.nc-widget { margin-bottom: 34px; }
.nc-widget:last-child { margin-bottom: 0; }
.nc-widget__title {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--nc-line);
  font-family: var(--nc-sans);
  font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--nc-muted);
}
.nc-widget p { font-size: 15px; color: var(--nc-muted); }
.nc-widget__contact { font-size: 15px; line-height: 1.8; }
.nc-widget__contact a { color: var(--nc-sage-dark); }

.nc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nc-chips ul { display: flex; flex-wrap: wrap; gap: 8px; }
.nc-chips li { display: inline; }
.nc-chips a,
.nc-chips > a,
.nc-chips ul li a,
.nc-chips li h5 { margin: 0; display: inline-block; }
.nc-chips a,
.nc-chips ul li a {
  padding: 7px 13px;
  border: 1px solid var(--nc-line);
  border-radius: 999px;
  background: var(--nc-card);
  color: var(--nc-ink-soft);
  font-size: 13px;
  transition: all .18s var(--nc-ease);
}
.nc-chips a:hover, .nc-chips ul li a:hover {
  background: var(--nc-sage-tint); border-color: var(--nc-sage); color: var(--nc-sage-dark);
}
.nc-chips font { color: inherit !important; }

.nc-tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.nc-tagcloud a, #prohref a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--nc-clay-tint);
  color: var(--nc-clay);
  font-size: 12.5px;
  transition: all .18s var(--nc-ease);
}
.nc-tagcloud a:hover, #prohref a:hover { background: var(--nc-clay); color: #fff; }
.nc-tagcloud--keys a { background: var(--nc-sage-tint); color: var(--nc-sage-dark); }
.nc-tagcloud--keys a:hover { background: var(--nc-sage); color: #fff; }

.nc-side__nav { display: flex; flex-direction: column; gap: 1px; }
.nc-side__nav a {
  padding: 12px 0;
  border-bottom: 1px solid var(--nc-line-soft);
  color: var(--nc-ink-soft);
  font-size: 14.5px;
}
.nc-side__nav a:hover { color: var(--nc-sage-dark); padding-left: 5px; transition: padding .2s var(--nc-ease); }

/* ===== 11. Directory (2-level article directory) ======================= */
.nc-dir__intro { max-width: 68ch; margin: 0 0 42px; color: var(--nc-ink-soft); font-size: 17px; }

.nc-dir { display: grid; gap: 54px; }
.nc-dir__group { display: grid; gap: 0; }

/* the top-level entry: a real heading that doubles as the category link */
.nc-dir__parent {
  display: flex; align-items: baseline; gap: 14px;
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--nc-ink);
  font-family: var(--nc-serif);
}
.nc-dir__parent a {
  color: var(--nc-ink);
  font-size: clamp(22px, 2.9vw, 30px);
  font-weight: 600;
  letter-spacing: -.015em;
}
.nc-dir__parent a:hover { color: var(--nc-sage-dark); }
.nc-dir__count {
  margin-left: auto;
  color: var(--nc-muted);
  font-family: var(--nc-sans);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap;
}

/* level 2 entries */
.nc-dir__children {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 2px 26px;
  margin: 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--nc-line);
}
.nc-dir__children li { position: relative; }
.nc-dir__children li::before {
  content: "";
  position: absolute; left: -20px; top: 1.05em;
  width: 12px; height: 2px;
  background: var(--nc-line);
}
.nc-dir__children a {
  display: block;
  padding: 9px 0;
  color: var(--nc-ink-soft);
  font-size: 15.5px;
  line-height: 1.5;
  transition: color .18s var(--nc-ease), padding .18s var(--nc-ease);
}
.nc-dir__children a:hover { color: var(--nc-sage-dark); padding-left: 6px; }

/* a group without children still gets a tidy single link */
.nc-dir__solo { display: block; padding: 6px 0 6px 20px; border-left: 2px solid var(--nc-line); font-size: 15.5px; }

.nc-dir__note {
  margin-top: 46px; padding: 22px 24px;
  background: var(--nc-sage-tint);
  border-radius: var(--nc-radius);
  color: var(--nc-sage-dark);
  font-size: 14.5px;
}

/* legacy flat output fallback (used if directory.htm is not generated yet) */
.nc-catcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 2px 26px; padding-left: 20px; border-left: 2px solid var(--nc-line); }
.nc-catcards > a, .nc-catcards > div > a, .nc-catcards ul li a, .nc-catcards h2, .nc-catcards h3 {
  display: block; margin: 0; padding: 9px 0;
  color: var(--nc-ink-soft); font-family: var(--nc-sans); font-size: 15.5px; font-weight: 400;
  border: 0; background: none; text-transform: none; letter-spacing: 0;
}
.nc-catcards > a:hover, .nc-catcards > div > a:hover, .nc-catcards ul li a:hover { color: var(--nc-sage-dark); }
.nc-catcards a font { color: inherit !important; }
.nc-catcards ul { display: contents; }

/* ===== 12. Article page ================================================ */
.nc-article { max-width: var(--nc-narrow); }
.nc-article__head { margin-bottom: 30px; }
.nc-article__title { margin: 0 0 18px; }
.nc-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--nc-line);
  color: var(--nc-muted);
  font-size: 13.5px;
}
.nc-meta a { color: var(--nc-muted); }
.nc-meta a:hover { color: var(--nc-sage-dark); }
.nc-meta__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--nc-line); }

.nc-article__figure {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: 10px;
  margin: 30px 0 34px;
}
.nc-article__figure img {
  width: 100%; height: 94px;
  object-fit: cover; border-radius: var(--nc-radius);
  cursor: pointer; opacity: .84;
  transition: opacity .2s var(--nc-ease), transform .2s var(--nc-ease);
}
.nc-article__figure img:hover { opacity: 1; transform: translateY(-3px); }
.nc-article__figure img:first-child {
  grid-column: 1 / -1;
  height: auto; max-height: 660px; object-fit: contain;
  background: var(--nc-line-soft);
  opacity: 1; cursor: default; transform: none;
}

/* long-form prose — the heart of a blog template */
.nc-prose { font-size: 18.5px; line-height: 1.82; color: var(--nc-body); }
.nc-prose > *:first-child { margin-top: 0; }
.nc-prose h2 { margin: 46px 0 16px; font-size: clamp(23px, 2.8vw, 29px); }
.nc-prose h3 { margin: 34px 0 12px; font-size: 22px; }
.nc-prose h4 { margin: 28px 0 10px; font-size: 19px; font-family: var(--nc-sans); font-weight: 700; }
.nc-prose p { margin-bottom: 22px; }
.nc-prose img { margin: 30px auto; border-radius: var(--nc-radius); display: block; height: auto; }
.nc-prose a { color: var(--nc-sage-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nc-prose a:hover { color: var(--nc-clay); }
.nc-prose ul, .nc-prose ol { margin: 0 0 24px; padding-left: 26px; }
.nc-prose ul { list-style: disc; }
.nc-prose ol { list-style: decimal; }
.nc-prose li { margin-bottom: 10px; }
.nc-prose blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--nc-sage);
  color: var(--nc-ink-soft);
  font-family: var(--nc-serif);
  font-size: 21px;
  font-style: italic;
  line-height: 1.6;
}
.nc-prose blockquote p:last-child { margin-bottom: 0; }
.nc-prose code {
  padding: 2px 7px; border-radius: 3px;
  background: var(--nc-line-soft);
  color: var(--nc-clay);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
}
.nc-prose pre { padding: 20px 22px; overflow-x: auto; background: var(--nc-ink); color: #f3ece4; border-radius: var(--nc-radius); }
.nc-prose pre code { background: none; color: inherit; padding: 0; }
.nc-prose hr { height: 1px; margin: 42px 0; border: 0; background: var(--nc-line); }
.nc-prose table { width: 100%; margin-bottom: 26px; font-size: 16px; }
.nc-prose th, .nc-prose td { padding: 11px 14px; border: 1px solid var(--nc-line); text-align: left; }
.nc-prose th { background: var(--nc-line-soft); font-family: var(--nc-sans); font-size: 14px; font-weight: 700; }
.nc-prose figure { margin: 30px 0; }
.nc-prose figcaption { margin-top: 10px; color: var(--nc-muted); font-size: 13.5px; text-align: center; }
.nc-prose iframe { max-width: 100%; }

.nc-article__tags { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--nc-line); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.nc-article__tags > strong {
  color: var(--nc-muted);
  font-family: var(--nc-sans); font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
}
.nc-article__share { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nc-article__share a {
  padding: 8px 14px; border: 1px solid var(--nc-line); border-radius: 999px;
  color: var(--nc-ink-soft); font-size: 13px;
}
.nc-article__share a:hover { border-color: var(--nc-sage); color: var(--nc-sage-dark); background: var(--nc-sage-tint); }

.nc-related { margin-top: 60px; padding-top: 40px; border-top: 1px solid var(--nc-line); }
.nc-related__head { margin-bottom: 30px; }
.nc-related .nc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.nc-related .nc-card__title { font-size: 18px; }

.nc-comments { margin-top: 50px; padding-top: 34px; border-top: 1px solid var(--nc-line); }
.nc-comments__title { font-size: 22px; margin-bottom: 20px; }
#review { font-size: 16px; }
#review > * { padding: 18px 0; border-bottom: 1px solid var(--nc-line-soft); margin: 0; }
#review b, #review strong { color: var(--nc-ink); }
#review img { border-radius: 50%; }

/* ===== 13. Forms ======================================================= */
.nc-form { margin-top: 26px; max-width: 620px; }
.nc-form__row { margin-bottom: 20px; }
.nc-form__row label {
  display: block; margin-bottom: 8px;
  color: var(--nc-ink-soft);
  font-family: var(--nc-sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.nc-form__row em, .nc-form__row .required { color: var(--nc-clay); font-style: normal; }
.nc-field,
.nc-form input[type="text"],
.nc-form input[type="email"],
.nc-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius);
  background: var(--nc-card);
  color: var(--nc-ink);
  font-family: var(--nc-sans);
  font-size: 16px;
  transition: border-color .18s var(--nc-ease), box-shadow .18s var(--nc-ease);
}
.nc-field:focus, .nc-form input:focus, .nc-form textarea:focus {
  outline: 0; border-color: var(--nc-sage); box-shadow: 0 0 0 3px var(--nc-sage-tint);
}
textarea.nc-field { min-height: 150px; resize: vertical; }
.nc-form__hint { margin-top: 7px; color: var(--nc-muted); font-size: 13px; }

.nc-noticecard {
  max-width: 620px; margin: 0 auto;
  padding: clamp(34px, 6vw, 62px) clamp(24px, 5vw, 54px);
  background: var(--nc-card);
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius);
  text-align: center;
}
.nc-noticecard__icon {
  width: 68px; height: 68px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--nc-sage-tint); color: var(--nc-sage-dark);
}
.nc-noticecard__icon .nc-ico { width: 28px; height: 28px; }
.nc-noticecard h1 { font-size: clamp(24px, 3.6vw, 32px); }
.nc-noticecard p { color: var(--nc-muted); margin-bottom: 26px; }

/* ===== 14. Pagination & breadcrumb ==================================== */
.nc-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 46px 0 0; padding: 0; font-size: 0; }
.nc-pager > font {
  flex: 0 0 100%; display: block; margin-bottom: 16px;
  color: var(--nc-muted); font-family: var(--nc-sans); font-size: 12.5px; letter-spacing: .05em; text-align: center;
}
.nc-pager > font font { color: var(--nc-clay); font-size: inherit; }
.nc-pager select {
  height: 40px; padding: 0 30px 0 14px;
  border: 1px solid var(--nc-line); border-radius: var(--nc-radius);
  background: var(--nc-card); color: var(--nc-ink-soft);
  font-family: var(--nc-sans); font-size: 13.5px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--nc-muted) 50%),
                    linear-gradient(135deg, var(--nc-muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.nc-pager li { list-style: none; font-size: 15px; }
.nc-pager li a, .nc-pager li span, .nc-pager a, .nc-pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius);
  background: var(--nc-card);
  color: var(--nc-ink-soft);
  font-size: 14.5px;
  transition: all .18s var(--nc-ease);
}
.nc-pager li a:hover, .nc-pager a:hover { border-color: var(--nc-sage); color: var(--nc-sage-dark); }
.nc-pager .current a, .nc-pager .current span,
.nc-pager li.active a, .nc-pager li.active span, .nc-pager .thisclass {
  background: var(--nc-ink); border-color: var(--nc-ink); color: #fff;
}

.nc-crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  padding: 22px 0 0;
  color: var(--nc-muted);
  font-size: 13px;
}
.nc-crumbs a { color: var(--nc-muted); }
.nc-crumbs a:hover { color: var(--nc-sage-dark); }
.nc-crumbs i, .nc-crumbs .fa { margin-right: 5px; color: var(--nc-sage); }
.nc-crumbs > * { display: inline-flex; align-items: center; }
.nc-crumbs .divider { color: var(--nc-line); }

/* ===== 15. Custom code blocks ========================================= */
.nc-block { background: var(--nc-card); border-top: 1px solid var(--nc-line); border-bottom: 1px solid var(--nc-line); }
.nc-block .nc-wrap { padding-top: 46px; padding-bottom: 46px; }
.nc-block::after { content: ""; display: table; clear: both; }
.nc-block h2 { font-size: clamp(22px, 2.8vw, 30px); }
.nc-block h3 { font-size: 21px; margin-top: 26px; }
.nc-block p { color: var(--nc-ink-soft); }
.nc-block a { color: var(--nc-sage-dark); text-decoration: underline; }
.nc-block img { border-radius: var(--nc-radius); }
.nc-block ul, .nc-block ol { margin-bottom: 18px; padding-left: 24px; color: var(--nc-ink-soft); }
.nc-block ul { list-style: disc; }
.nc-block ol { list-style: decimal; }
.nc-block .adaptive-container { width: 100% !important; float: none !important; }
.nc-block table { width: 100%; }
.nc-block td, .nc-block th { padding: 10px 12px; border: 1px solid var(--nc-line); }

.nc-newslist { display: grid; gap: 0; }
.nc-newslist .item, .nc-newslist li {
  display: flex; gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--nc-line-soft);
}
.nc-newslist .thumb { flex: 0 0 220px; border-radius: var(--nc-radius); overflow: hidden; }
.nc-newslist .thumb img { width: 100%; height: 146px; object-fit: cover; display: block; }
.nc-newslist .info { flex: 1 1 auto; min-width: 0; }
.nc-newslist h3, .nc-newslist h2 { margin-bottom: 10px; font-size: 21px; }
.nc-newslist h3 a, .nc-newslist h2 a { color: var(--nc-ink); }
.nc-newslist h3 a:hover, .nc-newslist h2 a:hover { color: var(--nc-sage-dark); }
.nc-newslist .desc { color: var(--nc-muted); font-size: 15px; }



.adaptive-container{display:flex;gap:28px;align-items:stretch;max-width:1180px;margin:0 auto;padding:8px 0;}
.adaptive-container .left-column{flex:0 0 46%;max-width:46%;min-width:0;}
.adaptive-container .left-column img{width:100%;height:100%;max-height:460px;object-fit:cover;display:block;border:1px solid var(--line);}
.adaptive-container .right-column{flex:1;min-width:0;background:var(--white);border:1px solid var(--line);padding:30px 32px;display:flex;flex-direction:column;justify-content:center;}
.adaptive-container .right-column h1,.adaptive-container .right-column h2{margin:0 0 16px;font-family:var(--serif);font-size:26px;line-height:1.3;color:var(--ink);}
.adaptive-container .right-column h1::after,.adaptive-container .right-column h2::after{content:"";display:block;width:54px;height:2px;background:var(--accent);margin-top:12px;}
.adaptive-container .right-column p{margin:0 0 14px;font-family:var(--serif);font-size:16px;line-height:1.65;color:var(--ink-soft);}
.adaptive-container .right-column ul{margin:8px 0 0;padding-left:22px;}
.adaptive-container .right-column li{margin-bottom:9px;font-family:var(--serif);font-size:16px;line-height:1.6;color:var(--ink-soft);}
.adaptive-container .right-column li::marker{color:var(--accent);}


/* ===== 16. Footer ===================================================== */
.nc-foot {
  margin-top: 80px;
  padding-top: 62px;
  background: var(--nc-card);
  border-top: 1px solid var(--nc-line);
  color: var(--nc-ink-soft);
}
.nc-foot__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 46px;
}
.nc-foot__brand { font-family: var(--nc-serif); font-size: 25px; color: var(--nc-ink); display: inline-block; margin-bottom: 14px; }
.nc-foot p { font-size: 15px; color: var(--nc-muted); }
.nc-foot__title {
  margin: 0 0 16px;
  font-family: var(--nc-sans); font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--nc-muted);
}
.nc-foot__list li { margin-bottom: 10px; }
.nc-foot__list a { color: var(--nc-ink-soft); font-size: 15px; }
.nc-foot__list a:hover { color: var(--nc-sage-dark); }
.nc-foot__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--nc-line);
  color: var(--nc-muted); font-size: 13.5px;
}
.nc-foot__bottom p { margin: 0; }
.nc-foot__links { display: flex; flex-wrap: wrap; gap: 16px; }
.nc-foot__code { padding-bottom: 22px; font-size: 13px; }

/* ===== 17. Floating + back-to-top ==================================== */
.nc-float { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 70; display: flex; flex-direction: column; gap: 10px; }
.nc-float img { max-width: 52px; height: auto; }
.nc-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 85;
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--nc-line);
  border-radius: 50%;
  background: var(--nc-card); color: var(--nc-ink-soft);
  cursor: pointer;
  box-shadow: var(--nc-shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .28s var(--nc-ease);
}
.nc-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.nc-top:hover { background: var(--nc-sage); border-color: var(--nc-sage); color: #fff; }

/* ===== 18. Blog-mode kill switch ===================================== */
.mini_cart_wrapper, .mini_cart, .nb-minicart, .cart_table_border,
.price_box, .payments, .nb-countdown, #product_addtocart_form,
.add_to_cart, .cart_button, .quantity, .qty, .nc-qty,
.nc-variant, .hb-variant, .nc-price, .nc-card__price,
input[name="qty"] { display: none !important; }

/* ===== 19. Responsive / print / a11y ================================= */
@media (max-width: 1120px) {
  .nc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nc-related .nc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nc-layout { grid-template-columns: minmax(0, 1fr) 264px; gap: 40px; }
  .nc-foot__top { grid-template-columns: 1.2fr 1fr; }
  .nc-grid--lead > .plists:first-child .nc-card { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 900px) {
  .nc-head__nav { display: none; }
  .nc-catbar { display: none; }
  .nc-layout { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .nc-side { position: static; }
  .nc-list .nc-card { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 680px) {
  body.nc-body { font-size: 16.5px; }
  .nc-wrap { padding: 0 18px; }
  .nc-head__bar { min-height: 68px; padding: 12px 0; }
  .nc-brand { margin-right: auto; }
  .nc-brand img { max-height: 38px; }
  .nc-grid, .nc-grid--two, .nc-related .nc-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .nc-list .nc-card { grid-template-columns: minmax(0, 1fr); }
  .nc-list .nc-card__thumb { aspect-ratio: 16 / 10; }
  .nc-foot__top { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .nc-foot__bottom { flex-direction: column; align-items: flex-start; }
  .nc-section__head { flex-direction: column; align-items: flex-start; }
  .nc-dir { gap: 40px; }
  .nc-dir__children { grid-template-columns: minmax(0, 1fr); padding-left: 16px; }
  .nc-article__figure { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
  .nc-article__figure img { height: 74px; }
  .nc-newslist .item { flex-direction: column; }
  .nc-newslist .thumb { flex: 0 0 auto; }
  .nc-newslist .thumb img { height: 190px; }
  .nc-float { display: none; }
  .nc-top { right: 14px; bottom: 16px; }
}

@media print {
  .nc-notice, .nc-catbar, .nc-drawer, .nc-veil, .nc-top, .nc-float,
  .nc-foot, .nc-side, .nc-head__tools, .nc-article__share { display: none !important; }
  body.nc-body { background: #fff; font-size: 12pt; }
  .nc-prose { font-size: 12pt; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
