/* ==========================================================================
   page.css
   役割: 下層ページ共通のスタイル
   読み込み: トップ以外のすべてのサブページで common.css の後に読み込む
   ========================================================================== */


/* --------------------------------------------------------------------------
   サブページ共通レイアウト
   access・research・member など各サブページで使うスタイル。

   HTML 構造:
     <div class="page-content">
       <div class="page-panel panel">
         <div class="panel-corners">...</div>
         <div class="page-inner">
           <h1 class="page-title">&lt;access&gt;</h1>
           <div class="page-section">
             <h2>// 見出し</h2>
             <p>テキスト</p>
           </div>
         </div>
         <div class="panel-corners">...</div>
       </div>
     </div>
   -------------------------------------------------------------------------- */

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.page-panel {
  display: flex;
  flex-direction: column;
}

.page-inner {
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* ページタイトル（section-tag と同じスタイル） */
.page-title {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 300;
  line-height: 1;
  color: var(--color-text);
  background-color: var(--color-accent);
  padding: 2px 6px;
}

/* セクション内の小見出し */
.page-section h2 {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-border);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.05em;
}

/* セクション内のテキスト（クラス付き p は対象外。メンバーカード等は個別指定） */
.page-section p:not([class]) {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Google マップ（access ページ）
   -------------------------------------------------------------------------- */

.access-map iframe {
  width: 100%;
  height: 400px;
  border: var(--border);
  display: block;
  margin-top: var(--space-xs);
}

/* Access page: 交通案内の小見出し・リンク一覧 */
#access .page-section h3 {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  color: #1a1a1a;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
  line-height: 1.5;
}

#access .page-section h3:first-of-type {
  margin-top: var(--space-sm);
}

#access .access-link-list {
  margin: 0;
  padding-left: 1.25em;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: #1a1a1a;
  line-height: 1.8;
}

#access .access-link-list a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 明るいパネル内の page-body: 旧 .page-section p の薄色（#eee）を上書き */
.panel--light .page-body .page-section p:not([class]) {
  color: #1a1a1a;
}

/*
 * 研究ページ本文（api-research の contentHtml）
 * - 旧 main_research / data.txt は <section class="section"> 内に figure / p が並ぶ。
 * - 子に margin だけを足すと隣接マージン相殺で「詰まった」ように見えることがあるため、
 *   section.section ラッパーは flex + gap で縦リズムを固定する。
 * - .figBorder / .captionTitle は旧サイト由来（old-web style.css と同様にキャプション中央）。
 */
#research #research-content-html > section.section,
#research #research-content-html > .section {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);

  @media (max-width: 840px) {
    gap: var(--space-lg);
  }
}

#research #research-content-html > section.section > *,
#research #research-content-html > .section > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* section ラッパー無しで直下にブロックだけ並ぶ場合 */
#research #research-content-html > *:not(section.section):not(.section) {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);

  @media (max-width: 840px) {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
  }
}

#research #research-content-html > *:not(section.section):not(.section):first-child {
  margin-top: 0 !important;
}

#research #research-content-html > *:not(section.section):not(.section):last-child {
  margin-bottom: 0 !important;
}

/* 旧サイト: #content .section figure .captionTitle { text-align: center; } */
#research #research-content-html figure.figBorder figcaption.captionTitle,
#research #research-content-html .figBorder figcaption.captionTitle {
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.6;
  margin-top: var(--space-xs);
}

/* 旧サイト: .figBorder の区切り線（縦方向は section の gap が主担当） */
#research #research-content-html .figBorder {
  border-bottom: 1px dotted #aaa;
  padding-bottom: var(--space-md);
}

/* アクセスページ: 電話・FAX 表 */
#access .access-phone-table {
  width: 100%;
  overflow-x: auto;
  margin-top: var(--space-sm);
}

#access .access-phone-table table {
  width: 100%;
  min-width: 320px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: #1a1a1a;
  border: 1px solid var(--color-border);
}

#access .access-phone-table th,
#access .access-phone-table td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
  line-height: 1.6;
  color: #1a1a1a;
}

#access .access-phone-table thead th {
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.04);
}

#access .access-phone-table tbody th {
  font-weight: 500;
  background-color: rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   Member page styles (template1-web inspired)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. レイアウト
   -------------------------------------------------------------------------- */
.page-layout {
  display: flex;
  flex: 1;
  padding: 26px var(--space-lg);

  @media (max-width: 840px) {
    padding: 26px var(--space-md);
  }
}

.page-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  border: var(--border);
  color: #000;
  background-color: var(--color-bg3);
}

/* --- panel--light: 明るい背景バリアント --- */
.panel--light {
  background-color: var(--color-bg2);
  overflow: visible;
  padding: 0;

  @media (max-width: 840px) {
    background-color: #c4c4c4;
  }
}

