/*
Theme Name: Nghiên Cứu 247
Description: Giao diện nghiên cứu và quản lý dự án cho Nghiên Cứu 247 Platform.
Version: 1.2.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: nghien-cuu-247
*/
* { box-sizing: border-box; }
body { margin: 0; background: #faf9f6; color: #172238; font: 16px/1.58 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: #1946bb; text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid #2867ed; outline-offset: 3px; }
.nc-shell { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.nc-site-head { background: #fff; border-bottom: 1px solid #dbe0e7; position: relative; z-index: 90; }
.nc-site-head > .nc-shell { min-height: 74px; display: flex; gap: 1.2rem; justify-content: space-between; align-items: center; position: relative; }
.nc-brand { display: inline-flex; gap: .66rem; align-items: center; white-space: nowrap; color: #142441; text-decoration: none; font-size: 1rem; font-weight: 790; letter-spacing: -.025em; }
.nc-logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px 9px 9px 2px; color: #fff; background: #2455d5; font-family: Georgia, Cambria, serif; font-size: 1.28rem; font-weight: 700; line-height: 1; }
.nc-header-links { display: flex; align-items: center; gap: clamp(.8rem, 2.45vw, 1.9rem); }
.nc-header-links a { display: inline-flex; align-items: center; min-height: 44px; color: #283650; text-decoration: none; white-space: nowrap; font-size: .89rem; font-weight: 620; }
.nc-header-links a:hover { color: #1946bb; text-decoration: underline; }
.nc-header-cta, .nc-header-links a.nc-header-cta { background: #2455d5; color: #fff; padding: .52rem .86rem; border-radius: 7px; text-decoration: none; font-weight: 720; }
.nc-header-links a.nc-header-cta:hover { background: #1946bb; }
.nc-mobile-nav { display: none; }
.nc-site-foot { background: #111c33; color: #dbe7f9; border-top: 1px solid #33425c; padding: 2.8rem 0 1.7rem; }
.nc-site-foot .nc-brand { color: #f8fbff; }
.nc-foot-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 1.3rem 2.1rem; }
.nc-site-foot p { color: #b8c7dc; margin: .8rem 0 0; max-width: 36ch; font-size: .91rem; }
.nc-footer-links { display: grid; align-content: start; gap: .5rem; font-size: .9rem; }
.nc-footer-links strong { color: #f8fbff; margin-bottom: .2rem; }
.nc-footer-links a { color: #d2def0; text-decoration: none; }
.nc-footer-links a:hover { color: #fff; text-decoration: underline; }
.nc-footer-policies { display: flex; gap: .5rem 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.nc-footer-policies a { color: #d2def0; font-size: .86rem; }
.nc-foot-note { margin-top: 1.4rem; border-top: 1px solid #3b4961; padding-top: .9rem; color: #b8c7dc; font-size: .83rem; }
.nc-skip { position: absolute; top: .5rem; left: .5rem; transform: translateY(-200%); z-index: 10000; background: #fff; color: #080f20; padding: .6rem .8rem; }
.nc-skip:focus { transform: none; }
.nc-editorial { max-width: 790px; min-height: 42vh; padding: clamp(2rem, 6vw, 4.6rem) 0; }
.nc-editorial h1 { font-size: clamp(2.05rem, 4.5vw, 3.65rem); line-height: 1.1; letter-spacing: -.04em; margin: 0 0 .7rem; }
.nc-editorial h2 { line-height: 1.25; margin-top: 1.7em; }
.nc-editorial img { display: block; width: 100%; height: auto; border-radius: 9px; }
.nc-editorial p, .nc-editorial li { max-width: 72ch; }
.nc-editorial .nc-byline { color: #515d70; margin-bottom: 1.45rem; }
@media (max-width: 780px) {
  .nc-shell { width: calc(100% - 2rem); }
  .nc-site-head > .nc-shell { min-height: 64px; }
  .nc-header-links { display: none; }
  .nc-mobile-nav { display: block; }
  .nc-mobile-nav summary { display: flex; align-items: center; gap: .4rem; min-height: 44px; list-style: none; color: #22334e; cursor: pointer; border: 1px solid #c5d1e3; border-radius: 8px; padding: .35rem .62rem; font-size: .9rem; font-weight: 650; }
  .nc-mobile-nav summary::-webkit-details-marker { display: none; }
  .nc-mobile-nav summary::before { content: ""; width: .8rem; height: 8px; border-block: 2px solid currentColor; }
  .nc-mobile-nav nav { position: absolute; right: 0; top: 59px; background: #fff; border: 1px solid #c5d1e3; border-radius: 10px; padding: .45rem .7rem; display: grid; min-width: min(15rem, 100%); box-shadow: 0 12px 30px #080f2026; }
  .nc-mobile-nav:not([open]) nav { display: none; }
  .nc-mobile-nav nav a { display: flex; align-items: center; min-height: 43px; font-size: .92rem; text-decoration: none; padding: .35rem .45rem; }
}
@media (max-width: 580px) {
  .nc-foot-grid { grid-template-columns: 1fr 1fr; }
  .nc-foot-grid > div:first-child { grid-column: 1 / -1; }
}
