/* ==========================================================================
   Linkable guides (added 11 Nov 2026): copy-and-paste cards, the personaliser
   and the end-of-guide call booking block. Loaded after styles.css on guide pages.
   Reuse for every new guide: guide.css + guide.js.
   ========================================================================== */

.guide-lead { font-size: 1.22rem; line-height: 1.6; color: var(--cream); margin: 0 0 1.4rem; font-weight: 500; letter-spacing: -.01em; }

/* Personaliser: fills names and the email app into every card */
.g-personal {
  margin: 2rem 0 1.6rem; padding: 1.3rem 1.4rem; background: var(--char);
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr;
}
.g-personal h3 { grid-column: 1 / -1; margin: 0; font-size: 1rem; font-weight: 600; color: var(--cream); }
.g-personal p { grid-column: 1 / -1; margin: -.6rem 0 0; font-size: .9rem; color: var(--cream-dim); }
.g-field, .g-seg-wrap { display: grid; gap: .4rem; align-content: start; }
.g-seg-wrap { grid-column: 1 / -1; }
.g-field label, .g-seg-label { font-size: .85rem; color: var(--cream-dim); }
.g-field input {
  font: inherit; font-size: 1rem; color: var(--cream); background: #fff;
  border: 1px solid rgba(11,11,11,.3); padding: .7rem .85rem; min-height: 46px; width: 100%;
}
.g-seg { display: inline-flex; justify-self: start; border: 1px solid rgba(11,11,11,.3); background: #fff; }
.g-seg button {
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--cream-dim);
  background: transparent; border: 0; padding: 0 1.1rem; min-height: 46px; cursor: pointer;
}
.g-seg button + button { border-left: 1px solid rgba(11,11,11,.18); }
.g-seg button[aria-pressed="true"] { background: #0b0b0b; color: #fff; }
@media (max-width: 560px) {
  .g-personal { grid-template-columns: 1fr; }
  .g-seg { display: flex; justify-self: stretch; }
  .g-seg button { flex: 1; padding: 0 .5rem; }
}

/* Copy card */
.copy-card { margin: 1.4rem 0 2rem; border: 1px solid var(--line); background: #fff; }
.copy-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1rem .85rem 1.2rem; border-bottom: 1px solid var(--line);
}
.copy-card-head h3 { margin: 0; font-size: 1rem; font-weight: 600; color: var(--cream); line-height: 1.3; }
.copy-card-head p { margin: .2rem 0 0; font-size: .86rem; color: var(--cream-fai); line-height: 1.4; }
.copy-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: #0b0b0b; background: var(--accent); border: 1px solid var(--accent);
  border-radius: 999px; padding: 0 1.1rem; min-height: 44px; min-width: 112px;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.copy-btn:hover, .copy-btn.is-done { background: #0b0b0b; border-color: #0b0b0b; color: #fff; }
.copy-btn svg { width: 15px; height: 15px; }
.copy-card pre {
  margin: 0; padding: 1.1rem 1.2rem; background: var(--char); color: var(--cream);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .86rem; line-height: 1.65;
  white-space: pre-wrap; overflow-wrap: anywhere; max-height: 30rem; overflow: auto;
}
.copy-card .fill { background: rgba(196,245,106,.6); padding: 0 .12em; border-radius: 2px; }
.copy-card-foot { margin: 0; padding: .75rem 1.2rem; font-size: .86rem; color: var(--cream-fai); border-top: 1px solid var(--line-soft); line-height: 1.5; }
@media (max-width: 560px) {
  .copy-card-head { flex-direction: column; align-items: stretch; }
}

/* Hot tip cards get a lime top edge so they stand out from the setup cards */
.copy-card--tip { border-top: 4px solid var(--accent); }

/* Folder names inside prose */
.article code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .86em; background: var(--char-2); padding: .08em .35em; border-radius: 3px; color: var(--cream); white-space: nowrap; }
.a-table code { white-space: nowrap; }

/* App-specific blocks (Gmail / Outlook) */
[data-app-only][hidden] { display: none; }

/* End-of-guide booking block */
.g-cta { margin: 3rem 0 0; padding: clamp(1.8rem, 4vw, 2.6rem); background: #0b0b0b; color: #f3f3ef; }
.g-cta h2 { margin: 0 0 .9rem; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 600; color: #f3f3ef; }
.g-cta h2::before { content: ""; display: block; width: 56px; height: 4px; background: var(--accent); margin-bottom: 1.4rem; }
.g-cta p { color: rgba(243,243,239,.75); font-size: 1.04rem; line-height: 1.75; margin: 0 0 1rem; }
.g-cta ul { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.g-cta li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; color: rgba(243,243,239,.85); line-height: 1.6; }
.g-cta li::before { content: ""; position: absolute; left: 0; top: .72em; width: 11px; height: 3px; border-radius: 2px; background: var(--accent); }
.article .g-cta a.btn { color: #0b0b0b; text-decoration: none; }
.article .g-cta a.btn:hover { background: #fff; border-color: #fff; color: #0b0b0b; }
.g-cta .g-cta-note { font-size: .9rem; color: rgba(243,243,239,.6); margin: 1.1rem 0 0; }
.article .g-cta .g-cta-note a { color: #f3f3ef; text-decoration-color: rgba(243,243,239,.4); }
main .g-cta :focus-visible { outline-color: var(--accent); }

/* ==========================================================================
   How-to guide layout (12 Nov 2026): title band, quick facts, callouts,
   numbered parts and steps, the folder panel, rhythm columns.
   ========================================================================== */
.guide { max-width: 720px; }

/* Title band: black, full width, sits right under the header */
.g-hero { background: #0b0b0b; color: #f3f3ef; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); text-align: center; border-bottom: 6px solid var(--accent); }
.g-hero .article-back { color: rgba(243,243,239,.65); }
.g-hero .article-back:hover { color: var(--accent); }
.g-hero h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; max-width: 17ch; margin: 1.2rem auto 0; color: #f3f3ef; }
.g-hero h1 em { font-style: normal; color: #0b0b0b; background: linear-gradient(transparent 12%, var(--accent) 12%, var(--accent) 94%, transparent 94%); padding-inline: .08em; }
.g-hero-sub { max-width: 56ch; margin: 1.6rem auto 0; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; color: rgba(243,243,239,.8); }
.g-hero-by { margin: 1.6rem 0 0; font-size: .88rem; color: rgba(243,243,239,.6); }
.g-hero-by a { color: #f3f3ef; text-decoration: underline; text-decoration-color: rgba(243,243,239,.35); text-underline-offset: 3px; }
.g-hero :focus-visible { outline-color: var(--accent); }

/* Quick facts */
.g-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 2rem 0; }
.g-facts > div { background: #fff; padding: 1.1rem 1.1rem 1.2rem; }
.g-facts strong { display: block; font-size: 1.02rem; color: var(--cream); margin-bottom: .3rem; }
.g-facts span { font-size: .9rem; line-height: 1.5; color: var(--cream-dim); }
@media (max-width: 640px) { .g-facts { grid-template-columns: 1fr; } }

/* Callouts */
.g-callout { margin: 2rem 0; padding: 1.3rem 1.4rem; background: var(--char); border-left: 4px solid var(--accent); }
.g-callout h3 { margin: 0 0 .45rem; font-size: 1.05rem; font-weight: 600; color: var(--cream); }
.g-callout p { margin: 0; color: var(--cream-dim); line-height: 1.7; }
.g-callout p + p { margin-top: .6rem; }
.article .g-callout a { font-weight: 600; }
.g-question { margin: 2.4rem 0; padding: 1.8rem 1.6rem; background: #0b0b0b; color: #f3f3ef; text-align: center; }
.g-question p { margin: 0; font-size: .95rem; color: rgba(243,243,239,.7); }
.g-question blockquote { margin: .6rem 0; font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: #f3f3ef; }
.g-question blockquote span { color: var(--accent); }

/* Parts */
.g-part { margin: clamp(3.5rem, 7vw, 5rem) 0 0; padding-top: 2.2rem; border-top: 2px solid #0b0b0b; }
.g-part-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.g-part-num { flex: none; width: 3rem; height: 3rem; border-radius: 50%; background: var(--accent); color: #0b0b0b; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; }
.g-part-head h2 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--cream); }
.g-part-intro { color: var(--cream-dim); font-size: 1.06rem; line-height: 1.75; margin: 0 0 1.2rem; }

/* Steps inside a part */
.g-step { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 0 1rem; margin: 2.2rem 0 0; }
.g-step-n { width: 2.4rem; height: 2.4rem; border: 2px solid #0b0b0b; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; color: #0b0b0b; }
.g-step-body { min-width: 0; }
.g-step-body > h3 { margin: .35rem 0 .5rem; font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; color: var(--cream); }
.g-step-body > p { margin: 0 0 1rem; color: var(--cream-dim); line-height: 1.75; }
.g-step-body .copy-card { margin-top: 1rem; }
.g-step-body .a-list { margin-top: .4rem; }
@media (max-width: 560px) { .g-step { grid-template-columns: minmax(0, 1fr); } .g-step-n { margin-bottom: .6rem; } }

/* Folder panel: looks like an email sidebar */
.g-folders { margin: 1.6rem 0; border: 1px solid var(--line); }
.g-folder-group > h3 { margin: 0; padding: .8rem 1.1rem; background: var(--char); border-bottom: 1px solid var(--line); font-size: .95rem; font-weight: 600; color: var(--cream); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.g-folder-group > h3 span { font-weight: 400; color: var(--cream-fai); }
.g-folder-group + .g-folder-group { border-top: 1px solid var(--line); }
.g-folder { display: grid; grid-template-columns: minmax(11.5rem, auto) 1fr auto; gap: .4rem 1rem; align-items: start; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line-soft); }
.g-folder:last-child { border-bottom: 0; }
.g-folder-name { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .86rem; font-weight: 600; color: var(--cream); padding-top: .15rem; }
.g-folder-name svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: .4rem; color: var(--cream-fai); }
.g-folder p { margin: 0; font-size: .94rem; line-height: 1.55; color: var(--cream-dim); }
.g-owner { font-size: .76rem; font-weight: 700; letter-spacing: .02em; padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; background: var(--char-2); color: var(--cream); }
.g-owner--you { background: var(--accent); color: #0b0b0b; }
.g-owner--asst { background: #0b0b0b; color: #fff; }
.g-folder--top { background: rgba(196,245,106,.14); }
@media (max-width: 640px) {
  .g-folder { grid-template-columns: 1fr auto; }
  .g-folder p { grid-column: 1 / -1; }
  .g-owner { justify-self: start; }
}

/* Three small tiles (name logic, rhythm) */
.g-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.4rem 0; }
.g-tile { border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: 1.1rem 1.1rem 1.2rem; background: #fff; }
.g-tile h3 { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 700; color: var(--cream); }
.g-tile h3 code { font-size: .95em; }
.g-tile p { margin: 0; font-size: .92rem; line-height: 1.6; color: var(--cream-dim); }
.g-tile p + p { margin-top: .5rem; }
@media (max-width: 640px) { .g-tiles { grid-template-columns: 1fr; } }

/* Rules: compact numbered cards */
.g-rules { list-style: none; margin: 1.4rem 0; padding: 0; counter-reset: g-rule; display: grid; gap: .7rem; }
.g-rules li { counter-increment: g-rule; display: grid; grid-template-columns: 2rem 1fr; gap: .8rem; padding: .95rem 1.1rem; background: var(--char); line-height: 1.6; color: var(--cream-dim); }
.g-rules li::before { content: counter(g-rule); width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #0b0b0b; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }
.g-rules strong { color: var(--cream); }

.g-hero-h1-sub { display: block; margin-top: .35em; font-size: .42em; font-weight: 600; letter-spacing: -.01em; color: rgba(243,243,239,.75); }

/* ==========================================================================
   Free Guides hub (guides.html, 12 Nov 2026): filter bar + guide tiles.
   Add a guide = add one <a class="gh-tile"> with data-topics="slug slug".
   ========================================================================== */
.gh-wrap { max-width: 1080px; margin: 0 auto; }
.gh-bar { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; justify-content: space-between; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.gh-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.gh-chip {
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; min-height: 44px;
  padding: 0 1rem; border-radius: 999px; border: 1px solid rgba(11,11,11,.25); background: #fff; color: var(--cream);
  display: inline-flex; align-items: center; gap: .45rem; transition: background var(--t), border-color var(--t), color var(--t);
}
.gh-chip:hover { border-color: #0b0b0b; }
.gh-chip[aria-pressed="true"] { background: #0b0b0b; border-color: #0b0b0b; color: #fff; }
.gh-chip .n { font-size: .78rem; font-weight: 700; color: var(--cream-fai); }
.gh-chip[aria-pressed="true"] .n { color: var(--accent); }
.gh-search { position: relative; flex: 0 1 280px; min-width: 220px; }
.gh-search input { width: 100%; font: inherit; font-size: .95rem; color: var(--cream); background: #fff; border: 1px solid rgba(11,11,11,.3); padding: .7rem .9rem .7rem 2.4rem; min-height: 46px; border-radius: 999px; }
.gh-search svg { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--cream-fai); pointer-events: none; }
.gh-count { font-size: .9rem; color: var(--cream-fai); margin: -1rem 0 1.4rem; }

.gh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
@media (max-width: 960px) { .gh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .gh-grid { grid-template-columns: 1fr; } .gh-search { flex-basis: 100%; } }

.gh-tile {
  display: flex; flex-direction: column; background: #fff; color: var(--cream); border: 1px solid var(--line);
  border-top: 6px solid #0b0b0b; padding: 1.5rem 1.4rem 1.4rem; min-height: 100%;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.gh-tile:hover { border-top-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(0,0,0,.35); }
.gh-tile[hidden] { display: none; }
.gh-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.gh-tag { font-size: .74rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: var(--char-2); color: var(--cream); }
.gh-tile h2 { margin: 0 0 .7rem; font-size: 1.35rem; font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }
.gh-tile p { margin: 0 0 1.2rem; font-size: .96rem; line-height: 1.6; color: var(--cream-dim); }
.gh-meta { list-style: none; margin: auto 0 1.2rem; padding: 0; display: grid; gap: .35rem; font-size: .86rem; color: var(--cream-dim); }
.gh-meta li { position: relative; padding-left: 1.2rem; }
.gh-meta li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 3px; border-radius: 2px; background: var(--accent-ink); }
.gh-open { font-weight: 700; font-size: .9rem; display: inline-flex; gap: .4rem; align-items: center; }
.gh-open .arr { color: var(--accent-ink); transition: transform var(--t); }
.gh-tile:hover .gh-open .arr { transform: translateX(4px); }

.gh-tile--soon { background: #0b0b0b; color: #f3f3ef; border-color: #0b0b0b; border-top-color: var(--accent); }
.gh-tile--soon:hover { transform: none; box-shadow: none; }
.gh-tile--soon h2 { color: #f3f3ef; }
.gh-tile--soon p { color: rgba(243,243,239,.72); }
.gh-tile--soon .gh-open { color: var(--accent); }
.gh-tile--soon .gh-open .arr { color: var(--accent); }
main .gh-tile--soon:focus-visible { outline-color: var(--accent); }

.gh-empty { padding: 2.4rem 1rem; text-align: center; color: var(--cream-dim); border: 1px dashed var(--line); }
.gh-empty[hidden] { display: none; }
.gh-empty button { font: inherit; font-weight: 700; background: none; border: 0; text-decoration: underline; cursor: pointer; color: var(--cream); min-height: 44px; }

.gh-cta { max-width: 1080px; margin: clamp(3rem, 6vw, 4.5rem) auto 0; }

/* Free Guides: topic + tool filter rows (12 Nov 2026) */
.gh-bar { align-items: flex-end; }
.gh-filters { display: grid; gap: .8rem; flex: 1 1 520px; }
.gh-row { display: flex; align-items: center; gap: .9rem; }
.gh-row-label { flex: none; width: 3.2rem; font-size: .9rem; font-weight: 700; color: var(--cream); }
@media (max-width: 620px) {
  .gh-row { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .gh-row-label { width: auto; }
}
.gh-bar { flex-direction: column; align-items: stretch; gap: 1rem; }
.gh-filters { flex: none; }
.gh-search { flex: none; width: 100%; max-width: 360px; }