.panel--light .page-content {
  gap: 0;
}

.panel--light .corner-mark::before,
.panel--light .corner-mark::after {
  background-color: var(--color-bg);
}

/* --------------------------------------------------------------------------
   2. パンくずリスト
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-accent);
  height: 28px;
  padding: 0 var(--space-lg);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #fff;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  line-height: 1;

  @media (max-width: 840px) {
    height: auto;
    padding: var(--space-xs);
  }
}

.breadcrumb a {
  color: #fff;
  flex-shrink: 0;
}

.breadcrumb > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.breadcrumb a + a::before,
.breadcrumb a + span::before {
  content: ">";
  opacity: 0.6;
  margin-right: 10px;
}

/* --------------------------------------------------------------------------
   3. ページタイトル（h1）
   -------------------------------------------------------------------------- */
.page-h1 {
  display: flex;
  align-items: center;
  height: 143px;
  padding: 0 40px;

  @media (max-width: 840px) {
    height: auto;
    padding: 32px 20px;
  }
}

.page-h1 h1 {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: #000;
  line-height: 1.3;
  letter-spacing: 0.02em;

  @media (max-width: 840px) {
    font-size: var(--text-lg);
  }
}

/* --------------------------------------------------------------------------
   4. セクション
   -------------------------------------------------------------------------- */
.page-section {
  border-top: var(--border);
  padding: 40px;

  @media (max-width: 840px) {
    padding: 24px 20px;
    scroll-margin-top: 72px;
  }
}

.page-section > * {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);

  @media (max-width: 840px) {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
  }
}

.page-section > *:first-child {
  margin-top: 0 !important;
}

.page-section > *:last-child {
  margin-bottom: 0 !important;
}

.page-section--center {
  text-align: center;
}

.page-section > a {
  display: block;
}

/* --------------------------------------------------------------------------
   5. page-body: 素タグスタイル
   -------------------------------------------------------------------------- */
.page-body {
  display: flex;
  flex-direction: column;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

.page-body .page-section--center h2 {
  text-align: left;
}

/* --- a --- */
.page-body a:not([class]) {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-body a:not([class]):visited {
  color: #8a38f5;
}

@media (hover: hover) {
  .page-body a:not([class]):hover {
    color: #626262;
  }
}

/* template1-web と同じ見出しスタイル */
.page-body h2:not([class]) {
  margin-top: 48px;
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: #000;
  line-height: 1;
  letter-spacing: 0.02em;
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);

  @media (max-width: 840px) {
    font-size: var(--text-lg);
  }
}

.page-body h2:not([class]) .pub-h2-count {
	font-size: 0.85em;
	font-weight: 400;
	color: var(--color-border);
}

/* --- h3 --- (template1-web/common/css/page.css と同じ) */

.page-body h3:not([class]) {
	margin-top: 40px;
	display: flex;
	align-items: center;
	gap: var(--space-xs);
	font-family: var(--font-sans);
	font-size: var(--text-xl);
	font-weight: 400;
	color: #000;
	line-height: 1;
	letter-spacing: 0.02em;

	@media (max-width: 840px) {
		font-size: var(--text-base);
	}
}

.page-body h3:not([class])::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #fff;
	border: var(--border);
	flex-shrink: 0;
}

/* 卒業生など: rank ブロック先頭の h3 はラッパー間隔で足りるため上マージンを打ち消す */
.page-body .member-alumni-rank > h3:not([class]):first-child {
	margin-top: 0;
}

/* --- ul --- (template1-web/research 下層と同じ) */

.page-body ul:not([class]) {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.page-body ul:not([class]) li {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.page-body ul:not([class]) li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #fff;
  border: var(--border);
  flex-shrink: 0;
}

.page-body ul:not([class]) li a {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.02em;

  @media (max-width: 840px) {
    font-size: var(--text-sm);
  }
}

/* --- ol --- (template1-web/research の論文リスト) */

.page-body ol:not([class]) {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg) var(--space-xs);
  counter-reset: ol-counter;

  @media (max-width: 840px) {
    row-gap: var(--space-md);
  }
}

.page-body ol:not([class]) > li {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  gap: 0 var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: #000;
  line-height: 1.8;
  counter-increment: ol-counter;
}

.page-body ol:not([class]) > li::before {
  content: "[" counter(ol-counter) "]";
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--text-sm);
  color: #000;

  @media (max-width: 840px) {
    margin-top: 2px;
    font-size: var(--text-xs);
  }
}

.page-body ol:not([class]) > li > * {
  grid-column: 2;
}

.page-body ol:not([class]) ul:not([class]) {
  padding-top: 8px;
  margin-left: -5px;
}

/* --- article-table（template1-web/research 受賞テーブル等） --- */

.article-table-wrap {
  overflow-x: auto;
}

