.jmt-catalog {
  --jmt-catalog-ink: #151a23;
  --jmt-catalog-paper: #f5f7f8;
  --jmt-catalog-blue: #244b73;
  --jmt-catalog-signal: #e54f32;
  --jmt-catalog-line: #d8dde2;
  width: min(1440px, calc(100% + 28px));
  max-width: none !important;
  position: relative;
  left: -14px;
  margin: 32px 0 48px -16px !important;
  color: var(--jmt-catalog-ink);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  line-height: 1.65;
}
.jmt-catalog *, .jmt-catalog *::before, .jmt-catalog *::after { box-sizing: border-box; }
.jmt-catalog a { text-decoration: none; }
.jmt-catalog-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); align-items: end; gap: clamp(44px, 8vw, 120px); padding: clamp(52px, 8vw, 112px); border-radius: 28px 28px 0 0; background: linear-gradient(135deg, #eef3f6, #f8f9f9 58%, #e8edf1); }
.jmt-catalog-head p { margin: 0 0 18px; color: var(--jmt-catalog-signal); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.jmt-catalog-head h1 { margin: 0; font-family: "Songti SC", "Noto Serif CJK SC", serif; font-size: clamp(54px, 7vw, 102px); font-weight: 600; letter-spacing: -.06em; line-height: 1; }
.jmt-catalog-head h1 span { color: var(--jmt-catalog-blue); }
.jmt-catalog-head small { max-width: 650px; display: block; margin-top: 28px; color: #66717c; font-size: 14px; }
.jmt-catalog-head dl { margin: 0; border-top: 1px solid var(--jmt-catalog-line); }
.jmt-catalog-head dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--jmt-catalog-line); }
.jmt-catalog-head dt { color: #78828d; font-size: 12px; }
.jmt-catalog-head dd { margin: 0; color: var(--jmt-catalog-blue); font-family: ui-monospace, monospace; font-weight: 800; }
.jmt-catalog-links { display: flex; gap: 10px; padding: 18px clamp(24px, 6vw, 86px); border: 1px solid var(--jmt-catalog-line); background: #fff; font-size: 12px; }
.jmt-catalog-links a { color: #68727d; }
.jmt-catalog-links a.is-current { color: var(--jmt-catalog-ink); font-weight: 800; }
.jmt-catalog-links span { color: var(--jmt-catalog-ink); font-weight: 800; }
.jmt-catalog-links a:not(:last-child)::after { content: " /"; margin-left: 10px; color: #b4bac0; }
.jmt-series-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid var(--jmt-catalog-line); background: var(--jmt-catalog-paper); }
.jmt-series-grid article { min-width: 0; border-right: 1px solid var(--jmt-catalog-line); border-bottom: 1px solid var(--jmt-catalog-line); }
.jmt-series-grid article > a { min-height: 380px; display: flex; flex-direction: column; padding: clamp(34px, 5vw, 70px); background: #fff; color: var(--jmt-catalog-ink); }
.jmt-series-grid article > a:hover { background: #f8fafb; }
.jmt-series-grid article > a > span { color: var(--jmt-brand); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.jmt-series-grid article[data-preset="daily"] > a > span { color: #85642f; }
.jmt-series-grid h2 { max-width: 11em; margin: 66px 0 16px; font-size: clamp(34px, 4vw, 56px); line-height: 1.15; letter-spacing: -.035em; }
.jmt-series-grid p { max-width: 34em; margin: 0; color: #66717c; }
.jmt-series-grid footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 40px; border-top: 1px solid var(--jmt-catalog-line); color: #68727d; }
.jmt-series-grid footer strong { color: var(--jmt-brand-dark); }
.jmt-course-rows { display: grid; gap: 10px; padding: 12px; background: var(--jmt-catalog-paper); }
.jmt-course-rows article { min-width: 0; }
.jmt-course-row { min-width: 0; position: relative; display: grid; grid-template-columns: minmax(260px, 1fr) minmax(420px, .9fr) 132px; align-items: center; gap: clamp(22px, 3vw, 44px); min-height: 112px; padding: 20px 22px 20px 26px; overflow: hidden; border: 1px solid var(--jmt-catalog-line); border-radius: 10px; background: #fff; color: var(--jmt-catalog-ink); box-shadow: 0 3px 12px rgba(38, 45, 54, .04); }
.jmt-course-row::before { content: ""; width: 4px; position: absolute; inset: 0 auto 0 0; background: var(--jmt-catalog-signal); }
.jmt-course-row:hover { border-color: var(--jmt-catalog-signal); background: #fbfdfb; box-shadow: 0 8px 24px rgba(38, 45, 54, .07); }
.jmt-course-row-identity { min-width: 0; }
.jmt-course-row-identity > span { color: var(--jmt-catalog-signal); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.jmt-course-row h2 { overflow: hidden; margin: 3px 0 2px; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.jmt-course-row p { overflow: hidden; margin: 0; color: #747b84; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.jmt-course-row-details { min-width: 0; display: grid; grid-template-columns: minmax(150px, 1fr) 90px minmax(130px, 1fr); align-items: center; gap: 22px; }
.jmt-course-row-details > span { min-width: 0; display: grid; gap: 3px; }
.jmt-course-row-details small { color: #8a9199; font-size: 10px; line-height: 1.2; }
.jmt-course-row-details strong { overflow: hidden; color: #4c535b; font-size: 12px; font-weight: 700; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.jmt-course-row-action { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: var(--jmt-catalog-signal); color: #fff; font-size: 12px; white-space: nowrap; }
.jmt-course-row-action span { font-size: 16px; line-height: 1; transition: transform .16s ease; }
.jmt-course-row:hover .jmt-course-row-action span { transform: translateX(2px); }
.jmt-catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-left: 1px solid var(--jmt-catalog-line); background: var(--jmt-catalog-paper); }
.jmt-catalog-grid article { min-width: 0; border-right: 1px solid var(--jmt-catalog-line); border-bottom: 1px solid var(--jmt-catalog-line); }
.jmt-catalog-grid article > a { min-height: 360px; display: flex; flex-direction: column; padding: clamp(28px, 4vw, 54px); overflow: hidden; background: #fff; color: var(--jmt-catalog-ink); transition: background .18s ease; }
.jmt-catalog-grid article > a:hover { background: #f8fafb; }
.jmt-catalog-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #8a949f; font-family: ui-monospace, monospace; font-size: 11px; }
.jmt-catalog-meta span { color: var(--jmt-catalog-signal); font-weight: 800; letter-spacing: .1em; }
.jmt-catalog-grid h2 { margin: 54px 0 12px; font-family: "Songti SC", "Noto Serif CJK SC", serif; font-size: clamp(30px, 3vw, 46px); line-height: 1.2; letter-spacing: -.035em; }
.jmt-catalog-grid p { min-height: 3.3em; margin: 0; color: #66717c; }
.jmt-catalog-grid ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.jmt-catalog-grid li { padding: 4px 10px; border: 1px solid #cfd6dc; border-radius: 999px; color: var(--jmt-catalog-blue); font-size: 11px; font-weight: 700; }
.jmt-catalog-grid footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: auto; padding-top: 28px; }
.jmt-catalog-grid footer span { color: #77818c; font-size: 12px; }
.jmt-catalog-grid footer b { color: var(--jmt-catalog-signal); }
.jmt-catalog-empty { padding: 100px 30px; border: 1px solid var(--jmt-catalog-line); border-top: 0; background: #fff; text-align: center; }
.jmt-catalog-empty strong { font-family: "Songti SC", "Noto Serif CJK SC", serif; font-size: 36px; }
.jmt-catalog-empty p { color: #727d87; }
.jmt-catalog-empty a { color: var(--jmt-catalog-blue); font-weight: 800; }
body:has(.jmt-catalog) .wp-block-post-title { display: none; }
/* The block theme reserves space for its (hidden) page-title wrapper. Collapse
   only that template spacing on the catalog page; the catalog keeps its own
   intentional top margin and the lesson/meeting layouts remain untouched. */
body:has(.jmt-catalog) main#wp--skip-link--target { margin-block-start: 0 !important; }
body:has(.jmt-catalog) main#wp--skip-link--target > .wp-block-group { padding-block-start: 0 !important; }
body:has(.jmt-catalog) .wp-block-post-content { margin-block-start: 0 !important; }
@media (max-width: 800px) {
  .jmt-catalog-head { grid-template-columns: 1fr; }
  .jmt-catalog-grid, .jmt-series-grid { grid-template-columns: 1fr; }
  .jmt-course-row { grid-template-columns: minmax(0, 1fr) 124px; gap: 16px 22px; }
  .jmt-course-row-details { grid-column: 1; grid-row: 2; }
  .jmt-course-row-action { grid-column: 2; grid-row: 1 / 3; }
}
@media (max-width: 560px) {
  .jmt-catalog { width: calc(100vw - 32px) !important; left: 0; margin: 16px 0 32px !important; }
  .jmt-catalog-head { gap: 34px; padding: 44px 20px; border-radius: 18px 18px 0 0; }
  .jmt-catalog-head h1 { font-size: 52px; }
  .jmt-catalog-links { overflow-x: auto; padding: 15px 18px; white-space: nowrap; scrollbar-width: thin; }
  .jmt-series-grid article > a { min-height: 300px; padding: 30px 22px; }
  .jmt-series-grid h2 { margin-top: 44px; font-size: 34px; }
  .jmt-course-rows { gap: 8px; padding: 8px; }
  .jmt-course-row { grid-template-columns: minmax(0, 1fr); gap: 16px; min-height: 0; padding: 20px; }
  .jmt-course-row h2 { overflow: visible; font-size: 19px; white-space: normal; }
  .jmt-course-row p { white-space: normal; }
  .jmt-course-row-details { grid-column: 1; grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; padding-top: 14px; border-top: 1px solid var(--jmt-catalog-line); }
  .jmt-course-row-details .is-series { grid-column: 1 / -1; }
  .jmt-course-row-details strong { overflow: visible; white-space: normal; }
  .jmt-course-row-action { grid-column: 1; grid-row: auto; width: 100%; min-height: 44px; }
  .jmt-catalog-grid article > a { min-height: 0; padding: 28px 20px; }
  .jmt-catalog-grid h2 { margin-top: 34px; font-size: 34px; }
  .jmt-catalog-grid p { min-height: 0; }
  .jmt-catalog-grid footer { align-items: stretch; flex-direction: column; }
  .jmt-catalog-grid footer b { min-height: 46px; display: grid; place-content: center; border-radius: 999px; background: var(--jmt-catalog-signal); color: #fff; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .jmt-catalog *, .jmt-catalog *::before, .jmt-catalog *::after { transition-duration: .001ms !important; }
}
