/* =========================================================
   グラデーション ジェネレーター — Editorial Minimal（明朝体 × 和紙ベース）
   色の辞書と同じデザインシステム＆UX（一覧グリッド → クリックでモーダル編集）
   ========================================================= */

:root {
  --paper: #f4efe3;
  --paper-edge: #ece4d2;
  --card: #fbf8f0;
  --ink: #23201a;
  --ink-2: #6f6757;
  --ink-3: #a79d8a;
  --line: #e3dbc8;
  --line-2: #d3c9b1;
  --seal: #b14730;
  --seal-weak: #f1e2d9;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 4px;
  --shadow-card: 0 1px 2px rgba(60, 48, 28, 0.05);
  --shadow-pop: 0 24px 60px -20px rgba(50, 38, 20, 0.35);
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

/* 和紙のごく薄い粒状感 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--seal);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ===== ヘッダー ===== */
header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 32px 36px;
  position: relative;
}
.lang-switch {
  position: absolute;
  top: 28px;
  right: 32px;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.lang-switch:hover {
  color: var(--seal);
  border-color: var(--seal);
}
.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.brandmark::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--seal), #d98a4a);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px var(--seal);
  flex: none;
}
header h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5.2vw, 3.4rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
header h1 .accent {
  color: var(--seal);
}
header .lede {
  margin: 22px 0 0;
  max-width: 62ch;
  font-size: 1.12rem;
  color: var(--ink-2);
  line-height: 1.9;
}
.hairline {
  max-width: 1180px;
  margin: 0 auto;
  border: 0;
  border-top: 1px solid var(--line);
}

/* ===== ツールバー（検索・絞り込み） ===== */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.toolbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 32px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrap svg {
  position: absolute;
  left: 4px;
  width: 20px;
  height: 20px;
  color: var(--ink-3);
  pointer-events: none;
}
#search {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line-2);
  padding: 10px 8px 10px 34px;
  outline: none;
  transition: border-color 0.2s;
}
#search::placeholder {
  color: var(--ink-3);
}
#search:focus {
  border-color: var(--seal);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
/* 色相チップ（color-dictionary と同じ意匠） */
.hue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.hue-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 13px 5px 11px;
  cursor: pointer;
  transition: all 0.18s;
}
.hue-chip .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  flex: none;
}
.hue-chip:hover {
  border-color: var(--line-2);
}
.hue-chip.active {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--card);
}

