/**
 * 일반 생활정보 안내 (general_life_guide)
 * AI 허브의 포스터형 구조를 생활 안내서비스 톤으로 재구성
 */
:root {
  --glg-bg: #fbf7f0;
  --glg-bg-2: #f2eadf;
  --glg-paper: #fffdf9;
  --glg-ink: #1f2933;
  --glg-muted: #687385;
  --glg-faint: #8b9382;
  --glg-sage: #617864;
  --glg-sage-dark: #32483b;
  --glg-teal: #0f766e;
  --glg-clay: #b8784c;
  --glg-coral: #b4534a;
  --glg-border: rgba(79, 63, 44, 0.15);
  --glg-border-strong: rgba(79, 63, 44, 0.24);
  --glg-radius: 12px;
  --glg-shadow: 0 18px 48px rgba(66, 48, 31, 0.11);
}

body:has(.glg-page) {
  background:
    radial-gradient(circle at 0% 0%, rgba(226, 190, 146, 0.25), transparent 28%),
    radial-gradient(circle at 100% 10%, rgba(113, 137, 111, 0.17), transparent 26%),
    linear-gradient(180deg, var(--glg-bg) 0%, var(--glg-bg-2) 100%);
}

.glg-page {
  color: var(--glg-ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", system-ui, sans-serif;
  letter-spacing: 0;
  padding-top: calc(var(--header-height, 70px) + 18px);
}

.glg-page a {
  color: inherit;
}

.glg-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 64px;
  box-sizing: border-box;
}

.glg-wrap--hub {
  min-height: 58vh;
}

.glg-wrap--hub .glg-hero {
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  gap: 22px;
  align-items: center;
  padding: 10px 0 20px;
}

.glg-wrap--hub .glg-hero-left {
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 16px;
}

.glg-wrap--hub .glg-hero-rail {
  min-height: 112px;
  padding-left: 12px;
}

.glg-wrap--hub .glg-hero-rail strong {
  font-size: 1.22rem;
}

.glg-wrap--hub .glg-hero h1 {
  margin-bottom: 8px;
  font-size: clamp(1.85rem, 3.6vw, 2.95rem);
}

.glg-wrap--hub .glg-hero p {
  max-width: 680px;
  font-size: 0.94rem;
  line-height: 1.62;
}

.glg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  align-items: stretch;
  padding: 18px 0 28px;
  margin-bottom: 18px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.glg-hero-left {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-width: 0;
}

.glg-hero-rail {
  min-height: 190px;
  border-left: 2px solid rgba(50, 72, 59, 0.35);
  padding-left: 14px;
  color: var(--glg-sage-dark);
}

.glg-hero-rail span {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--glg-clay);
  letter-spacing: 0;
}

.glg-hero-rail strong {
  display: block;
  margin-top: 6px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
}

.glg-eyebrow,
.glg-section-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--glg-clay);
}

.glg-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.5vw, 3.45rem);
  line-height: 1.08;
  font-weight: 900;
  color: #201a14;
}

.glg-hero--detail h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.glg-hero p {
  margin: 0;
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.78;
  color: #4d5149;
  word-break: keep-all;
}

.glg-hero p strong {
  color: var(--glg-sage-dark);
}

.glg-page .service-top-mode-switch,
.glg-emergency-panel {
  display: grid;
  gap: 10px;
  align-content: center;
}

.glg-page .hub-mode-pill,
.glg-emergency-panel a {
  display: block;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid rgba(50, 72, 59, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(66, 48, 31, 0.055);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.glg-page .hub-mode-pill:hover,
.glg-emergency-panel a:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 120, 76, 0.34);
  box-shadow: 0 14px 28px rgba(66, 48, 31, 0.1);
}

.glg-page .service-top-mode-switch {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.glg-page .hub-mode-pill {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 92px;
  padding: 15px 16px;
}

.glg-page .hub-mode-pill.is-active {
  color: #fff;
  background: linear-gradient(135deg, #617864 0%, #32483b 100%);
  border-color: rgba(50, 72, 59, 0.34);
}

.glg-page .hub-mode-pill.is-active span {
  color: rgba(255, 255, 255, 0.86);
}

.glg-emergency-panel span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--glg-clay);
}

