/* StudyWithStory.com - AI English Crossword Module Styles (Desktop, Mobile & WebView Compatible) */
:root {
  --bg: #091228;
  --bg2: #0d1b3e;
  --surface: #162550;
  --surface2: #1d3168;
  --border: #243870;
  --border2: #3050a0;
  --ink: #dde8f8;
  --ink2: #9db8e4;
  --muted: #8ca8d6;
  --accent: #4da6ff;
  --accent2: #80c4ff;
  --accent-bg: #0a1f48;
  --green: #22c55e;
  --green-dark: #16a34a;
  --cell-bg: #f8fafc;
  --cell-ink: #0f172a;
  --cell-active: #dbeafe;
  --cell-highlight: #e0f2fe;
  --cell-border: #cbd5e1;
  --radius: 14px;
  --rsm: 9px;
  --shadow: 0 4px 28px rgba(0, 0, 0, .4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.55;
  background-image:
    radial-gradient(ellipse at 15% 0%, rgba(77, 166, 255, .07) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(77, 166, 255, .04) 0%, transparent 55%);
}

.cw-wrap {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px 80px;
}

@media (max-width: 600px) {
  .cw-wrap {
    padding: 0 10px 60px;
  }
}

/* Header */
.cw-header {
  max-width: 1180px;
  margin: 0 auto 16px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}

.cw-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.cw-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #4da6ff, #1a6bc4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.cw-brand-title {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
}

.cw-brand-sub {
  font-size: .66rem;
  color: var(--muted);
}

.cw-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cw-nav-btn {
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink2);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 500;
  transition: all .15s;
}

.cw-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Top Hero & Controls */
.cw-top-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.cw-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cw-title-area h1 {
  font-family: 'Lora', serif;
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
  color: var(--ink);
  line-height: 1.25;
}

.cw-title-area p {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Level Tabs */
.cw-levels {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cw-lv-btn {
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink2);
  border-radius: var(--rsm);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: .84rem;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cw-lv-btn span.lv-sub {
  font-weight: 400;
  font-size: .7rem;
  color: var(--muted);
}

.cw-lv-btn:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.cw-lv-btn.active {
  background: rgba(77, 166, 255, .16);
  border-color: var(--accent);
  color: var(--accent2);
  box-shadow: 0 0 0 1px var(--accent);
}

/* Action Bar (Random & AI Topic Generator) */
.cw-actions-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

@media (max-width: 720px) {
  .cw-actions-grid {
    grid-template-columns: 1fr;
  }
}

.cw-btn {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--rsm);
  border: none;
  font-family: inherit;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all .16s;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
}

.cw-btn-random {
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--accent2);
}

.cw-btn-random:hover {
  background: rgba(77, 166, 255, .14);
  border-color: var(--accent);
}