.article-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #c4c4c4;
  background-color: #fff;
  letter-spacing: 0.02em;
}

.article-table tbody tr {
  height: 72px;

  @media (max-width: 840px) {
    height: 56px;
  }
}

.article-table tbody th {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: #000;
  text-align: left;
  padding: var(--space-sm);
  border-bottom: 1px solid #c4c4c4;
  border-right: 1px solid #c4c4c4;
  white-space: nowrap;
  width: 85px;
  vertical-align: middle;
  line-height: 1.6;

  @media (max-width: 840px) {
    font-size: var(--text-sm);
    padding: var(--space-xs);
    width: 80px;
  }
}

.article-table tbody td {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  color: #000;
  text-align: left;
  padding: 12px 24px;
  border-bottom: 1px solid #c4c4c4;
  vertical-align: middle;

  @media (max-width: 840px) {
    font-size: var(--text-sm);
    padding: 16px 10px;
  }
}

.article-table--head {
  table-layout: auto;
  min-width: max-content;
}

.article-table--head thead th {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-accent);
  text-align: center;
  padding: 6px 12px;
  white-space: nowrap;
  line-height: 1.6;
  border-bottom: 1px solid #c4c4c4;
  vertical-align: middle;
}

.article-table--head thead th:first-child {
  border-bottom: none;
  border-right: 1px solid #c4c4c4;
  width: 200px;

  @media (max-width: 840px) {
    width: 100px;
  }
}

.article-table--head tbody tr:first-child th,
.article-table--head tbody tr:first-child td {
  border-top: 1px solid #c4c4c4;
}

.article-table--head tbody td {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--text-sm);
  text-align: center;
  padding: 0 24px;
  white-space: nowrap;
  line-height: 1.6;

  @media (max-width: 840px) {
    height: auto;
    padding: 16px 26px;
  }
}

/* --- .en: 英語行（template1-web/research） --- */

.page-body .en {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: var(--text-sm);
  text-align: left;

  @media (max-width: 840px) {
    font-size: var(--text-xs);
  }
}

/* 発表論文: internal 表示（旧サイト相当の色） */
.page-body .pub-internal {
  color: var(--color-accent);
  font-weight: 700;
}

.pub-load-error {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: #b91c1c;
}

/* --------------------------------------------------------------------------
   7. ページ内サブナビ
   -------------------------------------------------------------------------- */
#page-subnav {
  width: 196px;
  flex-shrink: 0;
  align-self: flex-start;
  position: sticky;
  top: calc(var(--gap) + 1px + var(--space-lg) + 171px + 3px);
  margin-top: 172px;

  @media (max-width: 840px) {
    position: fixed;
    left: 0;
    top: auto;
    bottom: 80px;
    width: 240px;
    height: auto;
    z-index: 197;
    transform: translateX(-100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    margin-top: 0;
  }
}

#page-subnav.is-open {
  @media (max-width: 840px) {
    transform: translateX(0);
  }
}

.subnav-inner {
  background-color: #e2e2e2;
  border-top: var(--border);
  border-bottom: var(--border);
  border-left: var(--border);
  height: calc(100vh - var(--gap) - 1px - var(--space-lg) - 171px - 3px - var(--space-lg));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  padding: var(--space-md) var(--space-xs);

  @media (max-width: 840px) {
    height: auto;
    max-height: 480px;
    overflow-y: auto;
    border: var(--border);
  }
}

#page-subnav nav ul {
  display: flex;
  flex-direction: column;
}

#page-subnav nav li a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: var(--space-xs) var(--space-sm);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-bg);
  line-height: 1.3;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

#page-subnav nav li a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #fff;
  border: var(--border);
  flex-shrink: 0;
  margin-top: 5px;
  transition: background-color 0.15s ease;
}

#page-subnav .subnav-pages li a.current,
#page-subnav .subnav-pages li a.relation {
  color: var(--color-accent);
}

#page-subnav .subnav-pages li a.current::before,
#page-subnav .subnav-pages li a.relation::before {
  background-color: var(--color-accent);
}

@media (hover: hover) {
  #page-subnav nav li a:hover {
    color: var(--color-accent);
  }

  #page-subnav nav li a:hover::before {
    background-color: var(--color-accent);
  }
}

#page-subnav nav hr.subnav-hr {
  border: none;
  border-top: 1px solid var(--color-bg3);
  margin: var(--space-sm) 0;
}

/* --- SP: トリガータブ --- */
#subnav-tab {
  display: none;

  @media (max-width: 840px) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    position: absolute;
    right: 0;
    bottom: 0;
    transform: translateX(100%);
    background-color: var(--color-accent);
    border: var(--border);
    border-left: none;
    padding: 14px var(--space-xs);
    z-index: 198;
    cursor: pointer;
    color: #fff;
    transition: opacity 0.3s ease;
  }
}