.glg-page .hub-mode-pill strong,
.glg-emergency-panel strong {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 900;
  color: var(--glg-ink);
}

.glg-page .hub-mode-pill span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--glg-muted);
}

.glg-emergency-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.glg-emergency-panel a {
  display: flex;
  min-height: 136px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.glg-emergency-panel strong {
  font-size: 2rem;
  color: var(--glg-teal);
  letter-spacing: 0.02em;
}

.glg-hub-intro,
.glg-quick-strip {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin: 24px 0;
  padding: 24px 0;
  border-top: 1px solid var(--glg-border);
  border-bottom: 1px solid var(--glg-border);
}

.glg-wrap--hub .glg-hub-intro {
  grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1fr);
  gap: 18px;
  margin: 14px 0 18px;
  padding: 16px 0;
  align-items: center;
}

.glg-wrap--hub .glg-hub-intro h2 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.glg-wrap--hub .glg-hub-intro p {
  font-size: 0.88rem;
  line-height: 1.62;
}

.glg-hub-intro h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
  font-weight: 900;
}

.glg-hub-intro p {
  margin: 0;
  line-height: 1.78;
  color: var(--glg-muted);
  word-break: keep-all;
}

.glg-quick-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.glg-quick-strip div {
  padding: 18px;
  border: 1px solid var(--glg-border);
  border-radius: var(--glg-radius);
  background: rgba(255, 255, 255, 0.66);
}

.glg-quick-strip span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 900;
  color: var(--glg-clay);
}

.glg-quick-strip strong {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--glg-sage-dark);
}

.glg-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 42px 0 16px;
  font-size: 1.28rem;
  font-weight: 900;
  color: var(--glg-sage-dark);
}

.glg-section-title::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--glg-clay);
}

.glg-section-lead {
  margin: -8px 0 16px;
  max-width: 900px;
  font-size: 0.94rem;
  color: var(--glg-muted);
  line-height: 1.72;
  word-break: keep-all;
}

.glg-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.glg-step {
  position: relative;
  min-height: 230px;
  padding: 22px 18px;
  border: 1px solid var(--glg-border);
  border-radius: var(--glg-radius);
  background: rgba(255, 253, 249, 0.88);
  box-shadow: 0 8px 24px rgba(66, 48, 31, 0.05);
  overflow: hidden;
}

.glg-step::after {
  content: "";
  position: absolute;
  inset: auto -28px -42px auto;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(97, 120, 100, 0.1);
}

.glg-step-num {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--glg-sage);
  color: #fff;
  font-weight: 900;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.glg-step-num.is-last {
  background: linear-gradient(135deg, #b4534a, #d97745);
}

.glg-step h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--glg-sage-dark);
}

.glg-step ul {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.88rem;
  line-height: 1.62;
  color: var(--glg-muted);
}

.glg-diagram-figure,
.glg-flow,
.glg-search-panel,
.glg-table-wrap,
.glg-notice {
  border: 1px solid var(--glg-border);
  border-radius: var(--glg-radius);
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 10px 28px rgba(66, 48, 31, 0.06);
}

.glg-diagram-figure {
  margin: 20px 0 34px;
  overflow: hidden;
}

.glg-diagram-imgwrap {
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(97, 120, 100, 0.09), rgba(184, 120, 76, 0.08)),
    #fff;
  line-height: 0;
}

.glg-diagram-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.glg-diagram-caption {
  margin: 0;
  padding: 14px 18px 16px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--glg-muted);
  border-top: 1px solid var(--glg-border);
}

