/* ASEAN Policy Brief — strictly black and white, Times New Roman. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: #000;
  font-family: "Times New Roman", Times, serif;
  font-size: 19px; line-height: 1.5;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: #000; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #000; outline-offset: 3px; }
main:focus { outline: none; }
button, input, select, textarea { font: inherit; color: #000; }

.wrap, #masthead, #main, #footer, #demo-banner { padding-left: 24px; padding-right: 24px; }
#masthead > *, #main > *, #footer > *, #demo-banner > * { max-width: 1280px; margin-left: auto; margin-right: auto; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 12px 16px; border: 2px solid #000; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Demonstration banner */
#demo-banner { border-bottom: 1px solid #000; padding-top: 10px; padding-bottom: 10px; font-size: 16px; }
#demo-banner strong { text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }

/* Masthead */
#masthead { padding-top: 14px; }
.mast { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px;
  border-bottom: 3px double #000; padding-bottom: 10px; }
.brand { font-size: 24px; font-weight: bold; text-decoration: none; letter-spacing: .01em; padding: 8px 0; }
.nav { display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 17px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; }

/* Buttons and fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 8px 16px; background: #fff; color: #000;
  border: 1px solid #000; border-radius: 0; cursor: pointer; font-size: 16px; text-decoration: none;
}
.btn:hover { background: #000; color: #fff; }
.btn[aria-pressed="true"] { background: #000; color: #fff; }
.btn[aria-pressed="true"]:hover { background: #fff; color: #000; }
.btn.small { min-height: 44px; padding: 6px 12px; font-size: 15px; }
input[type="search"], select, textarea {
  background: #fff; border: 1px solid #000; border-radius: 0; padding: 9px 12px; min-height: 44px; width: 100%;
  -webkit-appearance: none; appearance: none;
}
select { padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
textarea { min-height: 96px; line-height: 1.4; resize: vertical; }
label, .label { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }

.kicker { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.rule { border: 0; border-top: 1px solid #000; margin: 0; }
.small-note { font-size: 16px; }
.state { padding: 48px 0; font-size: 21px; max-width: 40em; }
.state .btn { margin-top: 16px; }

/* Home */
.home-head { text-align: center; padding: 56px 0 44px; }
.home-head h1 { font-size: clamp(44px, 8vw, 92px); line-height: 1; font-weight: bold; letter-spacing: -.01em; }
.home-head .sub { font-size: clamp(20px, 2.4vw, 26px); font-style: italic; margin-top: 18px; }
.home-label { border-top: 1px solid #000; padding-top: 12px; margin-bottom: 0; }
.country-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid #000; margin-top: 12px; }
.country-grid a { display: block; padding: 22px 4px 20px; border-bottom: 1px solid #000; text-decoration: none; min-height: 96px; }
.country-grid a:hover .cname, .country-grid a:focus-visible .cname { text-decoration: underline; text-decoration-thickness: 2px; }
.country-grid .cname { display: block; font-size: 30px; line-height: 1.1; font-weight: bold; }
.country-grid .cmeta { display: block; font-size: 15px; margin-top: 8px; }
.country-grid a.all .cname { font-style: italic; }
@media (min-width: 600px) {
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .country-grid a { padding: 24px 20px 22px; border-right: 1px solid #000; }
  .country-grid a:nth-child(2n) { border-right: 0; }
}
@media (min-width: 900px) {
  .country-grid { grid-template-columns: repeat(3, 1fr); }
  .country-grid a:nth-child(2n) { border-right: 1px solid #000; }
  .country-grid a:nth-child(3n) { border-right: 0; }
}
@media (min-width: 1200px) {
  .country-grid { grid-template-columns: repeat(4, 1fr); }
  .country-grid a:nth-child(3n) { border-right: 1px solid #000; }
  .country-grid a:nth-child(4n) { border-right: 0; }
}
.home-foot { padding: 28px 0 8px; max-width: 46em !important; margin-left: 0 !important; }

/* Country page */
.page-head { padding: 34px 0 20px; display: grid; gap: 18px; align-items: end; }
.page-head h1 { font-size: clamp(44px, 7vw, 84px); line-height: 1; font-weight: bold; letter-spacing: -.01em; }
.page-head .switch { max-width: 320px; }
@media (min-width: 800px) { .page-head { grid-template-columns: 1fr 300px; } }
.sysnote { border-top: 1px solid #000; border-bottom: 1px solid #000; padding: 14px 0; display: grid; gap: 10px 32px; font-size: 17px; }
.sysnote p { max-width: 38em; }
.sysnote .kicker { display: block; margin-bottom: 2px; }
@media (min-width: 900px) { .sysnote { grid-template-columns: repeat(3, 1fr); } }
.coverage { padding: 12px 0; border-bottom: 1px solid #000; font-size: 17px; }
.coverage strong { text-transform: uppercase; font-size: 14px; letter-spacing: .08em; }

.tools { padding: 22px 0 8px; display: grid; gap: 16px; }
.tools .search { max-width: 460px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-label { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px;
  border-top: 3px double #000; padding-top: 10px; margin-top: 28px; }
.section-head h2 { font-size: 16px; text-transform: uppercase; letter-spacing: .12em; font-weight: bold; }
.section-head p { font-size: 15px; max-width: 46em; }

.top-grid { display: grid; grid-template-columns: 1fr; margin-top: 18px; }
.top-grid > li { padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid #000; }
.top-grid > li:last-child { border-bottom: 0; margin-bottom: 0; }
@media (min-width: 640px) {
  .top-grid { grid-template-columns: repeat(2, 1fr); column-gap: 0; }
  .top-grid > li { padding: 0 24px 22px; border-left: 1px solid #000; border-bottom: 0; }
  .top-grid > li:nth-child(2n+1) { padding-left: 0; border-left: 0; }
}
@media (min-width: 1100px) {
  .top-grid { grid-template-columns: repeat(4, 1fr); }
  .top-grid > li:nth-child(2n+1) { padding-left: 24px; border-left: 1px solid #000; }
  .top-grid > li:nth-child(4n+1) { padding-left: 0; border-left: 0; }
}

.story .kicker { display: block; margin-bottom: 8px; }
.story h3 { font-size: 25px; line-height: 1.15; font-weight: bold; }
.story h3 a { text-decoration: none; }
.story h3 a:hover { text-decoration: underline; }
.story .summary { margin-top: 10px; font-size: 18px; }
.story .meta { margin-top: 12px; font-size: 15px; line-height: 1.45; }
.story .meta dt { display: inline; font-weight: bold; }
.story .meta dd { display: inline; }
.story .meta div { display: block; }
.story .actions { margin-top: 12px; }
.status { display: inline-block; border: 1px solid #000; padding: 1px 8px; font-size: 14px; }
.status.solid { background: #000; color: #fff; }
.demo-tag { font-style: italic; text-transform: none; letter-spacing: 0; }

.latest > li { display: grid; gap: 6px 32px; padding: 22px 0; border-bottom: 1px solid #000; }
.latest .when { font-size: 15px; }
.latest .when b { display: block; font-size: 19px; }
.latest .story { max-width: 44em; }
@media (min-width: 760px) { .latest > li { grid-template-columns: 170px 1fr; } }

/* Briefing */
.article { max-width: 720px !important; padding: 36px 0 24px; }
.article.wide { max-width: 860px !important; }
.article h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; font-weight: bold; margin-top: 12px; }
.article .standfirst { font-size: 23px; line-height: 1.35; margin-top: 16px; }
.article .facts { margin-top: 24px; border-top: 1px solid #000; border-bottom: 1px solid #000; padding: 14px 0; display: grid; gap: 8px 32px; font-size: 16px; }
.article .facts dt { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
@media (min-width: 620px) { .article .facts { grid-template-columns: 1fr 1fr; } }
.article .bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.article section { margin-top: 34px; }
.article h2 { font-size: 27px; line-height: 1.2; font-weight: bold; margin-bottom: 10px; }
.article section p + p { margin-top: 12px; }
.article ul.plain li { padding-left: 1.1em; text-indent: -1.1em; margin-top: 6px; }
.article ul.plain li::before { content: "— "; }
.article .labelled { border-left: 4px solid #000; padding-left: 18px; }
.article .labelled .kicker { display: block; margin-bottom: 6px; font-weight: bold; }
.article .labelled h2 { font-style: italic; }
.sources li { padding: 12px 0; border-bottom: 1px solid #000; }
.sources li:first-child { border-top: 1px solid #000; }
.sources .kicker { display: block; }
.sources .note { font-size: 16px; display: block; }
details { border-top: 1px solid #000; border-bottom: 1px solid #000; }
summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: bold; }
.excerpt { display: grid; gap: 18px; padding: 6px 0 18px; }
.excerpt blockquote { margin: 0; }
@media (min-width: 620px) { .excerpt { grid-template-columns: 1fr 1fr; gap: 28px; }
  .excerpt > div + div { border-left: 1px solid #000; padding-left: 28px; } }
.review { font-size: 16px; margin-top: 10px; }
.notes { display: grid; gap: 16px; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }

/* Notebook, glossary, sources */
.nb-item { border-top: 1px solid #000; padding: 22px 0; }
.nb-item h2 { font-size: 26px; }
.nb-item h2 a { text-decoration: none; } .nb-item h2 a:hover { text-decoration: underline; }
.nb-item .notes { margin-top: 14px; }
.glossary dt { font-weight: bold; font-size: 21px; padding-top: 14px; border-top: 1px solid #000; margin-top: 14px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid #000; }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: normal; border-bottom: 2px solid #000; }

/* Footer */
#footer { margin-top: 56px; padding-top: 0; padding-bottom: 40px; font-size: 15px; }
#footer .inner { border-top: 3px double #000; padding-top: 14px; display: grid; gap: 8px; }
#footer p { max-width: 60em; }

@media (max-width: 480px) {
  body { font-size: 18px; }
  .wrap, #masthead, #main, #footer, #demo-banner { padding-left: 16px; padding-right: 16px; }
  .home-head { padding: 36px 0 30px; }
}
@media print { .nav, .btn, .tools, #demo-banner + header .nav { display: none !important; } }