/* セグメント（カテゴリ・種別・出力タブ共通の意匠） */
.segmented {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  overflow: hidden;
}
.segmented.full {
  display: flex;
  width: 100%;
}
.segmented button {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  padding: 7px 16px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.segmented.full button {
  flex: 1;
}
.segmented button + button {
  border-left: 1px solid var(--line);
}
.segmented button.active {
  background: var(--ink);
  color: var(--paper);
}

/* ===== メイン（一覧） ===== */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.count-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 24px 2px 16px;
  color: var(--ink-2);
}
.count-row .count {
  font-size: 1.05rem;
}
.count-row .count b {
  font-weight: 600;
  color: var(--ink);
}
.count-row .hint {
  font-size: 0.95rem;
  color: var(--ink-3);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding-bottom: 8px;
}
.chip {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  font-family: var(--serif);
  padding: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px -14px rgba(50, 38, 20, 0.45);
  border-color: var(--line-2);
}
.chip:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
}
.chip .swatch {
  display: block;
  height: 120px;
  width: 100%;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.chip .meta {
  display: block;
}
.chip .name,
.chip .reading,
.chip .type {
  display: block;
}
.chip .cat-tag {
  position: absolute;
  top: 9px;
  left: 9px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #4a4133;
  backdrop-filter: blur(2px);
}
.chip .meta {
  padding: 12px 13px 14px;
}
.chip .name {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.chip .reading {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.5;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip .type {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--ink-2);
  margin-top: 8px;
  text-transform: lowercase;
}

/* 新規作成カード */
.chip.new {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-style: dashed;
  border-color: var(--line-2);
  background: transparent;
  gap: 6px;
  color: var(--seal);
}
.chip.new:hover {
  background: var(--seal-weak);
}
.chip.new .plus {
  font-size: 2rem;
  line-height: 1;
}
.chip.new .new-name {
  font-size: 1.05rem;
  font-weight: 600;
}
.chip.new .new-desc {
  font-size: 0.9rem;
  color: var(--ink-3);
}

.no-result {
  padding: 64px 16px;
  text-align: center;
  color: var(--ink-2);
  font-size: 1.05rem;
}
.guide-link {
  margin: 28px 0 8px;
  text-align: center;
  color: var(--ink-2);
  font-size: 1rem;
}

/* ===== エディタモーダル ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(35, 28, 16, 0.42);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open {
  display: flex;
}
.editor {
  position: relative;
  width: min(600px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow-pop);
  padding: 22px;
  animation: plate-in 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes plate-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}
.editor-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #2c261c;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  z-index: 2;
  transition: background 0.2s;
}
.editor-close:hover {
  background: #fff;
  color: var(--seal);
}
.editor-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background-image:
    linear-gradient(45deg, #e7dfcc 25%, transparent 25%),
    linear-gradient(-45deg, #e7dfcc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e7dfcc 75%),
    linear-gradient(-45deg, transparent 75%, #e7dfcc 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  border: 1px solid var(--line);
}
.preview-box {
  position: absolute;
  inset: 0;
}

/* グラデーションバー（ストップ編集） */
.bar-label {
  margin: 20px 0 10px;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.gradient-bar-wrap {
  position: relative;
  padding: 0 10px;
}
.gradient-bar {
  position: relative;
  height: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  cursor: copy;
  background-image:
    linear-gradient(45deg, #e7dfcc 25%, transparent 25%),
    linear-gradient(-45deg, #e7dfcc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e7dfcc 75%),
    linear-gradient(-45deg, transparent 75%, #e7dfcc 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}
.gradient-bar-fill {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  pointer-events: none;
}
.stop-handle {
  position: absolute;
  top: -8px;
  width: 18px;
  height: 46px;
  margin-left: -9px;
  border-radius: 5px;
  background: var(--card);
  border: 2px solid var(--ink-3);
  box-shadow: 0 1px 4px rgba(50, 38, 20, 0.3);
  cursor: grab;
  touch-action: none;
}
.stop-handle::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 3px;
  background: var(--handle-color, #888);
}
.stop-handle.active {
  border-color: var(--seal);
  z-index: 2;
}
.stop-handle:active {
  cursor: grabbing;
}
.drag-hint {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ink-3);
}

/* コントロール群 */
.ctrl {
  margin-top: 20px;
}
.ctrl-title {
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  margin-bottom: 10px;
}
.slider-row {
  display: block;
  margin-top: 14px;
}
.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.slider-label em {
  font-style: normal;
  color: var(--ink);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--seal);
}

/* 選択中ストップの編集 */
.stop-editor {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.stop-editor input[type="color"] {
  width: 46px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
  flex: none;
}
.hex-input {
  width: 104px;
  font-family: var(--mono);
  font-size: 1rem;
  padding: 8px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-transform: uppercase;
}
.pos-field {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 1rem;
}
.pos-field input {
  width: 62px;
  font-family: var(--mono);
  font-size: 1rem;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.del-stop {
  margin-left: auto;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--seal);
  font-family: var(--serif);
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}
.del-stop:hover:not(:disabled) {
  border-color: var(--seal);
  background: var(--seal-weak);
}
.del-stop:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 色の辞書スウォッチ */
.swatch-toggle {
  margin-top: 12px;
  width: 100%;
  border: 1px solid var(--seal);
  background: var(--seal-weak);
  color: var(--seal);
  font-family: var(--serif);
  font-size: 1rem;
  padding: 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}
.swatch-toggle:hover {
  background: #ead2c6;
}
.swatch-panel {
  margin-top: 12px;
}
.swatch-search {
  width: 100%;
  font-family: var(--serif);
  font-size: 1rem;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 10px;
}
.swatch-search::placeholder {
  color: var(--ink-3);
}
.swatch-group-title {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 12px 0 6px;
}
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
  gap: 6px;
  max-height: 190px;
  overflow-y: auto;
}
.dict-swatch {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid rgba(35, 32, 26, 0.14);
  cursor: pointer;
  transition: transform 0.1s;
}
.dict-swatch:hover {
  transform: scale(1.14);
  outline: 2px solid var(--seal);
  outline-offset: 1px;
  z-index: 1;
}

/* 出力 */
.output-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}
.output-head .ctrl-title {
  margin: 0;
}
.output-code {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper-edge);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.output-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
}
.btn:hover {
  border-color: var(--seal);
  color: var(--seal);
}
.btn-primary {
  background: var(--seal);
  border-color: var(--seal);
  color: var(--paper);
}
.btn-primary:hover {
  background: #97361f;
  border-color: #97361f;
  color: var(--paper);
}
.btn svg {
  width: 17px;
  height: 17px;
}

/* ===== 読み物（SEOコンテンツ） ===== */
.article {
  background: var(--paper-edge);
  border-top: 1px solid var(--line);
  margin-top: 56px;
}
.article-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 32px 72px;
}
.article h2 {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin: 52px 0 16px;
}
.article h2:first-child {
  margin-top: 0;
}
.article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 32px 0 10px;
}
.article p {
  font-size: 1.04rem;
  line-height: 2;
  color: #322d24;
  margin: 0 0 16px;
}
.article ul,
.article ol {
  padding-left: 1.4em;
  margin: 0 0 18px;
}
.article li {
  font-size: 1.04rem;
  line-height: 1.95;
  margin-bottom: 8px;
}
.article strong {
  font-weight: 600;
}
.article .lead {
  font-size: 1.15rem;
  line-height: 2;
  padding: 20px 22px;
  background: var(--card);
  border-left: 3px solid var(--seal);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article code {
  font-family: var(--mono);
  font-size: 0.95em;
  background: var(--card);
  padding: 2px 6px;
  border-radius: 4px;
}
.faq-item {
  border-top: 1px solid var(--line-2);
  padding: 20px 0;
}
.faq-item:last-child {
  border-bottom: 1px solid var(--line-2);
}
.faq-item h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.faq-item p {
  margin: 0;
  color: var(--ink-2);
}
.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.related a {
  display: block;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  background: var(--card);
  transition: border-color 0.2s, transform 0.16s;
}
.related a:hover {
  border-color: var(--seal);
  transform: translateY(-2px);
}
.related a strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
}
.related a span {
  display: block;
  color: var(--ink-3);
  font-size: 0.9rem;
  margin-top: 2px;
}

/* ===== トースト ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1rem;
  padding: 11px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  z-index: 80;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hidden {
  display: none !important;
}

/* 広告（全ツール共通規格：PCは右下フローティングカード300×250＋×閉じ／SPはfooter内320×100） */
.footer-ad {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}
.footer-ad.is-closed { display: none; }
.ad-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 1;
}
.ad-widget__label { color: #94a3b8; font-size: 16px; letter-spacing: 0.04em; }
.ad-widget__close {
  appearance: none;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.ad-widget__close:hover { background: #e2e8f0; color: #1e293b; }
.footer-ad ins.adsbygoogle { display: block; width: 300px; height: 250px; }
@media screen and (max-width: 768px) {
  .footer-ad {
    position: static;
    align-self: center;
    margin: 24px auto 0;
    gap: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: auto;
  }
  .footer-ad.is-closed { display: flex; }
  .ad-widget__head { display: none; }
  .footer-ad ins.adsbygoogle { width: 320px; height: 100px; }
}

/* ===== フッター ===== */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 1rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
footer a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
footer a:hover {
  color: var(--seal);
}
.footer-links {
  display: flex;
  gap: 14px;
}
.footer-links a {
  border: 1px solid var(--line-2);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 1rem;
  transition: all 0.2s;
}
.footer-links a:hover {
  border-color: var(--seal);
  color: var(--seal);
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  header {
    padding: 44px 20px 28px;
  }
  .lang-switch {
    top: 22px;
    right: 20px;
  }
  .toolbar-inner {
    padding: 14px 20px;
  }
  main {
    padding: 0 20px;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
  }
  .editor {
    padding: 18px;
  }
  .article-inner {
    padding: 48px 20px 56px;
  }
  footer {
    flex-direction: column;
    gap: 16px;
    padding: 28px 20px;
    text-align: center;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