.glg-diagram-caption a,
.glg-org-banner-note a,
.glg-notice a,
.glg-official-link a {
  color: var(--glg-teal);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.glg-diagram-zoom {
  display: inline-block;
  margin-left: 6px;
  white-space: nowrap;
}

.glg-org-banner-note {
  margin: -8px 0 14px;
  font-size: 0.8rem;
  color: var(--glg-muted);
  line-height: 1.55;
}

.glg-org-banner {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}

.glg-org-banner-item {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  padding: 18px 10px;
  border: 1px solid var(--glg-border);
  border-radius: var(--glg-radius);
  background: rgba(255, 253, 249, 0.86);
  color: inherit;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.glg-org-banner-item:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.25);
  box-shadow: var(--glg-shadow);
}

.glg-org-banner-item:focus-visible,
.glg-page .hub-mode-pill:focus-visible,
.glg-emergency-panel a:focus-visible,
.glg-hub-card:focus-visible {
  outline: 2px solid var(--glg-teal);
  outline-offset: 3px;
}

.glg-org-banner-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(79, 63, 44, 0.08);
}

.glg-org-banner-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.glg-org-banner-title {
  margin: 0 0 10px;
  min-height: 42px;
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--glg-ink);
  line-height: 1.35;
}

.glg-org-banner-title-sub {
  font-weight: 900;
}

.glg-org-banner-contact {
  margin-top: auto;
}

.glg-org-banner-org {
  margin: 0 0 4px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--glg-muted);
}

.glg-org-banner-phone {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--glg-teal);
  letter-spacing: 0.02em;
}

.glg-flow {
  padding: 22px 24px;
  margin-bottom: 30px;
}

.glg-flow h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--glg-sage-dark);
}

.glg-flow ol {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.7;
  font-size: 0.92rem;
}

.glg-flow ol ul {
  margin: 6px 0 0;
  padding-left: 1.1rem;
}

.glg-search-panel {
  padding: 18px;
  margin-bottom: 12px;
}

.glg-search-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px 150px;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

.glg-search-field {
  min-width: 0;
}

.glg-search-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.74rem;
  font-weight: 900;
  color: var(--glg-muted);
}

.glg-search-field input,
.glg-search-field select {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid var(--glg-border-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--glg-ink);
  font-family: inherit;
  font-size: 0.92rem;
}

.glg-search-field input:focus,
.glg-search-field select:focus {
  border-color: var(--glg-teal);
  outline: 3px solid rgba(15, 118, 110, 0.16);
}

.glg-search-meta {
  margin: 0;
  font-size: 0.84rem;
  color: var(--glg-muted);
}

.glg-search-meta strong {
  color: var(--glg-teal);
  font-weight: 900;
}

.glg-table-wrap {
  overflow: auto;
  max-height: min(70vh, 650px);
}

.glg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.glg-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 14px;
  background: #eef2eb;
  color: var(--glg-sage-dark);
  text-align: left;
  font-weight: 900;
  white-space: nowrap;
}

.glg-table tbody td {
  padding: 11px 14px;
  border-top: 1px solid rgba(79, 63, 44, 0.1);
  vertical-align: top;
  line-height: 1.5;
}

.glg-table tbody tr:hover td {
  background: rgba(97, 120, 100, 0.06);
}

.glg-type-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.glg-type-integrated {
  background: #e8f2ec;
  color: var(--glg-sage-dark);
}

.glg-type-miso {
  background: #fff2cf;
  color: #8a4f13;
}

.glg-type-private {
  background: #e6f3f4;
  color: #0f5f66;
}

.glg-td-name {
  font-weight: 800;
  color: var(--glg-ink);
}

.glg-td-addr {
  min-width: 220px;
  color: var(--glg-muted);
}

.glg-td-tel {
  white-space: nowrap;
}

.glg-td-tel a {
  color: var(--glg-teal);
  font-weight: 900;
  text-decoration: none;
}

.glg-empty {
  padding: 34px 18px;
  text-align: center;
  color: var(--glg-muted);
  font-size: 0.92rem;
}

.glg-notice {
  margin-top: 28px;
  padding: 17px 18px;
  background: rgba(255, 248, 226, 0.92);
  border-color: rgba(214, 158, 46, 0.28);
  color: #704214;
  font-size: 0.84rem;
  line-height: 1.65;
}

.glg-official-link {
  margin-top: 22px;
  font-size: 0.92rem;
}

