/* Shayr Help Center layout. Colors, fonts, header, footer and buttons come from /assets/site.css. */

/* Help bar under the site header */
.help-bar { background: var(--paper-alt); border-bottom: 1px solid var(--line); }
.help-bar-in { max-width: var(--maxw); margin: 0 auto; padding: 8px var(--gutter); display: flex; align-items: center; gap: 18px; min-height: 52px; }
.help-bar-name { font-family: var(--serif); font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.help-bar-link { color: var(--ink-70); text-decoration: none; font-size: .92rem; white-space: nowrap; }
.help-bar-link:hover { color: var(--ink); text-decoration: underline; }
.help-bar form { flex: 1; max-width: 360px; margin-left: auto; }
.help-bar input[type=search], .help-hero input[type=search] { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 18px; }
.help-bar input::placeholder, .help-hero input::placeholder { color: var(--ink-45); }
@media (max-width: 600px) { .help-bar-link { display: none; } .help-bar-in { gap: 12px; } }

/* Hero (index) */
.help-hero { background: radial-gradient(ellipse 70% 80% at 85% 0%, color-mix(in srgb, var(--green) 10%, transparent) 0%, transparent 60%); border-bottom: 1px solid var(--line); }
.help-hero-in { max-width: 1120px; margin: 0 auto; padding: 64px 20px 48px; }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); margin: 0 0 14px; }
.help-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 12px; }
.help-hero p.lede { color: var(--ink-70); font-size: 1.1rem; margin: 0 0 26px; max-width: 560px; }
.help-hero form { max-width: 560px; position: relative; }
.help-hero input[type=search] { padding: 15px 18px; font-size: 1.05rem; border-radius: 14px; box-shadow: var(--shadow-sm); }
.popular { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ink-45); font-size: .9rem; }
.popular a { background: var(--surface); border: 1px solid var(--line); color: var(--ink-70); text-decoration: none; padding: 4px 12px; border-radius: 999px; font-size: .88rem; }
.popular a:hover { border-color: var(--green); color: var(--ink); }