.cw-btn-ai {
  background: linear-gradient(135deg, #4da6ff 0%, #1a6bc4 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(77, 166, 255, .28);
}

.cw-btn-ai:hover:not(:disabled) {
  opacity: .92;
}

.cw-btn:disabled {
  opacity: .5;
  cursor: default;
}

.cw-custom-form {
  display: flex;
  gap: 8px;
  width: 100%;
}

@media (max-width: 520px) {
  .cw-custom-form {
    flex-direction: column;
  }
}

.cw-topic-input {
  flex: 1;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: var(--rsm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: .88rem;
  outline: none;
  transition: border-color .15s;
}

.cw-topic-input:focus {
  border-color: var(--accent);
}

.cw-topic-input::placeholder {
  color: var(--muted);
}

/* Alert / Error Box */
.cw-alert {
  display: none;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: var(--rsm);
  font-size: .83rem;
  line-height: 1.45;
}

.cw-alert.error {
  display: block;
  background: rgba(239, 68, 68, .14);
  border: 1px solid rgba(239, 68, 68, .4);
  color: #fca5a5;
}

.cw-alert.info {
  display: block;
  background: rgba(77, 166, 255, .12);
  border: 1px solid rgba(77, 166, 255, .35);
  color: var(--accent2);
}

/* Puzzle Meta Status Bar */
.cw-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(22, 37, 80, .7);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.cw-meta-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cw-badge {
  background: var(--accent-bg);
  border: 1px solid var(--border2);
  color: var(--accent2);
  font-weight: 700;
  font-size: .72rem;
  padding: 3px 9px;
  border-radius: 8px;
}

.cw-topic-label {
  font-family: 'Lora', serif;
  font-size: .96rem;
  color: var(--ink);
  font-weight: 600;
}

.cw-progress-pill {
  font-size: .76rem;
  color: var(--ink2);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.cw-progress-pill strong {
  color: var(--green);
}

.cw-meta-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cw-btn-next-inline {
  padding: 6px 13px;
  border-radius: 20px;
  border: 1px solid var(--accent);
  background: rgba(77, 166, 255, .15);
  color: var(--accent2);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all .15s;
  white-space: nowrap;
}

.cw-btn-next-inline:hover {
  background: var(--accent);
  color: #091228;
  transform: translateY(-1px);
}

.cw-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #ffffff;
  border-radius: 9px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  flex-shrink: 0;
}

.cw-store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, .25);
}

/* Main Workspace Layout: Grid + Clues */
.cw-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 992px) {
  .cw-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Crossword Grid Card */
.cw-grid-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

/* Drag & Zoom Toolbar */
.cw-board-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  flex-wrap: wrap;
}

.cw-pan-hint {
  font-size: .74rem;
  color: var(--ink2);
  user-select: none;
}

@media (max-width: 480px) {
  .cw-pan-hint {
    font-size: .68rem;
  }
}

.cw-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.cw-zoom-btn {
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--border2);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: all .14s;
}

.cw-zoom-btn:hover {
  border-color: var(--accent);
  color: var(--accent2);
  background: rgba(77, 166, 255, .14);
}

.cw-zoom-reset {
  font-size: .73rem;
  min-width: 48px;
  color: var(--accent2);
}

/* Draggable & Zoomable Scroll Viewport */
.cw-grid-scroll {
  width: 100%;
  max-width: 100%;
  min-height: 420px;
  max-height: 72vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  padding: 10px;
  background: #060e20;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: grab;
  position: relative;
  user-select: none;
}

.cw-grid-scroll.is-dragging {
  cursor: grabbing !important;
}

.cw-grid-scroll.is-dragging * {
  cursor: grabbing !important;
}

@media (max-width: 640px) {
  .cw-grid-scroll {
    max-height: 62vh;
    padding: 8px;
  }
}

.cw-grid-stage {
  position: relative;
  margin: 0 auto;
  overflow: visible;
}

.cw-grid {
  display: inline-grid;
  gap: 2px;
  background: #091228;
  padding: 6px;
  border-radius: 10px;
  border: 2px solid var(--border2);
  user-select: none;
  transform-origin: 0 0;
  transition: transform .08s ease-out;
}

.cw-cell {
  width: 35px;
  height: 35px;
  position: relative;
  border-radius: 4px;
}

@media (min-width: 1100px) {
  .cw-cell {
    width: 36px;
    height: 36px;
  }
}

.cw-cell.empty {
  background: rgba(9, 18, 40, .85);
  border-radius: 3px;
}

.cw-cell.letter-cell {
  background: var(--cell-bg);
  border: 1px solid var(--cell-border);
  cursor: pointer;
  transition: background-color .12s, transform .12s, border-color .12s;
}

.cw-cell.letter-cell.in-active-word {
  background: var(--cell-highlight);
  border-color: #60a5fa;
}

.cw-cell.letter-cell.active-cursor {
  background: #bfdbfe;
  border: 2px solid #2563eb;
  z-index: 2;
}

