/* WriteUpCafe — SEO tools revamp (tools_v2, 2026-11-18, data/plans/2026-11-18-tools-revamp.md).
   Loaded after tools.css. Design system: src/design-system/design.md (H1 Playfair 800 48 copper-dark, H2 36/700,
   H3/section 28, buttons 48 px pills, inputs 10 px radius, cards 14 px radius, selected chip = 12% orange). */

/* ── Tools header ─────────────────────────────────────────── */
.t2bar { background: var(--wuc-parchment-raised, #fbf7ef); border-bottom: 1px solid rgba(139,69,19,.18); font-family: var(--wuc-font-body); position: relative; z-index: 20; }
.t2bar__row { max-width: 1240px; margin: 0 auto; min-height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 24px; box-sizing: border-box; }
.t2bar__home { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--wuc-fg1, #1a0f06); text-decoration: none; white-space: nowrap; }
.t2bar__home svg { color: var(--wuc-primary, #e87a35); }
.t2bar__home:hover { color: var(--wuc-copper-dark, #8b4513); }
.t2bar__sep { width: 1px; height: 24px; background: rgba(139,69,19,.2); flex-shrink: 0; }
.t2bar__tabs { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.t2bar__tabs::-webkit-scrollbar { display: none; }
.t2tab { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid transparent; color: var(--wuc-fg2, #3d2a18); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
.t2tab:hover { color: #c4622d; text-decoration: none; }
.t2tab.is-on { background: rgba(232,122,53,.12); border-color: rgba(232,122,53,.35); color: #c4622d; }
.t2tab__n { font-size: 12px; color: rgba(26,15,6,.55); }
.t2tab.is-on .t2tab__n { color: #c4622d; }
.t2bar__all { display: none; }
.t2bar__sibs { max-width: 1240px; margin: 0 auto; min-height: 48px; display: flex; align-items: center; gap: 6px; padding: 6px 24px; box-sizing: border-box; border-top: 1px solid rgba(139,69,19,.1); overflow-x: auto; scrollbar-width: none; }
.t2bar__sibs::-webkit-scrollbar { display: none; }
.t2bar__sibs-label { font-size: 13px; color: rgba(26,15,6,.65); margin-right: 4px; white-space: nowrap; }
.t2chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(139,69,19,.18); color: var(--wuc-fg2, #3d2a18); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; flex-shrink: 0; }
.t2chip:hover { border-color: rgba(232,122,53,.5); color: #c4622d; text-decoration: none; }
.t2chip.is-on { background: rgba(232,122,53,.12); border-color: rgba(232,122,53,.35); color: #c4622d; }

/* Find a tool */
.t2find { position: relative; display: flex; align-items: center; width: 260px; flex-shrink: 0; }
.t2find__ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(26,15,6,.55); display: flex; pointer-events: none; }
.t2find__input { width: 100%; height: 36px; box-sizing: border-box; padding: 0 36px 0 36px; border: 1px solid rgba(139,69,19,.25); border-radius: 10px; background: #fff; font: 400 14px var(--wuc-font-body); color: var(--wuc-fg1, #1a0f06); -webkit-appearance: none; appearance: none; }
.t2find__input::-webkit-search-cancel-button { display: none; }
.t2find__input:focus { outline: none; border-color: var(--wuc-primary, #e87a35); box-shadow: 0 0 0 4px rgba(232,122,53,.15); }
.t2find__kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 500 11px var(--wuc-font-body); color: rgba(26,15,6,.55); padding: 1px 6px; border: 1px solid rgba(139,69,19,.25); border-radius: 6px; pointer-events: none; }
.t2find__input:focus ~ .t2find__kbd { display: none; }
.t2find__list { position: absolute; top: calc(100% + 6px); right: 0; width: 100%; min-width: 320px; max-height: 380px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid rgba(139,69,19,.18); border-radius: 12px; box-shadow: 0 12px 32px rgba(26,15,6,.14); z-index: 40; box-sizing: border-box; }
.t2find__list li { margin: 0; }
.t2find__opt { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--wuc-fg1, #1a0f06); cursor: pointer; }
.t2find__opt strong { font-size: 14px; font-weight: 600; }
.t2find__opt span { font-size: 12px; color: rgba(26,15,6,.65); }
.t2find__opt.is-active, .t2find__opt:hover { background: rgba(232,122,53,.1); text-decoration: none; }
.t2find__empty { padding: 12px; font-size: 13px; color: rgba(26,15,6,.65); }

/* "All tools" sheet (phones) */
.t2sheet { position: fixed; inset: 0; z-index: 1000; background: rgba(26,15,6,.45); display: flex; align-items: flex-end; }
.t2sheet[hidden] { display: none; }
.t2sheet__panel { width: 100%; max-height: 88vh; background: var(--wuc-parchment, #f5f0e8); border-radius: 18px 18px 0 0; display: flex; flex-direction: column; font-family: var(--wuc-font-body); }
.t2sheet__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 8px; }
.t2sheet__title { margin: 0; font-family: var(--wuc-font-display); font-weight: 700; font-size: 22px; color: var(--wuc-copper-dark, #8b4513); }
.t2sheet__close { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--wuc-fg1, #1a0f06); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.t2sheet .t2find--sheet { width: auto; margin: 0 16px 8px; flex-direction: column; align-items: stretch; }
.t2find--sheet .t2find__ico { top: 22px; }
.t2find--sheet .t2find__input { height: 44px; font-size: 16px; }
.t2find--sheet .t2find__list { position: static; box-shadow: none; margin-top: 6px; min-width: 0; }
.t2sheet__body { overflow-y: auto; padding: 0 16px 24px; }
.t2sheet__group { margin: 16px 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--wuc-copper-dark, #8b4513); }
.t2sheet__list { list-style: none; margin: 0; padding: 0; background: var(--wuc-parchment-raised, #fbf7ef); border: 1px solid rgba(139,69,19,.18); border-radius: 14px; overflow: hidden; }
.t2sheet__list li + li { border-top: 1px solid rgba(139,69,19,.1); }
.t2sheet__list a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; font-size: 15px; font-weight: 500; color: var(--wuc-fg1, #1a0f06); text-decoration: none; }
.t2sheet__list a[aria-current] { color: #c4622d; background: rgba(232,122,53,.08); }

.t2pro { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; background: var(--wuc-espresso-dark, #1a0f06); color: var(--wuc-gold-highlight, #f0c080); vertical-align: middle; }

/* ── Page frame ───────────────────────────────────────────── */
.t2 { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 24px 72px; box-sizing: border-box; font-family: var(--wuc-font-body); color: var(--wuc-fg1, #1a0f06); }
.t2-crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(26,15,6,.62); margin-bottom: 10px; }
.t2-crumb a { color: rgba(26,15,6,.7); text-decoration: none; }
.t2-crumb a:hover { color: #c4622d; }
.t2-h1 { margin: 0; font-family: var(--wuc-font-display); font-weight: 800; font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; color: var(--wuc-copper-dark, #8b4513); font-style: normal; text-wrap: balance; }
.t2-h2 { margin: 0; font-family: var(--wuc-font-display); font-weight: 700; font-size: 28px; line-height: 1.2; color: var(--wuc-copper-dark, #8b4513); }
.t2-tagline, .t2-lead { margin: 10px 0 0; font-size: 17px; line-height: 1.55; color: var(--wuc-fg2, #3d2a18); max-width: 720px; }
.t2-eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--wuc-copper-dark, #8b4513); }
.t2-eyebrow--dark { color: var(--wuc-copper, #c17d3c); margin-bottom: 6px; }
.t2-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.t2-head__text { flex: 1 1 520px; min-width: 0; }
.t2-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.t2-badge { height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(139,69,19,.08); color: var(--wuc-fg2, #3d2a18); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; }
.t2-badge--ok { background: rgba(46,125,50,.1); color: #1b5e20; }
.t2-badge--pro { background: var(--wuc-espresso-dark, #1a0f06); color: var(--wuc-gold-highlight, #f0c080); }
.t2-carried { margin: -8px 0 16px; padding: 10px 14px; border-radius: 10px; background: rgba(232,122,53,.1); font-size: 14px; color: var(--wuc-fg2, #3d2a18); }
.t2-carried button { border: 0; background: none; padding: 0 0 0 6px; font: 600 14px var(--wuc-font-body); color: #c4622d; cursor: pointer; text-decoration: underline; }

/* Tool internals to the design system (the tools' own JS hooks are untouched). */
.t2 .t-panel { background: var(--wuc-parchment-raised, #fbf7ef); border-color: rgba(139,69,19,.18); border-radius: 14px; }
.t2 .t-panel__label { font-family: var(--wuc-font-body); letter-spacing: .15em; font-weight: 600; color: var(--wuc-copper-dark, #8b4513); }
.t2 .t-field label { font-size: 14px; }
.t2 .t-input, .t2 .t-textarea, .t2 .t-select { border-radius: 10px; border-color: rgba(139,69,19,.25); font-size: 15px; }
.t2 .t-input, .t2 .t-select { min-height: 44px; }
.t2 .t-input:focus, .t2 .t-textarea:focus, .t2 .t-select:focus { border-color: var(--wuc-primary, #e87a35); box-shadow: 0 0 0 4px rgba(232,122,53,.15); outline: none; }
.t2 .t-btn { height: 44px; padding: 0 22px; font-size: 15px; }
.t2 .t-btn--sm { height: 32px; font-size: 13px; }
.t2 .t-faq { margin-top: 8px; }
.t2 .t-faq details { background: var(--wuc-parchment-raised, #fbf7ef); border-color: rgba(139,69,19,.18); }
.t2 .t-hub-section-label { font-family: var(--wuc-font-display); font-size: 28px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--wuc-copper-dark, #8b4513); margin: 0 0 14px; }

/* Input left, live results right (writing tools) */
.t2 .t-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.t2 .t-split__in .t-panel { position: sticky; top: 16px; }
.t-split__in > .t-panel:last-child, .t-split__out > .t-panel:last-child { margin-bottom: 0; }
.t2 .t-split + * { margin-top: 18px; }
.t-fixfirst[hidden] { display: none; }
.t-fixfirst__quote { margin: 8px 0 6px; padding: 10px 12px; border-radius: 8px; background: rgba(224,160,48,.14); font-size: 14px; line-height: 1.55; color: var(--wuc-fg2, #3d2a18); }
.t-fixfirst__why { font-size: 13px; color: rgba(26,15,6,.68); }

/* Next step + publish */
.t2-next { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0 8px; }
.t2-nextcard { display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-height: 72px; box-sizing: border-box; border: 1px solid rgba(139,69,19,.18); border-radius: 14px; background: var(--wuc-parchment-raised, #fbf7ef); color: var(--wuc-fg1, #1a0f06); text-decoration: none; }
.t2-nextcard:hover { border-color: rgba(232,122,53,.55); text-decoration: none; }
.t2-nextcard__ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: rgba(232,122,53,.12); color: #c4622d; display: flex; align-items: center; justify-content: center; }
.t2-nextcard__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t2-nextcard__text strong { font-size: 16px; font-weight: 600; }
.t2-nextcard__text span { font-size: 14px; line-height: 1.45; color: var(--wuc-fg2, #3d2a18); }
.t2-nextcard--dark { background: var(--wuc-espresso-dark, #1a0f06); border-color: var(--wuc-espresso-dark, #1a0f06); }
.t2-nextcard--dark .t2-nextcard__ico { background: var(--wuc-primary, #e87a35); color: #fff; }
.t2-nextcard--dark strong { color: var(--wuc-gold-highlight, #f0c080); }
.t2-nextcard--dark .t2-nextcard__text span { color: rgba(221,208,192,.85); }
.t2-nextcard--dark:hover { border-color: var(--wuc-copper, #c17d3c); }
.t2-next:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }

.t2-guide { margin-top: 24px; }
.t2-more { margin-top: 40px; }
.t2-more .t2-h2 { margin-bottom: 14px; }

/* Cards */
.t2-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.t2-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.t2-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; min-height: 88px; box-sizing: border-box; border: 1px solid rgba(139,69,19,.18); border-radius: 14px; background: var(--wuc-parchment-raised, #fbf7ef); color: var(--wuc-fg1, #1a0f06); text-decoration: none; flex-direction: column; }
.t2-grid--4 .t2-card { flex-direction: row; }
.t2-card:hover { border-color: rgba(232,122,53,.55); box-shadow: 0 6px 18px rgba(196,98,45,.08); text-decoration: none; }
.t2-card__ico { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; background: rgba(232,122,53,.12); color: #c4622d; display: flex; align-items: center; justify-content: center; }
.t2-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.t2-card__name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.t2-card__line { font-size: 13px; line-height: 1.45; color: var(--wuc-fg2, #3d2a18); }
.t2-card--compare { background: transparent; border-style: dashed; }

/* Hub */
.t2-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px; align-items: end; margin-bottom: 36px; }
.t2-hero .t2find--hero { width: auto; flex-direction: column; align-items: stretch; }
.t2find__label { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.t2find--hero .t2find__ico { top: auto; bottom: 17px; transform: none; color: var(--wuc-copper-dark, #8b4513); }
.t2find--hero .t2find__input { height: 52px; font-size: 16px; padding-left: 42px; border: 2px solid var(--wuc-primary, #e87a35); border-radius: 12px; box-shadow: 0 0 0 4px rgba(232,122,53,.12); }
.t2find--hero .t2find__list { top: 100%; margin-top: 6px; }
.t2-path { background: var(--wuc-espresso-dark, #1a0f06); border-radius: 14px; padding: 26px 28px; color: var(--wuc-cream, #e8ddd0); margin-bottom: 44px; }
.t2-path__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.t2-path__title { margin: 0; font-family: var(--wuc-font-display); font-weight: 700; font-size: 28px; color: var(--wuc-gold-highlight, #f0c080); }
.t2-path__note { margin: 0; font-size: 14px; color: rgba(221,208,192,.8); }
.t2-path__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.t2-path__steps a { display: flex; gap: 12px; align-items: flex-start; padding: 16px; height: 100%; box-sizing: border-box; border: 1px solid rgba(193,125,60,.3); border-radius: 12px; background: var(--wuc-espresso-mid, #251508); text-decoration: none; }
.t2-path__steps a:hover { border-color: var(--wuc-copper, #c17d3c); text-decoration: none; }
.t2-path__steps strong { display: block; font-size: 16px; font-weight: 600; color: var(--wuc-cream, #e8ddd0); }
.t2-path__steps a > span:last-child > span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: rgba(221,208,192,.78); }
.t2-path__n { width: 30px; height: 30px; flex-shrink: 0; border-radius: 999px; background: var(--wuc-primary, #e87a35); color: var(--wuc-espresso-dark, #1a0f06); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.t2-group { margin-bottom: 40px; scroll-margin-top: 80px; }
.t2-group__head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.t2-group__head p { margin: 0; font-size: 14px; color: rgba(26,15,6,.65); }
.t2-compares { margin: 12px 0 0; font-size: 14px; color: rgba(26,15,6,.65); }
.t2-compares a { color: var(--wuc-copper-dark, #8b4513); }
.t2-faq { margin: 8px 0 40px; }
.t2-faq .t2-h2 { margin-bottom: 14px; }
.t2-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; padding: 28px 32px; border: 1px solid rgba(139,69,19,.18); border-radius: 14px; background: var(--wuc-parchment-raised, #fbf7ef); }
.t2-cta p { margin: 6px 0 0; font-size: 15px; color: var(--wuc-fg2, #3d2a18); }
.t2-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 999px; background: var(--wuc-primary, #e87a35); color: #fff; font: 500 15px var(--wuc-font-body); text-decoration: none; white-space: nowrap; }
.t2-btn:hover { background: var(--wuc-primary-hover, #f08a45); color: #fff; text-decoration: none; }

/* ── Tablets and phones ───────────────────────────────────── */
@media (max-width: 1100px) {
  .t2-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t2-path__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t2find { width: 200px; }
}
@media (max-width: 860px) {
  .t2bar__row { padding: 0 16px; gap: 8px; min-height: 52px; }
  .t2bar__home span, .t2bar__sep, .t2bar__row > .t2find { display: none; }
  .t2bar__home { padding-right: 2px; }
  .t2bar__all { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; flex-shrink: 0; border: 1px solid rgba(139,69,19,.25); border-radius: 10px; background: #fff; font: 600 14px var(--wuc-font-body); color: var(--wuc-fg1, #1a0f06); cursor: pointer; }
  .t2bar__all svg { color: var(--wuc-primary, #e87a35); }
  .t2bar__tabs > .t2tab:first-child { display: none; }   /* the All tools button covers it */
  .t2bar__sibs { padding: 6px 16px; }
  .t2 { padding: 20px 16px 56px; }
  .t2-h1 { font-size: 36px; }
  .t2-head { margin-bottom: 18px; }
  .t2-badges { justify-content: flex-start; }
  .t2-badge { height: 26px; font-size: 12px; }
  .t2 .t-split, .t2-next, .t2-hero, .t2-grid { grid-template-columns: minmax(0, 1fr); }
  .t2 .t-split__in .t-panel { position: static; }
  .t2-hero { gap: 20px; margin-bottom: 24px; }
  .t2-path { padding: 18px; margin-bottom: 32px; }
  .t2-path__steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .t2-path__steps a { border: 0; background: transparent; padding: 8px 0; min-height: 48px; }
  .t2-path__title { font-size: 22px; }
  /* Hub cards → list rows on phones */
  .t2-grid--4 { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid rgba(139,69,19,.18); border-radius: 14px; overflow: hidden; background: var(--wuc-parchment-raised, #fbf7ef); }
  .t2-grid--4 .t2-card { border: 0; border-radius: 0; min-height: 60px; padding: 10px 14px; align-items: center; box-shadow: none; }
  .t2-grid--4 .t2-card + .t2-card { border-top: 1px solid rgba(139,69,19,.1); }
  .t2-grid--4 .t2-card__ico { width: 32px; height: 32px; }
  .t2-card__line { font-size: 13px; }
  .t2-cta { padding: 22px 18px; }
  .t2-cta .t2-btn { width: 100%; }
  .t2 .t-input, .t2 .t-textarea, .t2 .t-select, .t2find__input { font-size: 16px; }   /* no iPhone zoom */
}
