/*
Theme Name: CSIT Modern
Theme URI: https://www.csit.ist.hokudai.ac.jp/
Author: CSIT web redesign
Description: 北海道大学 情報理工学コース向けオリジナルテーマ。学年・ターム別カリキュラム、研究室・教員一覧、進路・就職、ニュースを備えています。
Version: 1.1.6
Requires at least: 5.7
Requires PHP: 7.4
Text Domain: csit-modern
License: GNU General Public License v2 or later
*/
/* The screen-specific styles are enqueued from assets/css. */
.admin-bar .skip-link:focus { top: 38px; }
.wp-block-image img,.entry-content img { max-width:100%; height:auto; }
.entry-content { overflow-wrap:anywhere; }
.csit-news-empty { padding: 18px 20px; color:#65746d; font-size:14px; }
.csit-post-content { max-width: 880px; margin:35px auto 65px; background:#fff; border:1px solid #e3eae6; border-radius:12px; padding:clamp(20px,4vw,42px); }
.csit-post-content h1{line-height:1.4;}
.csit-post-content img{max-width:100%;height:auto;}
.csit-post-date {color:#65746d;font-size:14px;}
@media(max-width:600px){.csit-post-content{margin:20px 0 50px;}}

/* Content imported into the fixed page editor retains the same layout classes. */
.csit-page-editor-content { min-width: 0; }
.csit-page-editor-content > :first-child { margin-top: 0; }
.hero-lead p { margin: 0; }
/* A visible editor-friendly content area, without changing card backgrounds. */
.csit-page-editor-content .wp-block-html { margin: 0; }


/* ======================================================================
   CSIT Modern v1.1.6 — typography/readability update
   Keep all fixed-page HTML, post data, card layout and colors unchanged.
   These overrides follow the page-specific CSS (enqueue dependency: csit-base).
   ====================================================================== */

/* Common site navigation and supporting text */
.identity-main { font-size: 20px; }
.identity-sub { font-size: 12px; }
.global-nav { font-size: 15px; }
.language-link { font-size: 14px; }
.breadcrumb { font-size: 13px; }
.heading-lead, .hero-lead { font-size: 16px; line-height: 1.75; }
.site-footer { font-size: 13px; }
.footer-brand { font-size: 15px; }

/* Home: quick links and announcements */
.quick-link strong { font-size: 17px; }
.quick-link small { font-size: 13px; }
.news-link { font-size: 16px; line-height: 1.75; }
.news-date { font-size: 13px; }
.news-intro p { font-size: 14px; }
.view-all-top, .all-link { font-size: 14px; }
.csit-news-empty { font-size: 15px; }

/* Laboratories: descriptions, keywords, names and titles */
.jump-box summary { font-size: 16px; }
.jump-link { font-size: 14px; line-height: 1.6; }
.lab-card h3 { font-size: clamp(18px, 1.55vw, 20px); }
.lab-description { font-size: 15px; line-height: 1.75; height: 200px; }
.lab-keywords-label { font-size: 13px; }
.lab-keyword { font-size: 13px; }
.person-name { font-size: 16px; }
.person-role { font-size: 14px; }
.lab-site-link { font-size: 14px; }
.lab-site-link:not([href])::after { font-size: 12px; }

/* Education: explanation cards and curriculum */
.section-caption { font-size: 15px; }
.reason-card h3 { font-size: 18px; }
.reason-card p { font-size: 15px; line-height: 1.85; }
.card-head p, .related p { font-size: 15px; }
.button-link, details.more-photos summary { font-size: 15px; }
.curriculum-year-one strong { font-size: 15px; }
.curriculum-year-one p { font-size: 14px; }
.curriculum-source-links { font-size: 13px; }
.curriculum-other p { font-size: 14px; }
.term-tab { font-size: 15px; }
.term-year-head h4 { font-size: 18px; }
.term-year-head span { font-size: 13px; }
.term-calendar-header { font-size: 15px; }
.term-calendar-header small { font-size: 11px; }
.term-field-name strong { font-size: 14px; }
.term-field-name > span { font-size: 11px; }
.term-subject { font-size: 12.5px !important; line-height: 1.6 !important; }
.term-multi { font-size: 11px; }
.term-season-cell:before { font-size: 13px; }
.course-tag { font-size: 12px; line-height: 1.55; }

/* Career lists */
.destination-list li { font-size: 16px; line-height: 1.7; }
.block-label h3 { font-size: 18px; }
.such-as { font-size: 14px; }
.onpage a { font-size: 15px; }

/* Lab cards remain 2 columns on PC, 1 on smaller displays.
   Increasing text size requires increasing the fixed-height description area;
   overflow stays scrollable if a longer description is entered later. */
@media (min-width: 1100px) {
  .lab-description { height: 200px; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .lab-description { height: 236px; }
}
@media (min-width: 781px) and (max-width: 899px) {
  .lab-description { height: 284px; }
}
@media (min-width: 781px) and (max-width: 794px) {
  .lab-description { height: 310px; }
}
@media (min-width: 521px) and (max-width: 780px) {
  .lab-description { height: 178px; }
}
@media (min-width: 521px) and (max-width: 559px) {
  .lab-description { height: 210px; }
}
@media (max-width: 1020px) {
  .term-field-name strong { font-size: 13px; }
}
@media (max-width: 700px) {
  .term-field-name strong { font-size: 15px; }
  .term-subject { font-size: 13px !important; }
}
@media (max-width: 600px) {
  .identity-main { font-size: 18px; }
  .identity-sub { font-size: 11px; }
  .global-nav { font-size: 13px; column-gap: 14px; }
  .language-link { font-size: 13px; }
  .hero-lead { font-size: 14px; }
  .quick-link strong { font-size: 16px; }
  .quick-link small { font-size: 13px; }
  .news-link { font-size: 16px; }
  .news-date { font-size: 13px; }
  .news-intro p { font-size: 13px; }
}
@media (max-width: 520px) {
  .heading-lead { font-size: 15px; }
  .reason-card h3 { font-size: 18px; }
  .reason-card p { font-size: 15px; }
  .section-caption { font-size: 14px; }
  .jump-link { font-size: 14px; }
  .lab-card h3 { font-size: 18px; }
  .lab-description { font-size: 15px; height: 216px; }
  .person-name { font-size: 15px; }
  .person-role { font-size: 14px; }
  .destination-list li { font-size: 15px; }
  .block-label h3 { font-size: 17px; }
  .section-head h2 { font-size: 20px; }
  .onpage a { font-size: 14px; }
}
@media (max-width: 435px) {
  .lab-description { height: 276px; }
}
@media (max-width: 385px) {
  .lab-description { height: 314px; }
}
@media (max-width: 345px) {
  .lab-description { height: 362px; }
}