/* DOĞRU HARF GİRİLDİĞİNDE ANINDA YEŞİL (#22c55e) */
.cw-cell.letter-cell.cell-correct {
  background: var(--green) !important;
  border-color: var(--green-dark) !important;
  animation: cwPop .22s ease-out;
}

.cw-cell.letter-cell.cell-correct.active-cursor {
  box-shadow: 0 0 0 2px #fff inset;
}

@keyframes cwPop {
  0% { transform: scale(0.88); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.cw-cell-num {
  position: absolute;
  top: 1px;
  left: 3px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  color: #334155;
  pointer-events: none;
  z-index: 3;
}

.cw-cell.cell-correct .cw-cell-num {
  color: rgba(255, 255, 255, .9);
}

.cw-cell-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--cell-ink);
  text-transform: uppercase;
  padding-top: 5px;
  outline: none;
  cursor: pointer;
  caret-color: transparent;
}

.cw-cell.cell-correct .cw-cell-input {
  color: #ffffff !important;
}

/* Sticky Active Clue Bar (Mobile & Desktop Quick Bar) */
.cw-sticky-clue {
  position: relative;
  margin-top: 12px;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

@media (max-width: 992px) {
  .cw-sticky-clue {
    position: sticky;
    bottom: 10px;
    z-index: 30;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .65);
    background: #0d1b3e;
  }
}

.cw-nav-arrow {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cw-nav-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cw-active-clue-text {
  flex: 1;
  text-align: center;
  font-size: .83rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.35;
}

.cw-active-clue-dir {
  display: inline-block;
  font-weight: 700;
  color: var(--accent2);
  margin-right: 5px;
}

/* Clues Lists Panel (15 Across + 15 Down) */
.cw-clues-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 600px) {
  .cw-clues-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cw-clue-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}

.cw-clue-box h2 {
  font-family: 'Lora', serif;
  font-size: .95rem;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cw-clue-list {
  list-style: none;
  max-height: 540px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}

.cw-clue-item {
  position: relative;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid transparent;
  font-size: .78rem;
  color: var(--ink2);
  cursor: pointer;
  transition: all .14s;
  line-height: 1.4;
  display: flex;
  gap: 7px;
  align-items: flex-start;
  user-select: none;
  -webkit-user-select: none;
}

.cw-clue-item.cw-clue-copied,
.cw-sticky-clue.cw-clue-copied {
  border-color: var(--green) !important;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, .45);
}

.cw-copied-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  background: var(--green);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
  pointer-events: none;
  z-index: 5;
  animation: cwPop .18s ease-out;
}

.cw-clue-item:hover {
  border-color: var(--border2);
  color: var(--ink);
}

.cw-clue-item.active {
  background: rgba(77, 166, 255, .15);
  border-color: var(--accent);
  color: var(--ink);
}

.cw-clue-item.solved {
  background: rgba(34, 197, 94, .12);
  border-color: rgba(34, 197, 94, .35);
  color: #86efac;
  text-decoration: line-through;
}

.cw-clue-num {
  font-weight: 700;
  color: var(--accent2);
  min-width: 22px;
  flex-shrink: 0;
}

.cw-clue-item.solved .cw-clue-num {
  color: var(--green);
}

/* Loading Overlay */
.cw-loading-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 40, .86);
  backdrop-filter: blur(3px);
  z-index: 40;
  border-radius: var(--radius);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.cw-loading-overlay.show {
  display: flex;
}

.cw-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: cwSpin .8s linear infinite;
  margin-bottom: 14px;
}

@keyframes cwSpin {
  to { transform: rotate(360deg); }
}

/* Victory Modal */
.cw-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 24, .82);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cw-modal-backdrop.show {
  display: flex;
}

.cw-modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  padding: 24px 20px;
  box-shadow: 0 12px 42px rgba(0, 0, 0, .65);
  text-align: center;
  max-height: 88vh;
  overflow-y: auto;
}

