/* Digital palette: KMUTT CI 2019 update, pp. 21 and 61.
   https://www.kmutt.ac.th/wp-content/uploads/pdf/CI_KMUTT_FINAL_2019update.pdf
   Orange/yellow/grey are identity colours. Darker text colours support reading. */
:root {
  --ks-paper:#fff;
  --ks-line:#dfe2e5;
  --ks-ink:#24272b;
  --kc-orange:#ff4713;
  --kc-yellow:#ffdd00;
  --kc-link:#a92b0b;
}
body {background:#fff;}
.kc-topbar {background:#626a74;}
.kc-topbar-inner {min-height:30px;}
.kc-header-main {background:#fff;}
.kc-masthead {padding-block:15px;gap:24px;}
.kc-brand {gap:20px;}
.kc-brand-text {padding-left:20px;}
.kc-brand-text .wp-block-site-title {font-size:32px;line-height:1.2;}
.kc-brand-text .wp-block-site-tagline {font-size:17px;line-height:1.25;margin-top:5px;letter-spacing:.3px;}
.kc-brand .custom-logo {width:46px;}
.kc-header-tools .kc-eyebrow {margin-bottom:5px;letter-spacing:1.4px;font-size:12px;}
.kc-search .wp-block-search__inside-wrapper {min-height:38px;background:#f3f4f5;}
.kc-nav-wrap {border-bottom:0;border-top:1px solid #e5e7e9;}
.kc-nav-row {min-height:48px;}
.kc-navigation .wp-block-navigation-item__content {padding-block:12px;}
.kc-nav-cta a {display:inline-block;background:#ffdd00;color:#24272b;padding:8px 16px;}
.kc-nav-cta a:hover {background:#f2cf00;}

/* Hero is a single, aligned colour-and-photo composition. */
.ks-wrap.ks-hero {
  width:100%;max-width:none;grid-template-columns:50% 50%;
  padding:0;gap:0;align-items:stretch;background:#ff4713;
}
.ks-hero-copy {
  padding:52px 42px 54px max(32px,calc((100vw - 1200px)/2));
  display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
}
.ks-hero .ks-label {color:#381408;font-size:11px;letter-spacing:2px;margin:0 0 22px;}
.ks-hero h1 {color:#fff;font-size:clamp(64px,6.5vw,94px);line-height:1.1;letter-spacing:-.4px;margin:0 0 22px;font-weight:700;}
.ks-hero h1 em {color:#2a211c;}
.ks-hero .ks-intro {color:#34180e;font-size:25px;line-height:1.55;max-width:430px;margin:0 0 27px;}
.ks-hero .wp-block-button__link {padding:11px 25px;font-size:22px;background:#fff;color:#24272b;}
.ks-hero .wp-block-button__link:hover {background:#ffdd00;transform:none;}
.ks-hero .ks-quiet .wp-block-button__link {background:transparent;border-bottom:1px solid #71351e;color:#34180e;padding:10px 0;}
.ks-hero .wp-block-buttons {gap:25px;margin:0;}
.ks-hero-media {padding:0;position:relative;min-height:490px;overflow:hidden;}
.ks-hero-media:before {display:none;}
.ks-hero-media figure {height:100%;margin:0;}
.ks-hero-media img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:52% center;}
.ks-hero-media figcaption {position:absolute;bottom:0;left:0;right:0;margin:0;padding:14px 24px;background:#24272b;color:#fff;font-size:9px;letter-spacing:1.4px;}
.ks-image-note {right:0;bottom:43px;padding:19px 27px;background:#ffdd00;color:#24272b;font-size:18px;line-height:1.2;letter-spacing:.4px;}

.ks-directory {padding-block:25px;border-top:7px solid #ffdd00;border-bottom:1px solid #dfe2e5;}
.ks-directory .ks-label {color:#a92b0b;font-size:10px;letter-spacing:1.4px;}
.ks-directory h2 {font-size:29px;font-weight:700;line-height:1.2;margin-bottom:8px;}
.ks-directory p:not(.ks-label) {color:#555e68;line-height:1.4;}
.ks-section {padding-block:65px;}
.ks-heading {margin-bottom:30px;}
.ks-heading h2 {font-size:54px;line-height:1.2;}
.ks-heading .ks-label {color:#a92b0b;margin-bottom:10px;}
.ks-heading-copy {border-left:7px solid #ff4713;padding-left:20px;}
.ks-heading a {color:#a92b0b;border-bottom-color:#ff4713;}
.ks-stories .wp-block-post-template {gap:28px;}
.ks-stories li {border-bottom:3px solid #ff4713;padding-bottom:22px;}
.ks-stories .wp-block-post-featured-image img {height:225px;}
.ks-stories .wp-block-post-terms a {background:#ffdd00;color:#24272b;padding:3px 11px;display:inline-block;}
.ks-stories .wp-block-post-title {font-size:31px;line-height:1.35;margin:12px 0 8px;}
.ks-stories .wp-block-post-date {margin-bottom:10px;}

.ks-mission {background:#626a74;padding-block:64px;border-top:8px solid #ff4713;}
.ks-mission-inner {gap:75px;align-items:center;}
.ks-mission h2 {font-size:64px;line-height:1.2;}
.ks-mission h2 em {color:#ffdd00;}
.ks-mission .ks-label {color:#fff;}
.ks-mission p:not(.ks-label) {color:#fff;font-size:24px;}
.ks-service-row {border-color:#929ba5;padding:24px 0;}
.ks-service-row h3 {font-size:33px;line-height:1.35;}
.ks-service-row .ks-label {color:#ffdd00;font-size:11px;margin-bottom:8px;}
.ks-adapt {background:#ffdd00;padding-block:60px;}
.ks-adapt h2 {font-size:58px;line-height:1.2;}
.ks-adapt p,.ks-adapt .ks-label,.ks-checklist p {color:#34352d;}
.ks-checklist>div {border-top:2px solid #82730b;}
.ks-checklist h3 {font-size:28px;line-height:1.3;}
.ks-checklist p {font-size:22px;line-height:1.5;}
.kc-footer {background:#f3f4f5;border-top:0;}
.kc-footer-bottom {background:#626a74;color:#fff;}
.kc-footer-bottom p,.kc-footer-bottom a {color:#fff;}
.ks-guide {border-top:7px solid #ff4713;}
.ks-guide .wp-block-table th {background:#626a74;}
.ks-guide summary {color:#a92b0b;}

/* Inner-page stories and native image blocks. */
.kc-page-title {padding-block:42px;background:#f3f4f5;border-top:6px solid #ff4713;}
.kc-page-title h1 {max-width:1000px;line-height:1.2;}
.kc-content {padding-block:42px 65px;}
.kc-content .wp-block-post-content {line-height:1.7;}
.kc-content .wp-block-post-content>h2 {font-size:42px;line-height:1.3;margin-top:38px;margin-bottom:16px;}
.kc-content .wp-block-image img {display:block;width:100%;max-height:440px;object-fit:cover;}
.wp-block-image figcaption {font-size:17px;line-height:1.5;color:#626a74;margin-top:9px;}
.kc-single .wp-block-post-content {line-height:1.75;}
.kc-single .wp-block-post-content>h2 {font-size:40px;line-height:1.35;margin-top:38px;margin-bottom:14px;}
.kc-single .wp-block-post-content>.wp-block-image img {width:100%;max-height:430px;object-fit:cover;}
.ks-photo-pair {display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-block:36px;}
.ks-photo-pair>* {margin:0!important;min-width:0;}
.ks-photo-pair .wp-block-image img {height:240px;object-fit:cover;}
.ks-service-gallery {display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-block:30px;}
.ks-service-detail {margin:0!important;background:#f3f4f5;border-bottom:4px solid #ff4713;}
.ks-service-detail figure {margin:0;}
.ks-service-detail figure img {height:220px;object-fit:cover;}
.ks-service-detail figcaption {padding-inline:18px;}
.ks-service-detail h3 {font-size:32px;line-height:1.3;padding-inline:20px;}
.ks-service-detail h3 a {color:#a92b0b;text-decoration:none;}
.ks-service-detail>p {padding:0 20px 20px;margin:0;font-size:23px;}
.ks-related,.ks-takeaways {padding:24px 28px;background:#f3f4f5;border-left:5px solid #ff4713;margin-block:32px;}
.ks-related h2,.ks-takeaways h2 {font-size:31px;line-height:1.35;margin:0 0 16px;}
.ks-related ul,.ks-takeaways ul {margin:0;padding-left:23px;}
.ks-related li,.ks-takeaways li {margin-block:8px;}
.ks-related a {color:#a92b0b;}
.kc-single blockquote {border-left:5px solid #ffdd00;padding:12px 24px;margin-inline:0;font-size:29px;line-height:1.5;}
.kc-single blockquote p {margin:0;}
@media(max-width:760px) {
  .kc-page-title {padding-block:28px;}
  .kc-content {padding-block:28px 42px;}
  .kc-content .wp-block-post-content>h2,.kc-single .wp-block-post-content>h2 {font-size:34px;}
  .ks-service-gallery,.ks-photo-pair {grid-template-columns:1fr;gap:24px;}
  .ks-photo-pair .wp-block-image img {height:230px;}
  .ks-related,.ks-takeaways {padding:20px;}
}

@media(max-width:1000px) {
  .ks-hero-copy {padding:38px 28px;}
  .ks-hero h1 {font-size:70px;}
  .ks-hero-media {min-height:470px;}
  .ks-hero .ks-intro {font-size:24px;}
  .ks-directory h2 {font-size:26px;}
}
@media(max-width:760px) {
  .kc-masthead {padding-block:16px;}
  .kc-brand-text .wp-block-site-title {font-size:28px;}
  .kc-header-tools {margin-top:0;}
  .kc-nav-cta a {padding:7px 12px;font-size:19px;}
  .ks-wrap.ks-hero {grid-template-columns:1fr;}
  .ks-hero-copy {padding:34px 24px 36px;}
  .ks-hero h1 {font-size:clamp(57px,15vw,76px);line-height:1.15;margin-bottom:18px;}
  .ks-hero .ks-label {font-size:10px;letter-spacing:1.5px;margin-bottom:17px;}
  .ks-hero .ks-intro {font-size:24px;margin-bottom:24px;}
  .ks-hero-media {min-height:300px;}
  .ks-hero-media figcaption {font-size:8px;line-height:1.5;padding:10px 18px;}
  .ks-image-note {bottom:44px;font-size:15px;padding:14px 20px;}
  .ks-directory {padding-block:22px;row-gap:24px;}
  .ks-directory h2 {font-size:25px;line-height:1.3;}
  .ks-directory .ks-label {font-size:9px;}
  .ks-section {padding-block:42px;}
  .ks-heading {align-items:center;gap:16px;}
  .ks-heading-copy {padding-left:12px;border-width:5px;}
  .ks-heading h2 {font-size:37px;line-height:1.25;}
  .ks-heading a {font-size:19px;}
  .ks-heading .ks-label {font-size:9px;letter-spacing:1px;}
  .ks-mission h2 {font-size:55px;}
  .ks-mission,.ks-adapt {padding-block:42px;}
  .ks-adapt h2 {font-size:48px;}
  .ks-stories .wp-block-post-title {font-size:30px;}
}
