/* ==========================================================================
   resume.appcafe.in design system
   Fonts: Space Grotesk (display) + Inter (body), loaded in _Layout.
   ========================================================================== */

:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --brand: #4f46e5;
  --brand-deep: #4338ca;
  --brand-2: #06b6d4;
  --brand-gradient: linear-gradient(120deg, #4f46e5 0%, #7c3aed 55%, #06b6d4 130%);
  --surface: #f6f7fb;
  --card-border: #e8eaf2;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 10px 30px -10px rgba(79, 70, 229, .25), 0 4px 12px rgba(15, 23, 42, .06);
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

html { font-size: 15px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(124, 58, 237, .08), transparent 60%),
    radial-gradient(900px 420px at -10% 0%, rgba(6, 182, 212, .07), transparent 55%),
    var(--surface);
}

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5, .navbar-brand, .display-5, .display-6 {
  font-family: var(--font-display);
  letter-spacing: -.01em;
}

a { color: var(--brand-deep); }
a:hover { color: var(--brand); }

/* ------------------------------------------------------------------ header
   Matches the AppCafe Tools header: sticky 56px bar, system-font wordmark,
   theme toggle, mobile bottom sheet. */

.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center;
  padding: 0 1.5rem;
  height: 56px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
}
[data-theme="light"] .site-header {
  background: var(--brand-deep);
  border-bottom-color: var(--brand-deep);
}

.logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; flex-shrink: 0; }
.logo-icon { display: block; }
.logo-word {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.15rem; font-weight: 700; color: #fff; letter-spacing: -.3px;
}
.logo-app { color: #fff; }
.logo-cafe { color: rgba(255, 255, 255, .75); }

.nav-desktop { display: flex; align-items: center; gap: .25rem; flex: 1; margin-left: 1.5rem; }
.nav-plain {
  font-size: .875rem; font-weight: 600;
  color: #cbd5e1; text-decoration: none; opacity: .9;
  padding: .3rem .65rem; border-radius: 6px;
  transition: opacity .15s, background .15s;
}
.nav-plain:hover { color: #fff; background: rgba(255, 255, 255, .08); opacity: 1; }
[data-theme="light"] .nav-plain { color: rgba(255, 255, 255, .85); }
[data-theme="light"] .nav-plain:hover { color: #fff; }
.nav-button { border: none; background: transparent; }
.nav-divider { width: 1px; height: 20px; background: rgba(255, 255, 255, .3); margin: 0 .25rem; }

.theme-toggle {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 20px;
  cursor: pointer;
  padding: .25rem .5rem;
  font-size: .85rem;
  line-height: 1;
  transition: background .2s;
  display: flex; align-items: center;
}
.theme-toggle:hover { background: rgba(255, 255, 255, .18); }
.theme-icon-dark { display: block; }
.theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="light"] .theme-icon-light { display: block; }
.theme-toggle-mobile { display: none; margin-left: auto; }

.nav-hamburger {
  display: none;
  background: transparent; border: none; color: #cbd5e1;
  padding: .35rem; margin-left: .4rem; cursor: pointer;
}

/* mobile bottom sheet */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 1040;
  background: rgba(0, 0, 0, .45);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }
.nav-mobile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050;
  background: #1e293b; border-top: 1px solid #334155;
  border-radius: 16px 16px 0 0;
  padding: .5rem 1rem calc(1rem + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .3s ease;
  max-height: 75vh; overflow-y: auto;
}
.nav-mobile.open { transform: none; }
.mob-handle { width: 42px; height: 4px; border-radius: 2px; background: #475569; margin: .35rem auto .75rem; }
.mob-item {
  display: block; padding: .65rem .5rem; border-radius: 8px;
  color: #e2e8f0; font-weight: 600; text-decoration: none;
}
.mob-item:active { background: rgba(255, 255, 255, .06); color: #fff; }
.mob-divider { height: 1px; background: #334155; margin: .5rem 0; }
.mob-plain { display: block; padding: .55rem .5rem; color: #94a3b8; text-decoration: none; font-size: .92rem; }
[data-theme="light"] .nav-mobile { background: #fff; border-top-color: #e0e7ff; }
[data-theme="light"] .mob-handle { background: #c7d2fe; }
[data-theme="light"] .mob-item { color: #1e293b; }
[data-theme="light"] .mob-item:active { background: #eef2ff; }
[data-theme="light"] .mob-divider { background: #e0e7ff; }
[data-theme="light"] .mob-plain { color: #64748b; }

@media (max-width: 767px) {
  .nav-desktop { display: none; }
  .theme-toggle-mobile { display: flex; }
  .nav-hamburger { display: block; }
}

/* ------------------------------------------------------------------ powered bar
   Static bottom bar, same as tools.appcafe.in. */

.site-main { padding-bottom: 4.5rem !important; }

.powered-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(15, 23, 42, .92);
  border-top: 1px solid #1e293b;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem 1rem;
  gap: 1rem;
}
.powered-pages { display: flex; align-items: center; gap: 1rem; }
.powered-pages a {
  font-size: .75rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color .15s;
}
.powered-pages a:hover { color: #e2e8f0; }
.powered-link {
  display: inline-flex; align-items: center; gap: .4rem;
  text-decoration: none; color: inherit; flex-shrink: 0;
}
.powered-icon { border-radius: 4px; display: block; }
.powered-label {
  font-size: .68rem; font-weight: 500;
  letter-spacing: .07em; text-transform: uppercase;
  color: #94a3b8;
}
.powered-brand { font-size: .8rem; font-weight: 700; color: #e2e8f0; }
.powered-link:hover .powered-brand { color: #a5b4fc; }

[data-theme="light"] .powered-bar {
  background: var(--brand-deep);
  border-top-color: var(--brand-deep);
}
[data-theme="light"] .powered-pages a { color: rgba(255, 255, 255, .7); }
[data-theme="light"] .powered-pages a:hover { color: #fff; }
[data-theme="light"] .powered-label { color: rgba(255, 255, 255, .6); }
[data-theme="light"] .powered-brand { color: #fff; }
[data-theme="light"] .powered-link:hover .powered-brand { color: #c7d2fe; }

/* ------------------------------------------------------------------ buttons */

.btn { border-radius: 10px; font-weight: 600; transition: all .18s ease; }

.btn-primary {
  background: var(--brand-gradient);
  border: none;
  box-shadow: 0 4px 14px rgba(79, 70, 229, .35);
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(120deg, #4338ca 0%, #6d28d9 55%, #0891b2 130%);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(79, 70, 229, .42);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline-primary { color: var(--brand-deep); border-color: #c7d2fe; }
.btn-outline-primary:hover {
  background: #eef2ff; border-color: var(--brand); color: var(--brand-deep);
}
.btn-outline-secondary { border-color: #d7dbe7; color: var(--ink-soft); }
.btn-outline-secondary:hover { background: #eef0f6; color: var(--ink); border-color: #c3c9d9; }
.btn-outline-secondary.active {
  background: var(--ink); border-color: var(--ink); color: #fff;
}

/* ------------------------------------------------------------------ cards */

.card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card-footer { border-top-color: var(--card-border); border-radius: 0 0 var(--radius) var(--radius) !important; }
.card-header {
  background: #fbfbfe;
  border-bottom-color: var(--card-border);
  font-family: var(--font-display);
  font-weight: 600;
}

/* lift only interactive gallery/dashboard cards */
.template-card .card:hover,
.row > [class*="col"] > .card.h-100:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* --------------------------------------------------------------- badges etc. */

.badge { font-weight: 600; letter-spacing: .02em; }
.badge.text-bg-warning { background: linear-gradient(100deg, #f59e0b, #f97316) !important; color: #fff !important; }
.badge.text-bg-success { background: linear-gradient(100deg, #10b981, #06b6d4) !important; }

.alert { border-radius: 12px; border-width: 1px; }
.alert-info {
  background: linear-gradient(100deg, #eef2ff, #ecfeff);
  border-color: #c7d2fe;
  color: #3730a3;
}
.alert-info .alert-link, .alert-info a { color: #4338ca; }

/* ------------------------------------------------------------- accordion */

.accordion { --bs-accordion-border-radius: var(--radius); }
.accordion-item { border-color: var(--card-border); }
.accordion-item:first-of-type, .accordion-item:last-of-type { border-radius: var(--radius); }
.accordion-button {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.accordion-button:not(.collapsed) {
  background: linear-gradient(100deg, #eef2ff, #f5f3ff);
  color: var(--brand-deep);
  box-shadow: inset 0 -1px 0 var(--card-border);
}
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .15); }

/* ------------------------------------------------------------- forms */

.form-control, .form-select {
  border-radius: 10px;
  border-color: #dfe3ee;
}
.form-control:focus, .form-select:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .12);
}
.form-label { font-weight: 500; color: var(--ink-soft); font-size: .92rem; }

/* ------------------------------------------------------------- tables */

.table { --bs-table-hover-bg: #f4f5fb; }
.table thead th {
  font-family: var(--font-display);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  border-bottom-width: 2px;
}

/* ------------------------------------------------------------- gallery */

/* Category/audience badges on template cards — visible on both themes */
.template-cat-badge {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  font-weight: 500;
}

.template-thumb {
  height: 195px;
  background: linear-gradient(160deg, #eef1f8, #e4e8f4) !important;
}
.template-thumb-img {
  height: 100%;
  width: auto;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .18);
  transition: transform .25s ease;
}
.template-card .card:hover .template-thumb-img { transform: scale(1.045) rotate(-.7deg); }

.preview-frame { height: 75vh; min-height: 420px; border-radius: var(--radius); }

/* ------------------------------------------------------------- landing hero */

.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 700;
  line-height: 1.12;
}
.hero-title .gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-check { color: #059669; font-weight: 700; margin-right: .4rem; }

.feature-card {
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: #fff;
  padding: 1.25rem 1.25rem 1.1rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; margin-bottom: .7rem; color: #fff;
  background: var(--brand-gradient);
  box-shadow: 0 4px 12px rgba(79, 70, 229, .35);
}

/* floating mock resume */
.resume-hero {
  max-width: 290px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  animation: heroFloat 5.5s ease-in-out infinite;
  box-shadow: 0 24px 50px -18px rgba(49, 46, 129, .4);
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(1.2deg); }
  50% { transform: translateY(-12px) rotate(-.6deg); }
}
.resume-hero .hero-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: .5rem;
}
.resume-hero .hero-heading {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-deep); margin: .8rem 0 .3rem;
}
.resume-hero .hero-line { height: 6px; background: #e9ecf5; border-radius: 3px; margin-bottom: .35rem; }
@media (prefers-reduced-motion: reduce) { .resume-hero { animation: none; } }

/* ------------------------------------------------------------- preview include panel */

.include-panel {
  max-height: 46vh;
  overflow-y: auto;
}
.include-section { margin-top: .55rem; }
.include-section:first-child { margin-top: .1rem; }
.include-entry {
  margin-left: 1.4rem;
  transition: opacity .15s ease;
}
.include-entry .form-check-label { color: var(--ink-soft); }

/* ------------------------------------------------------------- editor */

.editor-accordion .accordion-item {
  animation: sectionIn .3s ease both;
}
@keyframes sectionIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.editor-accordion .sec-icon { margin-right: .55rem; }

.section-chooser {
  background: linear-gradient(120deg, #ffffff 60%, #f4f2ff);
}

.section-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1.5px dashed #c9cfdd;
  background: #fff;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: .35rem .85rem;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s ease;
}
.section-chip:hover { border-color: var(--brand); color: var(--brand-deep); transform: translateY(-1px); }
.section-chip.on {
  border-style: solid;
  border-color: transparent;
  background: linear-gradient(110deg, #eef2ff, #ecfeff);
  color: var(--brand-deep);
  box-shadow: inset 0 0 0 1.5px #c7d2fe;
}
.section-chip .chip-icon { font-size: .95rem; }
.section-chip .chip-count {
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-size: .68rem;
  padding: 0 .42rem;
  line-height: 1.35;
}
.section-chip:not(.on) .chip-count { background: #94a3b8; }
.section-chip .chip-state { font-weight: 700; opacity: .7; }

.entry-card {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: .9rem 1rem;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.entry-card:focus-within { border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(79, 70, 229, .08); }

.inline-entry {
  border-radius: 10px;
  padding: .25rem .4rem;
  margin: 0 -.4rem;
  transition: background-color .15s ease;
}
.inline-entry:focus-within { background: #f4f5fd; }

.add-entry {
  border: 1.5px dashed #c9cfdd;
  border-radius: 12px;
  padding: .8rem 1rem;
  background: #fafbff;
  transition: border-color .18s ease, background-color .18s ease;
}
.add-entry:hover { border-color: var(--brand); background: #f4f4ff; }
.add-entry summary {
  font-weight: 600;
  color: var(--brand-deep);
  cursor: pointer;
  list-style: none;
}
.add-entry summary::-webkit-details-marker { display: none; }
.add-entry[open] summary { margin-bottom: .25rem; }

.interest-pill {
  border: none;
  background: linear-gradient(110deg, #eef2ff, #ecfeff);
  color: var(--brand-deep);
  border-radius: 999px;
  padding: .3rem .8rem;
  font-size: .86rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: inset 0 0 0 1.5px #c7d2fe;
  transition: all .15s ease;
}
.interest-pill:hover { background: #fee2e2; box-shadow: inset 0 0 0 1.5px #fca5a5; color: #b91c1c; }

.editor-toast { animation: toastIn .35s ease both; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .editor-accordion .accordion-item, .editor-toast { animation: none; }
}

/* ------------------------------------------------------------- share menu */

.share-menu {
  position: absolute;
  z-index: 1060;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: .35rem;
  animation: toastIn .18s ease both;
}
.share-menu-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
  padding: .5rem .7rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.share-menu-item:hover { background: #eef2ff; color: var(--brand-deep); }
.share-menu-icon { width: 1.2rem; text-align: center; }

html:not([data-theme="light"]) .share-menu { background: #1e293b; border-color: #33415e; }
html:not([data-theme="light"]) .share-menu-item { color: #e2e8f0; }
html:not([data-theme="light"]) .share-menu-item:hover { background: #27274d; color: #c7d2fe; }

/* ------------------------------------------------------------- footer */

.static-page h2 { margin-top: 1.6rem; }
.static-page ul { line-height: 1.8; }

/* ------------------------------------------------------------- dark theme
   Matches the Tools convention: no data-theme attribute = dark, "light" = light.
   The light design above is the base; these override it for dark. */

html:not([data-theme="light"]) body {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(124, 58, 237, .14), transparent 60%),
    radial-gradient(900px 420px at -10% 0%, rgba(6, 182, 212, .1), transparent 55%),
    #0f172a;
  color: #e2e8f0;
}

html:not([data-theme="light"]) {
  --card-border: #2c3a52;
}

html:not([data-theme="light"]) h1,
html:not([data-theme="light"]) h2,
html:not([data-theme="light"]) h3,
html:not([data-theme="light"]) h4,
html:not([data-theme="light"]) h5 { color: #f1f5f9; }

html:not([data-theme="light"]) a { color: #a5b4fc; }
html:not([data-theme="light"]) a:hover { color: #c7d2fe; }
html:not([data-theme="light"]) .text-muted,
html:not([data-theme="light"]) .text-secondary,
html:not([data-theme="light"]) .form-text { color: #94a3b8 !important; }

html:not([data-theme="light"]) .card,
html:not([data-theme="light"]) .feature-card,
html:not([data-theme="light"]) .accordion-item,
html:not([data-theme="light"]) .list-group-item,
html:not([data-theme="light"]) .entry-card {
  background: #1e293b;
  border-color: var(--card-border);
  color: #e2e8f0;
}
html:not([data-theme="light"]) .card-header { background: #22304a; border-bottom-color: var(--card-border); color: #f1f5f9; }
html:not([data-theme="light"]) .card-footer { background: #1e293b !important; border-top-color: var(--card-border); }

html:not([data-theme="light"]) .accordion-button { background: #1e293b; color: #e2e8f0; }
html:not([data-theme="light"]) .accordion-button:not(.collapsed) {
  background: linear-gradient(100deg, #27274d, #1e2a4a);
  color: #c7d2fe;
}
html:not([data-theme="light"]) .accordion-button::after { filter: invert(.8); }
html:not([data-theme="light"]) .accordion-body { color: #cbd5e1; }

html:not([data-theme="light"]) .form-control,
html:not([data-theme="light"]) .form-select {
  background: #0f172a;
  border-color: #33415e;
  color: #e2e8f0;
}
html:not([data-theme="light"]) .form-control::placeholder { color: #64748b; }
html:not([data-theme="light"]) .form-control:focus,
html:not([data-theme="light"]) .form-select:focus { border-color: #6366f1; background: #0f172a; color: #e2e8f0; }
html:not([data-theme="light"]) .form-control[readonly] { background: #16203a; }
html:not([data-theme="light"]) .form-label { color: #94a3b8; }
html:not([data-theme="light"]) .form-check-input { background-color: #0f172a; border-color: #475569; }
html:not([data-theme="light"]) .form-check-input:checked { background-color: #6366f1; border-color: #6366f1; }

html:not([data-theme="light"]) .table { --bs-table-bg: transparent; --bs-table-color: #e2e8f0; --bs-table-border-color: #33415e; --bs-table-hover-bg: #1e293b; --bs-table-hover-color: #f1f5f9; }
html:not([data-theme="light"]) .table thead th { color: #94a3b8; }

html:not([data-theme="light"]) .alert-info {
  background: linear-gradient(100deg, #1e2a4a, #16303a);
  border-color: #33415e;
  color: #c7d2fe;
}
html:not([data-theme="light"]) .alert-info a,
html:not([data-theme="light"]) .alert-info .alert-link { color: #a5b4fc; }
html:not([data-theme="light"]) .alert-success { background: #12291f; border-color: #14532d; color: #86efac; }
html:not([data-theme="light"]) .alert-warning { background: #2b2413; border-color: #713f12; color: #fcd34d; }
html:not([data-theme="light"]) .alert-danger { background: #2b1414; border-color: #7f1d1d; color: #fca5a5; }
html:not([data-theme="light"]) .alert-light { background: #1e293b; border-color: #33415e; color: #cbd5e1; }

html:not([data-theme="light"]) .btn-outline-primary { color: #a5b4fc; border-color: #4c5470; }
html:not([data-theme="light"]) .btn-outline-primary:hover { background: #27274d; color: #c7d2fe; border-color: #6366f1; }
html:not([data-theme="light"]) .btn-outline-secondary { color: #94a3b8; border-color: #3d4a63; }
html:not([data-theme="light"]) .btn-outline-secondary:hover { background: #253247; color: #e2e8f0; border-color: #4c5a75; }
/* Active filter chips: --ink equals the dark page background, so restyle explicitly. */
html:not([data-theme="light"]) .btn-outline-secondary.active {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}
html:not([data-theme="light"]) .btn-outline-danger { color: #fca5a5; border-color: #7f1d1d; }
html:not([data-theme="light"]) .btn-outline-danger:hover { background: #7f1d1d; color: #fff; }
html:not([data-theme="light"]) .btn-close { filter: invert(1); }

html:not([data-theme="light"]) .badge.text-bg-secondary { background: #33415e !important; }
html:not([data-theme="light"]) .badge.text-bg-light { --bs-badge-color: #cbd5e1; background: #22304a !important; color: #cbd5e1 !important; border-color: #33415e !important; }
html:not([data-theme="light"]) .template-cat-badge { background: #1e2a4a; color: #a5b4fc; border-color: #3d4a63; }

html:not([data-theme="light"]) .section-chooser { background: linear-gradient(120deg, #1e293b 60%, #251f45); }
html:not([data-theme="light"]) .section-chip { background: #0f172a; border-color: #3d4a63; color: #94a3b8; }
html:not([data-theme="light"]) .section-chip:hover { border-color: #6366f1; color: #c7d2fe; }
html:not([data-theme="light"]) .section-chip.on {
  background: linear-gradient(110deg, #27274d, #16303a);
  color: #c7d2fe;
  box-shadow: inset 0 0 0 1.5px #4c5a9a;
}
html:not([data-theme="light"]) .add-entry { background: #16203a; border-color: #3d4a63; }
html:not([data-theme="light"]) .add-entry:hover { background: #1a2542; border-color: #6366f1; }
html:not([data-theme="light"]) .add-entry summary { color: #a5b4fc; }
html:not([data-theme="light"]) .inline-entry:focus-within { background: #16203a; }
html:not([data-theme="light"]) .interest-pill {
  background: linear-gradient(110deg, #27274d, #16303a);
  color: #c7d2fe;
  box-shadow: inset 0 0 0 1.5px #4c5a9a;
}
html:not([data-theme="light"]) .template-thumb { background: linear-gradient(160deg, #22304a, #1a2542) !important; }
html:not([data-theme="light"]) .progress { background-color: #33415e; }
html:not([data-theme="light"]) .include-entry .form-check-label { color: #94a3b8; }
html:not([data-theme="light"]) .resume-hero { background: #1e293b !important; border-color: #33415e; }
html:not([data-theme="light"]) .resume-hero .hero-line { background: #33415e; }
html:not([data-theme="light"]) hr { border-color: #33415e; opacity: 1; }

/* ------------------------------------------------------------- mobile (spec E1) */

@media (max-width: 576px) {
  .btn-sm { padding: .45rem .8rem; }
  .accordion-button { padding: 1rem .9rem; }
}