#subnav-tab .nav-icon {
  @media (max-width: 840px) {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
}

#subnav-tab span {
  @media (max-width: 840px) {
    writing-mode: vertical-rl;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.02em;
  }
}

/* --- SP: オーバーレイ --- */
#subnav-overlay {
  display: none;

  @media (max-width: 840px) {
    display: block;
    position: fixed;
    inset: 0;
    top: 72px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 196;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
}

#subnav-overlay.is-open {
  @media (max-width: 840px) {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ==========================================================================
   8. メンバーカード
   ========================================================================== */
.member-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding: 0 10px;

  @media (max-width: 1200px) {
    grid-template-columns: 1fr;
  }

  @media (max-width: 840px) {
    gap: var(--space-xs);
    padding: 0;
  }
}

.member-card {
  width: auto;
  background-color: #fff;
  border: var(--border);
}

.member-card-inner {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.member-card-inner[href] {
  cursor: pointer;
}

.member-card-inner:not([href]) {
  cursor: default;
}

/* リンク無しでもヘッダー右列を同じ幅・同じ見た目で確保（非対称・欠けを防ぐ） */
.member-card-inner:not([href]) .member-card-link {
  pointer-events: none;
}

@media (hover: hover) {
  .member-card-inner[href]:hover .member-card-link {
    background-color: var(--color-accent);
    color: #fff;
  }
}

.member-card-header {
  display: grid;
  grid-template-columns: 94px 1fr 94px;
  align-items: stretch;
  min-height: 32px;
  border-bottom: var(--border);

  @media (max-width: 840px) {
    grid-template-columns: 80px 1fr 80px;
    min-height: 24px;
  }
}

.member-card-category {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 94px;
  max-width: 100%;
  border-right: var(--border);
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 11px;
  color: #000;
  letter-spacing: 0.02em;
  white-space: nowrap;

  @media (max-width: 840px) {
    width: 80px;
    font-size: 10px;
  }
}

.member-card-link {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 94px;
  max-width: 100%;
  min-width: 0;
  background-color: var(--color-bg2);
  border-left: var(--border);
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 11px;
  text-decoration: underline;
  letter-spacing: 0.02em;
  color: #000;
  padding: 0 var(--space-xs);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;

  @media (max-width: 840px) {
    width: 80px;
    font-size: 10px;
  }
}

.member-card-body {
  display: flex;
  align-items: center;
  padding: 16px 16px 18px;

  @media (max-width: 840px) {
    padding: 8px 8px 10px;
  }
}

.member-card-photo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  aspect-ratio: 1;
  border: var(--border);
  overflow: hidden;
}

.member-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-card-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  align-self: stretch;
  line-height: 1.2;

  @media (max-width: 840px) {
    gap: 6px;
  }
}

.member-card-role {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #000;
  letter-spacing: 0.02em;
}

.member-card-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.member-card-name {
  font-family: var(--font-sans);
  font-size: 18px;
  color: #000;
  letter-spacing: 0.02em;
}

/* template1 の .member-card-name-en と同じ */
.member-card-name-en {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 12px;
  color: var(--color-border);
  letter-spacing: 0.02em;
  text-transform: lowercase;

  @media (max-width: 840px) {
    font-size: 10px;
  }
}

/* members ページで氏名が薄く見えないように明示 */
#members .member-card-name,
#members .member-card-role {
  color: #000;
}

/* template1 ニュース一覧グリッド（template1-web/common/css/page.css と同等） */
.page-section-news {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding-right: 20px;

  @media (max-width: 1140px) {
    grid-template-columns: repeat(2, 1fr);
    padding-right: 0;
  }
  @media (max-width: 960px) {
    grid-template-columns: 1fr;
  }
}

.news-grid .news-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 2px solid #b8b8b8;
  background-color: #fff;
  color: #111;
  text-decoration: none;
}

.news-grid .news-item[href] {
  border-color: var(--color-accent);
}

.news-grid .news-item[href]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.news-grid .news-item .news-date {
  color: #000;
  background-color: var(--color-bg2);
  font-size: 11px;
  padding: 10px var(--space-sm);
  line-height: 1;

  @media (max-width: 840px) {
    font-size: 10px;
    padding: 7px var(--space-sm);
  }
}

.news-grid .news-item .news-thumb {
  padding: 0;
}

.news-grid .news-thumb-inner {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: #fff;
}

.news-grid .news-thumb-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.news-grid .news-item .news-title {
  flex: 1;
  color: #000;
  line-height: 1.6;
  padding: var(--space-md) var(--space-sm);
}

.news-grid .news-item[href] .news-title {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

@media (hover: hover) {
  .news-grid .news-item[href]:hover {
    background-color: #f1f1ff;
  }
}