/* Index grids */
.hsection { padding: 44px 0 8px; }
.hsection h2 { font-size: 1.5rem; margin: 0 0 18px; }
.hcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hcard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.hcard:hover { border-color: var(--green); transform: translateY(-1px); color: var(--ink); }
.hcard .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--green-tint); color: var(--green-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.hcard .ic svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hcard h3 { font-size: 1.15rem; margin: 0 0 4px; }
.hcard p { margin: 0; color: var(--ink-70); font-size: .93rem; line-height: 1.5; }
.hcard .n { display: block; margin-top: 10px; color: var(--ink-45); font-size: .82rem; }
.results { display: none; margin-top: 8px; }
.results.on { display: block; }
.res { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.res:hover b { color: var(--green-deep); }
.res b { display: block; font-weight: 600; }
.res span { display: block; color: var(--ink-70); font-size: .92rem; }
.res small { color: var(--ink-45); font-size: .8rem; }
.empty { color: var(--ink-70); padding: 20px 0; }
.help-cta { margin: 56px 0 72px; background: var(--paper-alt); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.help-cta h2 { font-size: 1.3rem; margin: 0 0 4px; }
.help-cta p { margin: 0; color: var(--ink-70); }

/* Article layout */
.layout { max-width: 1120px; margin: 0 auto; padding: 28px 20px 64px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
@media (max-width: 880px) { .layout { grid-template-columns: 1fr; gap: 12px; } .side { order: 2; } }
.side { font-size: .93rem; position: sticky; top: 76px; align-self: start; }
@media (max-width: 880px) { .side { position: static; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; } }
.side h2 { font-family: var(--sans); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-45); margin: 0 0 8px; font-weight: 700; }
.side ul { list-style: none; margin: 0 0 20px; padding: 0; }
.side li a { display: block; padding: 6px 10px; margin: 0 -10px; border-radius: 8px; color: var(--ink-70); text-decoration: none; line-height: 1.4; }
.side li a:hover { background: var(--green-tint); color: var(--ink); }
.side li a[aria-current=page] { background: var(--green-tint); color: var(--green-deep); font-weight: 600; }
.crumbs { font-size: .88rem; color: var(--ink-45); margin-bottom: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--ink-70); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
article { min-width: 0; max-width: 720px; }
article h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 0 0 14px; }
.answer { font-size: 1.15rem; line-height: 1.55; color: var(--ink); margin: 0 0 28px; padding-left: 16px; border-left: 3px solid var(--green); }
article h2 { font-size: 1.45rem; margin: 40px 0 12px; scroll-margin-top: 80px; }
article h3 { font-size: 1.15rem; margin: 28px 0 8px; }
article p { margin: 0 0 14px; }
article ul, article ol { padding-left: 22px; margin: 0 0 16px; }
article li { margin-bottom: 6px; }
article strong { font-weight: 600; }
article code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .88em; background: var(--paper-alt); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; word-break: break-word; }
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 8px; }
ol.steps > li { counter-increment: s; position: relative; padding: 0 0 26px 48px; margin: 0; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--on-green); font-weight: 700; font-size: .92rem; display: flex; align-items: center; justify-content: center; }
ol.steps > li::after { content: ""; position: absolute; left: 15px; top: 38px; bottom: 8px; width: 2px; background: var(--line); }
ol.steps > li:last-child::after { display: none; }
ol.steps .t { margin: 0 0 10px; }
figure.shot { margin: 12px 0 4px; }
figure.shot img { display: block; border-radius: 18px; border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm); background: var(--surface); }
figure.shot.phone img { width: 300px; max-width: 100%; }
figure.shot.wide img { width: 100%; }
figure.shot.pair { display: flex; flex-wrap: wrap; gap: 14px; }
figure.shot.pair img { width: 240px; max-width: calc(50% - 7px); }
figcaption { color: var(--ink-45); font-size: .85rem; margin-top: 8px; }
.callout { background: var(--green-tint); border: 1px solid var(--green-tint-strong); border-radius: 12px; padding: 14px 16px; margin: 18px 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout.warn { background: var(--terracotta-tint); border-color: color-mix(in srgb, var(--terracotta) 35%, transparent); }
.callout .lbl { display: block; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; color: var(--green-deep); }
.callout.warn .lbl { color: var(--terracotta); }
.trouble details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 8px; }
.trouble summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.trouble summary::-webkit-details-marker { display: none; }
.trouble summary::after { content: "+"; color: var(--green); font-weight: 700; }
.trouble details[open] summary::after { content: "\2212"; }
.trouble .a { padding: 0 16px 6px; color: var(--ink-70); }
table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: .94rem; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-45); white-space: nowrap; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 0; }
.related a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; }
.related a:hover { color: var(--green-deep); }
.related a small { display: block; font-weight: 400; color: var(--ink-70); font-size: .9rem; }
.helpful { margin-top: 40px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.helpful b { font-weight: 600; }
.helpful .btns { display: flex; gap: 8px; }
.helpful a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 5px 16px; text-decoration: none; color: var(--ink); font-size: .92rem; }
.helpful a:hover { border-color: var(--green); color: var(--green-deep); }
.meta { margin-top: 18px; color: var(--ink-45); font-size: .85rem; }
dl.gloss dt { font-family: var(--serif); font-size: 1.2rem; margin-top: 22px; scroll-margin-top: 80px; }
dl.gloss dd { margin: 4px 0 0; color: var(--ink-70); }
@media print { .help-bar, .side, .helpful { display: none; } .layout { display: block; } }

/* Ready-made prompts (Claude prompt pack): easy to select and copy */
article .prompt { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 10px; padding: 14px 16px; margin: 0 0 18px; color: var(--ink); font-size: .95rem; line-height: 1.6; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
article .prompt:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