.glg-backlink {
  margin-top: 22px;
  font-size: 0.9rem;
}

.glg-backlink a {
  font-weight: 900;
  color: var(--glg-sage-dark);
  text-decoration: none;
}

.glg-backlink a:hover {
  text-decoration: underline;
}

.glg-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.glg-hub-card {
  position: relative;
  display: block;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--glg-border);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.95), rgba(255, 250, 241, 0.82)),
    radial-gradient(circle at 100% 0%, rgba(97, 120, 100, 0.13), transparent 36%);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(66, 48, 31, 0.08);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.glg-hub-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 120, 76, 0.28);
  box-shadow: var(--glg-shadow);
}

.glg-hub-card.is-muted {
  opacity: 0.72;
  pointer-events: none;
}

.glg-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.glg-hub-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--glg-sage), #8fa070);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.08rem;
}

.glg-card-topline span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.09);
  color: var(--glg-teal);
  font-size: 0.74rem;
  font-weight: 900;
}

.glg-hub-card h2 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.28;
  font-weight: 900;
  color: var(--glg-sage-dark);
}

.glg-hub-card p {
  margin: 0;
  max-width: 680px;
  color: var(--glg-muted);
  font-size: 0.84rem;
  line-height: 1.58;
  word-break: keep-all;
}

.glg-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.glg-card-metrics span {
  min-width: 58px;
  padding: 6px 9px;
  border-radius: 10px;
  background: #fff;
  color: var(--glg-teal);
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(79, 63, 44, 0.08);
}

.glg-hub-card .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.84rem;
  font-weight: 900;
  color: var(--glg-teal);
}

.glg-link-directory {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--glg-border);
}

.glg-directory-head {
  display: grid;
  grid-template-columns: minmax(230px, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 12px;
}

.glg-directory-head h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.28;
  font-weight: 900;
  color: var(--glg-sage-dark);
}

.glg-directory-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.glg-directory-summary p {
  margin: 0;
  color: var(--glg-muted);
  font-size: 0.86rem;
  line-height: 1.58;
  word-break: keep-all;
}

.glg-admin-shortcut {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--glg-sage-dark);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
}

.glg-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.glg-link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "tag out"
    "title title"
    "meta meta";
  gap: 6px 10px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--glg-border);
  border-radius: 12px;
  background: rgba(255, 253, 249, 0.82);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(66, 48, 31, 0.045);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.glg-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 14px 28px rgba(66, 48, 31, 0.08);
}

.glg-link-card:focus-visible {
  outline: 2px solid var(--glg-teal);
  outline-offset: 3px;
}

.glg-link-tag {
  grid-area: tag;
  justify-self: start;
  align-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(97, 120, 100, 0.1);
  color: var(--glg-sage-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.glg-link-card strong {
  grid-area: title;
  display: block;
  margin-top: 4px;
  font-size: 0.98rem;
  line-height: 1.32;
  font-weight: 900;
  color: var(--glg-ink);
  word-break: keep-all;
}

.glg-link-card em {
  grid-area: meta;
  display: block;
  color: var(--glg-muted);
  font-size: 0.8rem;
  line-height: 1.45;
  font-style: normal;
}

.glg-link-out {
  grid-area: out;
  justify-self: end;
  align-self: start;
  color: var(--glg-teal);
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
}

.glg-hub-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--glg-border);
  border-radius: var(--glg-radius);
  background: rgba(255, 255, 255, 0.58);
  color: var(--glg-muted);
  font-size: 0.82rem;
  line-height: 1.52;
}

.glg-hub-note i {
  margin-top: 2px;
  color: var(--glg-clay);
}

.glg-admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0 22px;
  border-bottom: 1px solid var(--glg-border);
}

.glg-admin-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.15;
  font-weight: 900;
}

.glg-admin-head p:last-child {
  margin: 0;
  color: var(--glg-muted);
  line-height: 1.6;
}

.glg-admin-back {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--glg-sage-dark);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  text-decoration: none;
}

.glg-admin-alert {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
}

