/* KIHPS home news options: 1 Featured · 2 Calendar · 3 Magazine. One shows via :root[data-news]. */
.nw { display: none; }
:root[data-news="1"] .nw-1, :root[data-news="2"] .nw-2, :root[data-news="3"] .nw-3 { display: block; }
.hero-switching .nw { animation: heroIn .7s var(--ease); }
.nv-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head .side.nv-side { justify-items: end; align-self: end; padding-bottom: 10px; }

/* tear-off calendar date */
.cal { flex: none; display: grid; justify-items: center; width: 66px; border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 10px 20px -14px rgba(3,26,56,.45); text-align: center; transition: transform .55s cubic-bezier(.34,1.5,.5,1); }
.cal-m { width: 100%; padding: 5px 0; background: var(--red); color: #fff; font: 700 calc(11px * var(--ts, 1))/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.cal b { font: 700 calc(28px * var(--hs, 1))/1 var(--serif); color: var(--ink); padding-top: 6px; }
.cal small, .nf-body .cal small { display: block; margin: 0; max-height: none; opacity: 1; font: 700 calc(12px * var(--ts, 1))/1 var(--sans); letter-spacing: .04em; color: var(--text); padding: 3px 0 8px; }

/* ---------- 1 · Featured + notice board */
.nf { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.nf-main { position: relative; display: block; min-height: 460px; border-radius: 28px; overflow: hidden; color: #fff; isolation: isolate; background: var(--abyss);
  transition: transform .7s cubic-bezier(.34,1.35,.5,1), box-shadow .6s; }
.nf-main:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.nf-img { position: absolute; inset: 0; z-index: -2; }
.nf-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.nf-main:hover .nf-img img { transform: scale(1.06); }
.nf-main::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2,16,36,.1) 30%, rgba(2,16,36,.92)); }
.nf-badge { position: absolute; left: 22px; top: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgba(3,26,56,.65);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 600 calc(12px * var(--ts, 1))/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.nf-badge i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d5a; animation: livepip 1.6s infinite; }
.nf-body { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 18px; align-items: flex-end; padding: 28px; }
.nf-body > span:last-child { min-width: 0; }
.nf-body b { display: block; margin: 10px 0 8px; font: 700 calc(clamp(24px, 2.4vw, 34px) * var(--hs, 1))/1.15 var(--serif); }
.nf-body small { display: block; margin-bottom: 14px; font-size: calc(15px * var(--ts, 1)); line-height: 1.55; color: #d4e1ef; max-width: 36em; }
.nf-body .link { color: #fff; border-color: rgba(255,255,255,.35); }
.nf-main:hover .cal { transform: rotate(-6deg) scale(1.05); }
.nb-board { display: flex; flex-direction: column; padding: 10px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.nb-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px dashed var(--line); }
.nb-head svg { width: 38px; height: 38px; padding: 8px; border-radius: 12px; background: var(--red); color: #fff; }
.nb-head b { font: 700 calc(21px * var(--hs, 1))/1 var(--serif); color: var(--ink); }
.nb-row { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 18px; transition: background .35s, transform .55s cubic-bezier(.34,1.4,.5,1); }
.nb-row:hover { background: var(--frost); transform: translateX(6px); }
.nb-row:hover .cal { transform: rotate(-6deg); }
.nb-t { min-width: 0; flex: 1; }
.nb-t b { display: block; margin: 8px 0 4px; font: 700 calc(19px * var(--hs, 1))/1.25 var(--serif); color: var(--ink); }
.nb-t small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: calc(13.5px * var(--ts, 1)); line-height: 1.5; color: var(--muted); }
.nb-row > svg { flex: none; width: 18px; height: 18px; color: var(--navy); transition: transform .4s var(--ease); }
.nb-row:hover > svg { transform: translateX(4px); }
.nb-all { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: 16px; border-top: 1px dashed var(--line); font-size: calc(14px * var(--ts, 1)); font-weight: 600; color: var(--navy); }
.nb-all svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.nb-all:hover svg { transform: translateX(4px); }

/* ---------- 2 · Calendar rows */
.cr-list { display: grid; gap: 12px; }
.cr { position: relative; display: grid; grid-template-columns: 66px minmax(0, 1fr) auto 46px; gap: 22px; align-items: center; padding: 18px 22px; border-radius: 22px;
  background: var(--card); border: 1px solid var(--line-2); overflow: hidden; transition: border-color .4s, box-shadow .5s, transform .6s cubic-bezier(.34,1.4,.5,1); }
.cr:hover { border-color: var(--sky-200); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cr:hover .cal { transform: rotate(-6deg) scale(1.05); }
.cr-t b { display: block; margin: 8px 0 4px; font: 700 calc(22px * var(--hs, 1))/1.2 var(--serif); color: var(--ink); }
.cr-t small { display: block; font-size: calc(14px * var(--ts, 1)); line-height: 1.5; color: var(--muted); }
.cr-img { width: 0; height: 96px; border-radius: 16px; overflow: hidden; opacity: 0; transition: width .6s var(--ease), opacity .4s; }
.cr-img img { width: 170px; height: 96px; object-fit: cover; }
.cr:hover .cr-img { width: 170px; opacity: 1; }
.cr-go { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--navy);
  transition: background .35s, color .35s, border-color .35s, transform .5s var(--ease); }
.cr-go svg { width: 18px; height: 18px; }
.cr:hover .cr-go { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(-45deg); }

/* ---------- 3 · Magazine */
.mg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mg { position: relative; display: block; height: 440px; border-radius: 26px; overflow: hidden; color: #fff; background: var(--abyss); isolation: isolate;
  transition: transform .7s cubic-bezier(.34,1.35,.5,1), box-shadow .6s; }
.mg > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.mg::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2,16,36,.15) 20%, rgba(2,16,36,.9)); transition: background .6s; }
.mg:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.mg:hover > img { transform: scale(1.08); }
.mg:hover::after { background: linear-gradient(180deg, rgba(7,72,149,.4), rgba(2,16,36,.94)); }
.mg-top { position: absolute; left: 18px; right: 18px; top: 18px; display: flex; justify-content: space-between; align-items: flex-start; }
.mg-top .tag { background: rgba(255,255,255,.9); }
.mg:hover .cal { transform: rotate(-6deg) scale(1.05); }
.mg-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.mg-body b { display: block; font: 700 calc(24px * var(--hs, 1))/1.2 var(--serif); }
.mg-body small { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: calc(14px * var(--ts, 1)); line-height: 1.55; color: #d4e1ef; transition: max-height .55s var(--ease), opacity .4s, margin .5s; }
.mg:hover .mg-body small { max-height: 90px; opacity: 1; margin-top: 8px; }
.mg-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: calc(14px * var(--ts, 1)); font-weight: 600; color: var(--sky-200); }
.mg-go svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.mg:hover .mg-go svg { transform: translateX(5px); }

@media (max-width: 1020px) {
  .section-head .side.nv-side { justify-items: start; }
  .nf { grid-template-columns: 1fr; }
  .nf-main { min-height: 400px; }
  .cr { grid-template-columns: 66px minmax(0, 1fr) 46px; }
  .cr-img { display: none; }
  .mg-grid { grid-template-columns: 1fr 1fr; }
  .mg:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nf-main { min-height: 380px; }
  .nf-body { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
  .nb-row { padding: 14px 8px; gap: 12px; }
  .nb-row > svg { display: none; }
  .cal { width: 58px; }
  .cal b { font-size: calc(24px * var(--ts, 1)); }
  .cr { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .cr-go { display: none; }
  .cr-t b { font-size: calc(19px * var(--ts, 1)); }
  .mg-grid { grid-template-columns: 1fr; }
  .mg { height: 360px; }
  .mg-body small { max-height: 90px; opacity: 1; margin-top: 8px; }
}
.cal b.cal-soon { font-size: calc(19px * var(--ts, 1)); padding-top: 9px; letter-spacing: -.01em; }
@media (max-width: 720px) { .nf-body .cal { display: none; } }
