:root {
  font-family: 'DM Sans', 'Noto Sans KR', sans-serif;
  font-synthesis: none;
  color: #202d49;
  background: #eff4ff;
  --ink: #202d49;
  --muted: #71809b;
  --blue: #3262df;
  --border: #e0e7f3;
}

* { box-sizing: border-box; }
/* Room for the sticky header when jumping to #category links */
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; min-width: 280px; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(#f8faff22, #edf3ff22), url('assets/linkne-aurora-bg.png') center top / cover no-repeat;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #6c8cf4; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, p { word-break: keep-all; }
svg { display: block; width: 19px; height: 19px; flex-shrink: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 20px; padding: 14px 20px; background: white; border: 2px solid var(--blue); }
.skip-link:focus { top: 12px; }
.site-shell { max-width: 1280px; padding: 0 32px; margin: auto; }

/* Notice set in the admin settings */
.site-notice {
  margin-top: 18px;
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding: 11px 16px;
  background: #fffaf0f2; border: 1px solid #f3e2bb; border-radius: 12px; color: #6d5310; font-size: .875rem; line-height: 1.55;
}
.site-notice svg { width: 18px; height: 18px; color: #c28a0e; }
.site-notice span { flex: 1; }
.site-notice a { flex-shrink: 0; font-weight: 700; color: #7a5a0e; white-space: nowrap; }
.site-notice a:hover { text-decoration: underline; }

/* Brand and primary navigation: a full-width bar that stays at the top while scrolling */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #ffffffeb; border-bottom: 1px solid #e1e8f4; box-shadow: 0 4px 22px #39528a0d;
  backdrop-filter: saturate(1.4) blur(12px);
}
.header-inner {
  position: relative; display: grid; align-items: center; gap: 8px 22px; max-width: 1280px; min-height: 74px; margin: 0 auto; padding: 10px 32px;
  grid-template-columns: auto minmax(220px, 400px) minmax(0, 1fr) auto auto;
  grid-template-areas: "brand search trend nav submit";
}
.brand { grid-area: brand; }
.site-search { grid-area: search; }
.trending { grid-area: trend; }
.header-nav { grid-area: nav; }
.nav-submit { grid-area: submit; }
.brand { flex-shrink: 0; }
.brand img { width: 157px; height: auto; }
.header-nav { display: flex; align-items: center; gap: 26px; font-size: .9375rem; font-weight: 600; }
.header-nav a, .header-nav summary { padding: 11px 0; white-space: nowrap; }
.nav-item { color: #3b4a68; cursor: pointer; }
.nav-item:hover, .nav-dropdown[open] > summary { color: var(--blue); }

/* Site search */
.site-search { position: relative; display: flex; align-items: center; min-width: 0; height: 44px; background: #f3f6fc; border: 1px solid #dfe7f4; border-radius: 999px; transition: background .15s, border-color .15s, box-shadow .15s; }
.site-search:focus-within { background: white; border-color: #6c8cf4; box-shadow: 0 0 0 3px #6c8cf42e; }
.site-search input { flex: 1; min-width: 0; height: 100%; padding: 0 6px 0 18px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: .9375rem; outline: none; }
.site-search input::placeholder { color: #8f9bb1; }
.site-search button { display: grid; flex-shrink: 0; place-items: center; width: 38px; height: 38px; margin-right: 3px; border: 0; border-radius: 50%; background: var(--blue); color: white; cursor: pointer; }
.site-search button:hover { background: #2b56c8; }
.site-search button svg { width: 18px; height: 18px; }
.search-suggest { position: absolute; z-index: 35; top: calc(100% + 6px); left: 0; right: 0; min-width: 280px; padding: 6px; background: white; border: 1px solid #dfe7f5; border-radius: 14px; box-shadow: 0 18px 44px #2c49801f; }
.suggest-option { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 9px; color: var(--ink); font-size: .875rem; }
.suggest-option strong { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.suggest-option small { flex-shrink: 0; color: #8a97ae; font-size: .75rem; }
.suggest-option:hover, .suggest-option[aria-selected="true"] { background: #f1f5ff; color: var(--blue); }
.suggest-option:last-child { margin-top: 4px; border-top: 1px solid #edf1f8; border-radius: 0 0 9px 9px; color: var(--blue); }

/* 인기검색어: one term at a time, the full top 10 when opened */
.trending { position: relative; min-width: 0; }
.trending > summary { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 1px solid #e3e9f5; border-radius: 10px; background: #fbfcff; font-size: .875rem; list-style: none; cursor: pointer; }
.trending > summary::-webkit-details-marker { display: none; }
.trending > summary:hover, .trending[open] > summary { border-color: #c5d5f7; background: white; }
.trending > summary:focus-visible { outline: 3px solid #6c8cf4; outline-offset: 2px; }
.trending-label { flex-shrink: 0; color: #c2312c; font-size: .75rem; font-weight: 800; }
.trending-roll { position: relative; flex: 1; min-width: 0; height: 20px; margin: 0; padding: 0; overflow: hidden; list-style: none; }
.trending-roll li { position: absolute; inset: 0; display: flex; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap; opacity: 0; transform: translateY(100%); transition: opacity .35s, transform .35s; }
.trending-roll li.is-current { opacity: 1; transform: none; }
.trending-roll b { color: var(--blue); font-weight: 800; }
.trending-chevron { width: 15px; height: 15px; color: #8a97ae; transition: transform .15s; }
.trending[open] .trending-chevron { transform: rotate(180deg); }
.trending-panel { position: absolute; z-index: 35; top: calc(100% + 6px); right: 0; width: 300px; padding: 14px 12px 8px; background: white; border: 1px solid #dfe7f5; border-radius: 14px; box-shadow: 0 18px 44px #2c49801f; }
.trending-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 4px 6px; font-size: .875rem; }
.trending-title small { color: #8a97ae; font-size: .75rem; }
.trending-list { display: grid; margin: 0; padding: 0; list-style: none; }
.trending-list a { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 8px; color: var(--ink); font-size: .875rem; }
.trending-list a:hover { background: #f1f5ff; color: var(--blue); }
.trending-rank { width: 18px; flex-shrink: 0; color: #8a97ae; font-weight: 800; text-align: center; }
.trending-rank.is-top { color: var(--blue); }
.trending-query { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trend-change { flex-shrink: 0; font-size: .6875rem; font-weight: 700; }
.trend-change.is-up, .trend-change.is-new { color: #c2312c; }
.trend-change.is-down { color: #2b56c8; }
.trend-change.is-same { color: #a0adc2; }

/* Header "카테고리" dropdown (details/summary, works without JavaScript) */
.nav-dropdown > summary { display: inline-flex; align-items: center; gap: 4px; list-style: none; }
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary:focus-visible { outline: 3px solid #6c8cf4; outline-offset: 4px; border-radius: 6px; }
.nav-chevron { width: 15px; height: 15px; transition: transform .15s; }
.nav-dropdown[open] .nav-chevron { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute; z-index: 30; top: calc(100% + 6px); right: 32px; width: min(640px, calc(100% - 64px)); padding: 14px;
  background: white; border: 1px solid #dfe7f5; border-radius: 14px; box-shadow: 0 18px 44px #2c49801f;
}
.dropdown-panel ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 2px; margin: 0; padding: 0; list-style: none; }
.dropdown-panel li a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink); font-size: .875rem; font-weight: 500; }
.dropdown-panel li a:hover { background: #f1f5ff; color: var(--blue); }
.menu-icon { width: 24px; height: 24px; flex: none; object-fit: contain; }
.dropdown-all { display: block; margin-top: 8px; padding: 10px 10px 2px; border-top: 1px solid #edf1f8; color: var(--blue); font-size: .8125rem; font-weight: 700; }
.header-nav .header-active { color: var(--blue); font-weight: 700; }
.header-nav a:hover { color: var(--blue); }
.nav-submit { display: inline-flex; white-space: nowrap; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 999px; color: var(--blue); background: #edf2ff; border: 1px solid #dde6fb; font-weight: 600; transition: background .15s, border-color .15s; }
.nav-submit:hover { background: #e2eaff; border-color: #c9d7fa; }
.nav-submit.header-active { color: white; background: #3766de; border-color: #3766de; }
.nav-submit svg { width: 15px; height: 15px; }

/* Generated banner artwork; editable text remains native HTML */
.brand-banner {
  position: relative; overflow: hidden; isolation: isolate; min-height: 302px;
  margin-top: 23px; border-radius: 19px; background: #050f2b;
  box-shadow: 0 12px 30px #253d7618; color: white;
}
.banner-image { position: absolute; z-index: -2; right: 0; top: 0; width: 84%; height: 100%; object-fit: cover; object-position: right center; }
.banner-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #060e2df0 0%, #060e2d6e 39%, #07133500 70%); }
.banner-content { padding: 32px 41px 30px; max-width: 66%; }
.banner-eyebrow { display: flex; align-items: center; gap: 7px; color: #b8cbff; font-size: .75rem; letter-spacing: .11em; font-weight: 500; }
.banner-eyebrow > span { color: #bdd6ff; font-size: 1rem; }
.brand-banner h1 { margin-top: 14px; font-size: 2.125rem; letter-spacing: -1.3px; font-weight: 600; line-height: 1.45; }
.brand-banner h1 strong { font-weight: 750; color: #c4d6ff; }
.brand-banner p { margin-top: 12px; color: #afbfdf; font-size: .875rem; line-height: 1.8; }
.mobile-break { display: none; }
.banner-link { display: inline-flex; align-items: center; gap: 20px; font-size: .75rem; font-weight: 500; margin-top: 22px; color: #dce6ff; }
.banner-link > span { font-size: 1.125rem; color: #a8c5ff; transition: transform .2s; }
.banner-link:hover > span { transform: translate(2px,-2px); }
.banner-signature { position: absolute; bottom: 21px; right: 29px; color: #bfd5ff99; font-size: .625rem; letter-spacing: .1em; }

/* The chosen white / blue category navigation */

/* Reference-style category containers */
.directory { padding-top: 29px; }
.directory-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.directory-heading > div { display: flex; align-items: center; gap: 9px; }
.section-icon { color: var(--blue); }
.section-icon svg { width: 17px; height: 17px; }
.directory-heading h2 { font-size: 1rem; letter-spacing: -.4px; font-weight: 700; }
.directory-total { font-size: .75rem; color: #8190a9; margin-left: 3px; }
.open-hint { display: flex; gap: 8px; align-items: center; font-size: .75rem; color: #8795ac; }
.open-hint > span { font-size: .875rem; }
.category-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; align-items: start; }
.category-card {
  background: #fffffffa; border: 1px solid #dce5f4; border-radius: 13px; overflow: hidden;
  box-shadow: 0 4px 15px #31508306; scroll-margin-top: 20px; transition: border-color .2s, box-shadow .2s;
}
.category-card:hover { border-color: #b5c8ef; box-shadow: 0 7px 23px #3150830e; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 14px; min-height: 62px; border-bottom: 1px solid #e6ecf7; background: linear-gradient(110deg,#f9fbff,#fff); }
.card-heading h3 { display: flex; align-items: center; gap: 9px; font-size: .9375rem; letter-spacing: -.3px; font-weight: 650; }
.category-icon { width: 28px; height: 28px; flex: none; object-fit: contain; }
.count-badge { font-size: .75rem; line-height: 1.5; color: #6884bd; background: #eff4ff; border: 1px solid #e8eefb; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.ranked-links { list-style: none; margin: 0; padding: 4px 14px; }
.ranked-links li { border-bottom: 1px solid #edf1f8; }
.ranked-links li:nth-child(8) { border-bottom-color: transparent; }
.category-card.is-expanded .ranked-links li:nth-child(8) { border-bottom-color: #edf1f8; }
.category-card:not(.is-expanded) .is-extra { display: none; }
.ranked-links li:last-child { border-bottom: 0; }
.site-link { display: flex; align-items: center; gap: 9px; padding: 10px 0; min-height: 43px; transition: background .15s; }
.rank { display: inline-flex; align-items: center; justify-content: center; width: 20px; flex-shrink: 0; color: #a0adc2; font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-1, .rank-2, .rank-3 { font-family: 'Segoe UI Emoji', sans-serif; font-size: 1rem; font-weight: 400; }
.link-name { font-size: .875rem; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; word-break: normal; }
.ranked-links li:first-child .link-name { color: #3861ae; font-weight: 700; }
.ranked-links li:nth-child(2) .link-name { color: #70829e; }
.ranked-links li:nth-child(3) .link-name { color: #607da9; }
.external-arrow { margin-left: auto; color: #b5c1d5; width: 12px; height: 12px; transition: color .15s, transform .15s; }
.site-link:hover .link-name { color: #2b5bcf; }
.site-link:hover .external-arrow { color: #5f84db; transform: translate(1px,-1px); }
.more-button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 42px; padding: 11px; color: #6883b7; background: #f8faff; border: 0; border-top: 1px solid #e5ecf9; font-size: .875rem; font-weight: 500; cursor: pointer; transition: background .15s; }
.more-button:hover { background: #edf3ff; color: #3663c3; }
.chevron { width: 12px; height: 12px; transition: transform .15s; }
.more-button[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.catalog-status { padding: 25px; background: white; border: 1px solid var(--border); border-radius: 12px; font-size: 1rem; line-height: 1.8; }

.closing-note { display: flex; align-items: center; gap: 13px; border: 1px solid #d7e3fa; border-radius: 11px; padding: 21px 26px; margin-top: 27px; background: #edf3ffba; }
.note-symbol { color: #789be5; font-size: 1.4rem; }
.closing-note p { font-size: .875rem; color: #7f90ad; line-height: 1.8; }
.closing-note strong { color: #526eaa; font-weight: 500; margin-left: 9px; }
.closing-note > a { color: #5e7dba; white-space: nowrap; font-size: .875rem; }
.closing-note > a span { margin-left: 10px; }
.closing-note .note-action { margin-left: auto; padding: 10px 16px; border-radius: 999px; background: #3766de; color: white; font-weight: 600; box-shadow: 0 3px 7px #3262df24; transition: background .15s; }
.closing-note .note-action:hover { background: #2b56c8; }
.closing-note .to-top { margin-left: 8px; padding: 10px 4px; }
.site-footer { display: flex; align-items: center; gap: 18px; padding: 26px 0 30px; color: #91a0ba; }
.footer-brand img { width: 95px; height: auto; opacity: .65; }
.site-footer > span, .site-footer small { font-size: .75rem; }
.site-footer small { margin-left: auto; }
.noscript-note { max-width: 900px; margin: 30px auto; padding: 20px; background: white; }

/* Submission and message pages */
.subpage { padding-top: 23px; }
.page-panel { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
.form-card, .side-card { background: #fffffffa; border: 1px solid #dce5f4; border-radius: 13px; box-shadow: 0 4px 15px #31508306; }
.form-card { padding: 32px 36px 36px; }
.message-card { max-width: 640px; margin: 0 auto; }
.page-eyebrow { display: flex; align-items: center; gap: 7px; color: #6a86c8; font-size: .75rem; letter-spacing: .11em; font-weight: 600; }
.page-eyebrow > span { color: #789be5; font-size: .9375rem; }
.form-card h1 { margin-top: 10px; font-size: 1.625rem; letter-spacing: -.8px; font-weight: 700; }
.form-lead { margin-top: 8px; color: var(--muted); font-size: .9375rem; line-height: 1.7; }
.submit-form { margin-top: 8px; }
.field { display: grid; gap: 7px; margin-top: 20px; }
.field > label { font-size: .875rem; font-weight: 600; }
.field .optional { margin-left: 6px; padding: 1px 6px; border-radius: 4px; background: #f0f3f9; color: #8793a8; font-size: .6875rem; font-weight: 500; vertical-align: 1px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .9375rem; color: var(--ink);
  background: #fbfcff; border: 1px solid #d5dfef; border-radius: 9px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 112px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #a7b2c5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: white; border-color: #6c8cf4; box-shadow: 0 0 0 3px #6c8cf42e; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d7574f; }
.field-hint { font-size: .75rem; color: #8d99ad; }
.field-error { font-size: .8125rem; font-weight: 500; color: #c2413b; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 26px; }
.form-privacy { font-size: .75rem; color: #8d99ad; }
.button-primary, .button-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px;
  border-radius: 9px; font-size: .9375rem; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s;
}
.button-primary { color: white; background: #3766de; border: 0; box-shadow: 0 3px 7px #3262df24; }
.button-primary:hover { background: #2b56c8; }
.button-primary svg { width: 16px; height: 16px; }
.button-secondary { color: #3d5f9f; background: white; border: 1px solid #d5dfef; }
.button-secondary:hover { border-color: #b5c8ef; background: #f6f9ff; }
.form-alert { margin-top: 20px; padding: 13px 16px; border-radius: 9px; font-size: .875rem; line-height: 1.6; }
.form-alert.is-error { color: #9f3a33; background: #fff4f3; border: 1px solid #f3d0cd; }
.submit-done { margin-top: 26px; padding: 28px; text-align: center; background: #f5f8ff; border: 1px solid #dde6f8; border-radius: 12px; }
.submit-done .done-icon { width: 44px; height: 44px; margin: 0 auto; color: #3766de; }
.submit-done h2 { margin-top: 14px; font-size: 1.1875rem; letter-spacing: -.4px; }
.submit-done p { margin-top: 6px; color: var(--muted); font-size: .9375rem; line-height: 1.7; }
.submit-done .form-actions { justify-content: center; }
.side-card { padding: 24px 24px 26px; }
.side-card h2 { font-size: 1rem; letter-spacing: -.3px; }
.guide-list { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.guide-list li { position: relative; padding-left: 18px; color: #5f6f8c; font-size: .875rem; line-height: 1.65; word-break: keep-all; }
.guide-list li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #9db4ee; }

@media (max-width: 1200px) {
  .site-shell { padding: 0 25px; }
  .header-inner { padding-left: 25px; padding-right: 25px; }
  .dropdown-panel { right: 25px; width: min(640px, calc(100% - 50px)); }
  .card-heading { padding-left: 12px; padding-right: 12px; }
  .card-heading h3 { font-size: .875rem; gap: 7px; }
  .ranked-links { padding-left: 12px; padding-right: 12px; }
  .banner-content { max-width: 70%; }
}
@media (max-width: 1100px) {
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "brand search submit" "nav nav trend"; row-gap: 6px; padding-top: 10px; padding-bottom: 8px; }
  .header-nav { justify-self: start; }
  .trending { justify-self: end; width: min(320px, 100%); }
}
@media (max-width: 1020px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .banner-content { padding-left: 32px; }
  .brand-banner h1 { font-size: 2rem; }
  .banner-image { width: 100%; }
  .banner-shade { background: linear-gradient(90deg,#060e2de8,#060e2d77 48%,#07133500 85%); }
  .open-hint { display: none; }
  .closing-note strong { display: block; margin: 0; }
  .page-panel { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-shell { padding: 0 20px; }
  .header-inner { min-height: 66px; padding: 8px 20px; }
  .dropdown-panel { right: 20px; width: calc(100% - 40px); }
  .brand img { width: 138px; }
  .header-nav { gap: 20px; }
  .brand-banner { margin-top: 18px; min-height: 285px; border-radius: 15px; }
  .banner-content { max-width: 79%; padding: 28px; }
  .brand-banner h1 { font-size: 1.875rem; letter-spacing: -1px; }
  .brand-banner p { font-size: .875rem; }
  .banner-image { width: 100%; object-position: 70% center; opacity: .83; }
  .banner-shade { background: linear-gradient(90deg,#060e2deb,#060e2db0 45%,#07133533); }
  .banner-signature { display: none; }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
  .card-heading { padding: 13px 14px; }
  .card-heading h3 { font-size: .9375rem; }
  .site-link { min-height: 44px; }
  .more-button { min-height: 44px; }
  .directory-total { display: none; }
  .closing-note { padding: 17px 20px; }
  .site-footer { gap: 12px; flex-wrap: wrap; }
  .site-footer small { width: 100%; margin: 0; }
}
@media (max-width: 520px) {
  html { scroll-padding-top: 16px; }
  .site-header { position: relative; }
  .header-inner { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "brand submit" "search search" "nav trend"; gap: 8px 12px; }
  .nav-submit { justify-self: end; }
  .header-nav { gap: 16px; font-size: .875rem; }
  .trending { justify-self: end; width: 100%; max-width: 230px; }
  .trending-label { display: none; }
  .trending-panel { position: fixed; top: auto; right: 16px; left: 16px; width: auto; margin-top: 6px; }
  .post-grid { grid-template-columns: 1fr; }
  .post { padding: 22px 18px 28px; }
  .post h1 { font-size: 1.5rem; }
  .search-result { padding-right: 10px; }
  .result-category { display: none; }
  .search-trending .trending-list { grid-template-columns: 1fr; }
  .site-shell { padding: 0 16px; }
  .header-inner { padding: 8px 16px 4px; }
  .dropdown-panel { right: 16px; width: calc(100% - 32px); }
  .dropdown-panel { max-height: calc(100vh - 130px); overflow-y: auto; padding: 10px; }
  .dropdown-panel ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dropdown-panel li a { gap: 7px; padding: 8px 6px; font-size: .8125rem; }
  .menu-icon { width: 22px; height: 22px; }
  .brand img { width: 126px; }
  .nav-submit { padding: 8px 12px; }
  .brand-banner { min-height: 292px; }
  .banner-content { max-width: 100%; padding: 25px 23px; }
  .banner-eyebrow { font-size: .75rem; letter-spacing: .045em; }
  .brand-banner h1 { font-size: 1.8rem; margin-top: 17px; line-height: 1.5; }
  .brand-banner p { font-size: .875rem; margin-top: 12px; }
  .mobile-break { display: block; }
  .banner-link { margin-top: 21px; font-size: .875rem; gap: 12px; }
  .banner-image { object-position: 72% center; opacity: .65; }
  .banner-shade { background: linear-gradient(90deg,#050e2ee8,#050e2ebd 50%,#09153750); }
  /* Phones: two compact columns of category cards */
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .directory { padding-top: 25px; }
  .category-card { border-radius: 11px; }
  .card-heading { gap: 4px; min-height: 50px; padding: 10px; }
  .card-heading h3 { min-width: 0; gap: 6px; font-size: .8125rem; letter-spacing: -.4px; }
  .card-heading h3 .category-icon { width: 22px; height: 22px; }
  .count-badge { padding: 1px 5px; font-size: .6875rem; }
  .ranked-links { padding: 2px 10px; }
  .site-link { min-height: 40px; padding: 9px 0; gap: 6px; }
  .rank { width: 16px; font-size: .6875rem; }
  .rank-1, .rank-2, .rank-3 { font-size: .875rem; }
  .link-name { min-width: 0; overflow: hidden; font-size: .8125rem; text-overflow: ellipsis; white-space: nowrap; }
  .external-arrow { display: none; }
  .more-button { min-height: 40px; padding: 9px; font-size: .8125rem; }
  .closing-note { padding: 16px; flex-wrap: wrap; }
  .closing-note p { flex: 1; }
  .subpage { padding-top: 18px; }
  .form-card { padding: 24px 20px 26px; }
  .form-card h1 { font-size: 1.4375rem; }
  .form-actions .button-primary, .form-actions .button-secondary { flex: 1 1 100%; }
  .side-card { padding: 20px; }
  .closing-note .note-action { margin-left: 32px; }
}
@media (max-width: 350px) {
  .site-shell { padding-left: 12px; padding-right: 12px; }
  .header-inner { padding-left: 12px; padding-right: 12px; }
  .brand-banner h1 { font-size: 1.6rem; }
  .banner-content { padding-left: 20px; padding-right: 20px; }
  .banner-eyebrow { font-size: .75rem; letter-spacing: 0; }
  .site-footer > span { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Search results */
.search-head h1 { font-size: 1.5rem; letter-spacing: -.6px; }
.search-head h1 strong { color: var(--blue); }
.search-head p { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.search-results { display: grid; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.search-result { display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; background: #fffffffa; border: 1px solid #dce5f4; border-radius: 12px; }
.result-link { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; padding: 10px; border-radius: 10px; }
.result-link:hover strong { color: var(--blue); }
.result-icon { width: 32px; height: 32px; flex: none; object-fit: contain; }
.result-main { display: grid; gap: 2px; min-width: 0; }
.result-main strong { font-weight: 700; }
.result-main small { overflow: hidden; color: #8190a9; font-size: .8125rem; text-overflow: ellipsis; white-space: nowrap; }
.result-category { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; background: #eff4ff; color: #5a6c90; font-size: .75rem; font-weight: 600; }
.result-category:hover { color: var(--blue); }
.search-posts, .search-trending, .search-empty { margin-top: 20px; padding: 20px 22px; background: #fffffffa; border: 1px solid #dce5f4; border-radius: 12px; }
.search-posts h2, .search-trending h2 { margin-bottom: 10px; font-size: 1rem; }
.search-posts ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.search-posts a { display: grid; gap: 3px; padding: 9px 8px; border-radius: 8px; }
.search-posts a:hover { background: #f5f8ff; }
.search-posts a:hover strong { color: var(--blue); }
.search-posts span { color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.search-empty p { line-height: 1.7; }
.search-empty p + p { margin-top: 4px; color: var(--muted); font-size: .9375rem; }
.search-empty a { color: var(--blue); font-weight: 700; }
.search-trending .trending-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }

/* Blog */
.blog-head { margin-bottom: 20px; }
.blog-head h1 { margin-top: 8px; font-size: 1.75rem; letter-spacing: -.8px; }
.blog-head p { margin-top: 6px; color: var(--muted); font-size: .9375rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-card a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px; background: #fffffffa; border: 1px solid #dce5f4; border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.post-card a:hover { border-color: #b5c8ef; box-shadow: 0 7px 23px #3150830e; }
.post-card a:hover h2 { color: var(--blue); }
.post-card h2 { font-size: 1.0625rem; line-height: 1.5; letter-spacing: -.3px; }
.post-card p { display: -webkit-box; flex: 1; overflow: hidden; color: #5d6b86; font-size: .875rem; line-height: 1.7; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px; color: #8a97ae; font-size: .75rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 26px; color: var(--muted); font-size: .875rem; }
.pagination a { color: var(--blue); font-weight: 700; }
.post { max-width: 780px; margin: 0 auto; padding: 32px 38px 40px; background: #fffffffa; border: 1px solid #dce5f4; border-radius: 16px; box-shadow: 0 4px 15px #31508306; }
.back-to { color: var(--blue); font-size: .875rem; font-weight: 600; }
.post h1 { margin-top: 14px; font-size: 1.875rem; line-height: 1.4; letter-spacing: -.8px; }
.post > .post-meta { margin-top: 10px; font-size: .8125rem; }
.post-summary { margin-top: 18px; padding: 14px 16px; background: #f5f8ff; border-radius: 10px; color: #4a5875; line-height: 1.7; }
.post-body { margin-top: 26px; color: #2c3a57; font-size: 1rem; line-height: 1.85; word-break: keep-all; overflow-wrap: anywhere; }
.post-body > * + * { margin-top: 1em; }
.post-body h2 { margin-top: 1.8em; font-size: 1.3rem; letter-spacing: -.4px; }
.post-body h3 { margin-top: 1.5em; font-size: 1.1rem; }
.post-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li + li { margin-top: .3em; }
.post-body blockquote { margin-left: 0; margin-right: 0; padding: 10px 16px; border-left: 3px solid #b9cbf5; background: #f7f9ff; color: #4a5875; }
.post-body code { padding: 1px 6px; border-radius: 5px; background: #eef2fa; font-size: .9em; }
.post-body hr { margin: 1.6em 0; border: 0; border-top: 1px solid #e6ecf7; }
.post-more { max-width: 780px; margin: 20px auto 0; padding: 20px 24px; background: #fffffffa; border: 1px solid #dce5f4; border-radius: 14px; }
.post-more h2 { font-size: 1rem; }
.post-more ul { margin: 8px 0 0; padding: 0; list-style: none; }
.post-more a { display: grid; gap: 4px; padding: 11px 0; border-bottom: 1px solid #edf1f8; }
.post-more li:last-child a { border-bottom: 0; }
.post-more a:hover strong { color: var(--blue); }

/* Blank rows keep short cards as tall as full ones */
.ranked-links li.is-empty .site-link { pointer-events: none; }
