/*
Theme Name: Regional Compass
Theme URI: https://tottori-tc.com/
Description: Regional media presentation layer for tourism, culture, industry, and official data. Requires JPINFO Media.
Author: Multilingual Media Control
Template: jpinfo-media-v1
Version: 0.2.1
Text Domain: regional-compass
*/

:root {
  --jp-accent: #285f4d;
  --regional-sand: #f3eee3;
  --regional-sky: #dcebf1;
  --regional-forest: #234d3f;
}

body {
  background:
    radial-gradient(circle at 9% 4%, rgba(128, 174, 166, .18), transparent 27rem),
    linear-gradient(180deg, #f8f6f0, var(--regional-sand));
}

.jp-topbar,
.jp-footer {
  background: var(--regional-forest);
}

.jp-nav a:hover,
.jp-nav .current-menu-item > a {
  background: var(--regional-forest);
}

.jp-content,
.jp-sidebar section,
.jp-cover-board {
  border-color: rgba(35, 77, 63, .16);
}

.jp-content,
.jp-sidebar,
.jp-entry-content {
  min-width: 0;
}

.jp-brand-kicker {
  color: #4f8f78;
  font-size: 12px;
  letter-spacing: .16em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .65);
}

@media (min-width: 821px) {
  .jp-front-full > .jp-home-module.jp-module-list .jp-module-item {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
  }
}

.jp-front-full > .jp-home-module .jp-module-heading > span {
  font-size: 10px;
  letter-spacing: .12em;
}

.jp-front-full > .jp-home-module .jp-module-heading > h2 {
  font-size: 15px;
  line-height: 1.2;
}

/* Prevent intrinsically wide widgets from stretching the two-column grid. */
.jp-sidebar > section {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.jp-sidebar > section > *,
.jp-sidebar .wp-block-group,
.jp-sidebar .wp-block-group__inner-container,
.jp-sidebar .wp-block-search,
.jp-sidebar .wp-block-search__inside-wrapper {
  min-width: 0;
  max-width: 100%;
}

.jp-front-full,
.jp-front-full > .jp-cover-board,
.jp-front-full > .jp-home-module,
.jp-layout {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

.jp-entry-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.jp-entry-content :where(p, li, td, th, a),
.jp-sidebar :where(p, li, a) {
  overflow-wrap: anywhere;
}

.jp-sidebar h1 {
  margin: 0 0 10px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.jp-language summary {
  min-width: 180px;
  white-space: nowrap;
}

.jp-language-menu {
  min-width: 220px;
}

/* Present the editorial disclosure as one compact card at the top of the sidebar. */
.jp-sidebar #block-9 {
  padding: 13px 16px 3px;
  border-bottom: 0;
  border-radius: var(--jp-radius) var(--jp-radius) 0 0;
  box-shadow: none;
}

.jp-sidebar #block-9 h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.jp-sidebar #block-11 {
  margin-top: -18px;
  padding: 3px 16px 13px;
  border-top: 0;
  border-radius: 0 0 var(--jp-radius) var(--jp-radius);
}

.jp-sidebar #block-11 p {
  margin: 0;
  color: #59616c;
  font-size: 11px;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .jp-language summary {
    min-width: 160px;
  }

  .jp-brand-copy {
    padding-right: 172px;
  }
}

.regional-data-note {
  padding: 14px 16px;
  border-left: 4px solid var(--regional-forest);
  background: var(--regional-sky);
  color: #173d34;
}