.cw-modal h2 {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  color: var(--green);
  margin-bottom: 6px;
}

.cw-words-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  text-align: left;
  margin: 14px 0 18px;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}

@media (max-width: 480px) {
  .cw-words-summary {
    grid-template-columns: 1fr;
  }
}

.cw-word-chip {
  font-size: .74rem;
  padding: 5px 8px;
  border-bottom: 1px solid rgba(36, 56, 112, .5);
}

.cw-word-chip strong {
  color: var(--green);
}

/* SEO Archive Section */
.cw-seo-section {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}

.cw-seo-section h2 {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.cw-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.cw-archive-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  text-decoration: none;
  color: var(--ink);
  transition: all .15s;
  display: block;
}

.cw-archive-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.cw-archive-card .ac-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.cw-archive-card .ac-title {
  font-family: 'Lora', serif;
  font-size: .86rem;
  color: var(--ink);
  line-height: 1.3;
}

/* Dynamic Study Guide Section */
.cw-study-guide {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}

.cw-study-guide h2 {
  font-family: 'Lora', serif;
  font-size: 1.12rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.cw-sg-lead {
  font-size: .84rem;
  color: var(--ink2);
  line-height: 1.6;
  margin-bottom: 14px;
}

.cw-sg-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 768px) {
  .cw-sg-steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cw-sg-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
}

.cw-sg-card h3 {
  font-size: .84rem;
  color: var(--accent2);
  margin-bottom: 5px;
  font-weight: 700;
}

.cw-sg-card p {
  font-size: .79rem;
  color: var(--ink2);
  line-height: 1.55;
}

.cw-sg-card a {
  color: var(--accent2);
  text-decoration: underline;
}

/* Original SEO & GEO Educational Article */
.cw-seo-article {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.cw-seo-article h2 {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.cw-seo-article h3 {
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--accent2);
  margin: 18px 0 8px;
}

.cw-seo-article p {
  font-size: .85rem;
  color: var(--ink2);
  line-height: 1.65;
  margin-bottom: 10px;
}

.cw-seo-list {
  padding-left: 18px;
  font-size: .84rem;
  color: var(--ink2);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cw-level-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 18px;
}

@media (max-width: 640px) {
  .cw-level-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cw-lv-info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.cw-lv-info-card h4 {
  font-family: 'Lora', serif;
  font-size: .92rem;
  margin-bottom: 6px;
}

.cw-lv-info-card h4 a {
  color: var(--ink);
  text-decoration: none;
}

.cw-lv-info-card h4 a:hover {
  color: var(--accent2);
}

.cw-lv-info-card p {
  font-size: .79rem;
  color: var(--ink2);
  margin-bottom: 8px;
}

.cw-lv-links {
  font-size: .76rem;
  color: var(--muted);
}

.cw-lv-links a {
  color: var(--accent2);
  text-decoration: none;
  font-weight: 600;
}

.cw-lv-links a:hover {
  text-decoration: underline;
}

/* FAQ Accordion */
.cw-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.cw-faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
}

.cw-faq-item summary {
  font-weight: 600;
  font-size: .85rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cw-faq-item summary::-webkit-details-marker {
  display: none;
}

.cw-faq-item summary::after {
  content: '+';
  color: var(--accent2);
  font-weight: 700;
  font-size: 1rem;
}

.cw-faq-item[open] summary::after {
  content: '−';
}

.cw-faq-item p {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(36, 56, 112, .5);
  font-size: .81rem;
  color: var(--ink2);
  line-height: 1.6;
}

/* Footer */
.cw-footer {
  text-align: center;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
  font-size: .76rem;
  color: var(--muted);
  line-height: 1.85;
}

.cw-footer a {
  color: var(--ink2);
  text-decoration: none;
}

.cw-footer a:hover {
  color: var(--accent2);
  text-decoration: underline;
}
