/* Tu viện Huệ Quang — restored from the web archive (snapshot 2017-10-03) */
:root {
  --page-bg: #e8e8e8;
  --paper: #fff;
  --ink: #333;
  --ink-soft: #666;
  --heading: #404040;
  --maroon: #5b0a05;
  --brown: #641e00;
  --brown-text: #663300;
  --gold: #e9c300;
  --gold-soft: #fbf1b1;
  --cream: #f6e3ce;
  --line: #e0e0e0;
  --dash: #c9c9c9;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-serif: "Times New Roman", Times, Georgia, serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 12px; }
body { margin: 0; background: var(--page-bg); color: var(--ink); font: 400 14px/1.6 var(--font); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); }
a:hover { color: #c60; }
:focus-visible { outline: 3px solid var(--brown); outline-offset: 2px; }
.menu-bar :focus-visible { outline-color: var(--maroon); }
.site-footer :focus-visible { outline-color: var(--brown); }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
p { margin: 0 0 10px; }

.page { max-width: var(--wrap); margin: 0 auto; background: var(--paper); box-shadow: 0 0 12px rgba(0, 0, 0, .06); }

/* ---------- header ---------- */
.banner { display: block; background: var(--gold-soft); }
.banner img { width: 100%; }

.menu-bar { position: relative; background: var(--gold) url("../img/menu-bg.png") center / cover no-repeat; }
.nav-toggle { display: none; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 8px 14px; background: none; border: 0; color: var(--maroon); font: 700 15px/1 var(--font); text-transform: uppercase; cursor: pointer; }
.primary-nav__list { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.primary-nav__list a { display: block; padding: 0 16px; line-height: 42px; color: var(--maroon); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.primary-nav__list a:hover { background: var(--brown); color: #ff0; }

.title-bar { padding: 7px 12px; border-bottom: 1px solid var(--line); }
.title-bar h1 { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--brown-text); letter-spacing: .02em; }
.title-bar h1 span { font-weight: 400; text-transform: none; color: var(--ink-soft); letter-spacing: 0; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 270px; grid-template-areas: "left main right"; gap: 16px; padding: 14px 12px 20px; }
.layout > * { min-width: 0; }
.content { grid-area: main; }
.sidebar--left { grid-area: left; }
.sidebar--right { grid-area: right; }

/* ---------- main column ---------- */
.lead-news { margin-bottom: 18px; padding: 16px 18px; background: linear-gradient(135deg, var(--gold-soft), #fff8d8); border-left: 4px solid var(--gold); }
.lead-news__label { margin: 0 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brown); }
.lead-news__title { font-size: 21px; color: var(--heading); margin-bottom: 8px; }
.lead-news p:last-child { margin: 0; }

.block { margin-bottom: 22px; }
.block__title { margin-bottom: 12px; padding: 8px 12px; background: var(--maroon); color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; border-bottom: 3px solid var(--gold); }

.feature { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: start; }
.feature--small { grid-template-columns: 150px minmax(0, 1fr); }
.feature__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line); }
.feature--small .feature__img { aspect-ratio: auto; }
.feature__title { font-size: 17px; color: var(--heading); margin-bottom: 4px; }
.meta { font-size: 12px; color: #737373; margin-bottom: 6px; }
.feature__body p:last-child { margin-bottom: 0; }

.news-list { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.news-list li { position: relative; padding: 6px 0 6px 14px; border-bottom: 1px dashed var(--dash); font-size: 13px; color: var(--heading); }
.news-list li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 5px; height: 5px; background: #f90; }
.news-list--cols { column-count: 2; column-gap: 24px; border-top: 0; margin-top: 0; }
.news-list--cols li { break-inside: avoid; }

.bio::after { content: ""; display: block; clear: both; }
.bio__photo { float: right; width: 190px; margin: 0 0 10px 16px; }
.bio__photo img { border: 1px solid var(--line); }
.bio__photo figcaption { margin-top: 4px; font-size: 12px; font-style: italic; color: var(--ink-soft); text-align: center; }
.bio__title { margin-bottom: 8px; font: 700 19px/1.3 var(--font-serif); color: var(--brown-text); text-transform: uppercase; }
.bio p { text-align: justify; }
.bio__more summary { display: inline-block; margin: 2px 0 10px; padding: 5px 14px; background: var(--gold-soft); border: 1px solid var(--gold); color: var(--brown); font-weight: 700; font-size: 13px; cursor: pointer; }
.bio__more summary:hover { background: var(--gold); }
.bio__more[open] summary { margin-bottom: 12px; }

/* ---------- sidebars ---------- */
.side-block { margin-bottom: 16px; background: #f8f8f8; border: 1px solid #e8e8e8; }
.side-block__title { padding: 9px 12px; background: var(--maroon); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; border-bottom: 3px solid var(--gold); }
.side-list { margin: 0; padding: 6px 10px 8px; list-style: none; }
.side-list li { padding: 6px 0; border-bottom: 1px dashed var(--dash); font-size: 12.5px; line-height: 1.45; color: #9a3b04; }
.side-list li:last-child { border-bottom: 0; }
.banner-list { display: grid; gap: 8px; margin: 0; padding: 10px; list-style: none; }
.banner-list li { display: flex; justify-content: center; }
.banner-list img { width: auto; max-width: 100%; max-height: 170px; }
.banner-list a { display: block; transition: opacity .15s; }
.banner-list a:hover { opacity: .85; }

/* ---------- footer ---------- */
.site-footer { color: var(--brown-text); text-align: center; }
.footer-quick { background: #e6e99c; font-size: 12px; line-height: 32px; }
.footer-quick a { color: var(--brown); font-weight: 700; text-decoration: none; }
.footer-quick a:hover { text-decoration: underline; }
.footer-main { padding: 14px 16px 6px; border-top: 1px solid var(--line); }
.footer-main__title { margin-bottom: 6px; font-size: 15px; text-transform: uppercase; }
.footer-main address { font-style: normal; font-size: 13px; }
.footer-main p { margin: 0 0 4px; }
.footer-main a { color: var(--brown); }
.footer-copy { margin: 0; padding: 8px 16px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "main main" "left right"; }
}

@media (max-width: 767px) {
  .banner img { height: 84px; object-fit: cover; object-position: 52% center; }
  .js .nav-toggle { display: flex; }
  .js .primary-nav { display: none; }
  .js .primary-nav.is-open { display: block; }
  .primary-nav__list { flex-direction: column; background: rgba(255, 255, 255, .35); }
  .primary-nav__list a { padding: 0 16px; line-height: 44px; border-top: 1px solid rgba(91, 10, 5, .15); }
  .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "left" "right"; padding: 12px 10px 16px; }
  .lead-news__title { font-size: 18px; }
  .feature, .feature--small { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
  .feature__title { font-size: 15px; }
  .news-list--cols { column-count: 1; }
  .bio__photo { float: none; width: 200px; margin: 0 auto 12px; }
}