.glg-admin-alert.is-success {
  background: #e8f2ec;
  color: var(--glg-sage-dark);
}

.glg-admin-alert.is-error {
  background: #fff1f2;
  color: #9f1239;
}

.glg-admin-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--glg-border);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: 0 10px 28px rgba(66, 48, 31, 0.06);
}

.glg-admin-panel h2 {
  margin: 0 0 14px;
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--glg-sage-dark);
}

.glg-admin-form {
  display: grid;
  grid-template-columns: minmax(140px, 0.45fr) minmax(180px, 0.75fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.glg-admin-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.glg-admin-form span {
  color: var(--glg-muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.glg-admin-form input {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 9px 11px;
  border: 1px solid var(--glg-border-strong);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.92rem;
}

.glg-admin-form input:focus {
  border-color: var(--glg-teal);
  outline: 3px solid rgba(15, 118, 110, 0.16);
}

.glg-admin-form-wide {
  grid-column: span 1;
}

.glg-admin-form button,
.glg-admin-inline-form button {
  border: 0;
  border-radius: 10px;
  background: var(--glg-teal);
  color: #fff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.glg-admin-form button {
  min-height: 42px;
  padding: 9px 14px;
}

.glg-admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.glg-admin-inline-form button {
  padding: 7px 9px;
}

.glg-admin-inline-form button[value="delete"] {
  background: #b4534a;
}

.glg-admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--glg-border);
  border-radius: 12px;
  background: #fff;
}

.glg-admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.glg-admin-table th,
.glg-admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(79, 63, 44, 0.1);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.glg-admin-table th {
  background: #eef2eb;
  color: var(--glg-sage-dark);
  font-weight: 900;
  white-space: nowrap;
}

.glg-admin-table a {
  color: var(--glg-teal);
  font-weight: 900;
}

@media (max-width: 980px) {
  .glg-hero,
  .glg-wrap--hub .glg-hero {
    grid-template-columns: 1fr;
  }

  .glg-process,
  .glg-org-banner,
  .glg-quick-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .glg-search-row {
    grid-template-columns: 1fr 1fr;
  }

  .glg-page .service-top-mode-switch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .glg-admin-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .glg-wrap {
    padding: 18px 12px 46px;
  }

  .glg-hero {
    padding: 12px 0 20px;
  }

  .glg-hero-left,
  .glg-wrap--hub .glg-hero-left {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .glg-hero-rail,
  .glg-wrap--hub .glg-hero-rail {
    min-height: 0;
    border-left: 0;
    border-bottom: 2px solid rgba(50, 72, 59, 0.22);
    padding: 0 0 10px;
  }

  .glg-hero-rail strong,
  .glg-wrap--hub .glg-hero-rail strong {
    writing-mode: horizontal-tb;
    font-size: 1.1rem;
  }

  .glg-hero h1 {
    font-size: 2rem;
  }

  .glg-emergency-panel,
  .glg-page .service-top-mode-switch,
  .glg-hub-intro,
  .glg-wrap--hub .glg-hub-intro,
  .glg-directory-head,
  .glg-quick-strip,
  .glg-process,
  .glg-org-banner,
  .glg-search-row {
    grid-template-columns: 1fr;
  }

  .glg-emergency-panel a {
    min-height: 0;
    padding: 14px;
  }

  .glg-hub-intro,
  .glg-quick-strip {
    gap: 12px;
    margin: 18px 0;
    padding: 18px 0;
  }

  .glg-step {
    min-height: 0;
  }

  .glg-org-banner-item {
    min-height: 0;
  }

  .glg-diagram-imgwrap {
    padding: 8px;
  }

  .glg-table {
    font-size: 0.76rem;
  }

  .glg-table thead th,
  .glg-table tbody td {
    padding: 9px 10px;
  }

  .glg-hub-card {
    min-height: 0;
    padding: 18px;
  }

  .glg-admin-head {
    display: grid;
    align-items: start;
  }

  .glg-admin-form {
    grid-template-columns: 1fr;
  }
}
