/* ===================================
   Article / long-form page redesign — overrides on top of xbit.css.
   Loaded only by markdown.html.j2, so these rules are safe to be
   page-wide (body, .guide-header, etc.) without extra scoping.
   Shares its palette and type scale with stop.css.
   =================================== */

body {
    background-color: #efece4;
    color: #443f39;
}

a {
    color: #8e6a41;
}

a:hover {
    color: #6f5130;
}

.guide-header {
    padding: 10px 16px;
}

.header-logo {
    width: 132px;
}

.guide-main {
    max-width: 720px;
    padding: 3rem 20px 0;
}

.guide-footer {
    margin-top: 4rem;
    padding: 26px 16px;
}

.footer-logo {
    width: 132px;
}

/* ---- Back link ---- */
.article-back-link {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #8e6a41;
}

/* ---- Headings ---- */
.guide-main h1 {
    font-family: museo-slab, "Times New Roman", Times, serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: #38353c;
    margin-bottom: 1rem;
}

.guide-main h2 {
    position: relative;
    margin-top: 48px;
    margin-bottom: 14px;
    padding: 0;
    font-family: museo-slab, "Times New Roman", Times, serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #38353c;
    text-transform: none;
}

.guide-main h2::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin-bottom: 14px;
    background-color: #8e6a41;
}

.guide-main h2::after {
    display: none;
}

.guide-main h3 {
    margin-top: 28px;
    margin-bottom: 10px;
    font-family: museo-slab, "Times New Roman", Times, serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    color: #8e6a41;
}

/* ---- Body copy ---- */
.guide-main p {
    font-size: 17px;
    line-height: 1.7;
    color: #443f39;
    margin-bottom: 1rem;
}

.guide-main ul,
.guide-main ol {
    margin: 0 0 1rem 1.3rem;
}

.guide-main li {
    font-size: 17px;
    line-height: 1.7;
    color: #443f39;
    margin-bottom: 0.4rem;
}

.guide-main blockquote {
    margin: 1.5rem 0;
    padding: 0.25rem 0 0.25rem 18px;
    border-left: 3px solid #c9b394;
    color: #6d665e;
    font-style: italic;
}

.guide-main hr {
    margin: 2.5rem 0;
    border: none;
    border-top: 1px solid #ddd7c9;
}

.guide-main strong {
    color: #38353c;
}

/* ---- CTA buttons ---- */
a.big-button {
    background-color: #8e6a41;
    border-radius: 12px;
    font-weight: 700;
    transition: background-color 0.15s ease;
}

a.big-button:hover {
    background-color: #7c5c37;
    opacity: 1;
}

/* ---- Feedback form (_feedback_form.html.j2) ---- */
.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 1.5rem 0 1rem;
}

.feedback-form-label {
    font-size: 15px;
    font-weight: 700;
    color: #38353c;
}

.feedback-form-text {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 17px;
    line-height: 1.5;
    color: #443f39;
    background-color: #fffdf8;
    border: 1px solid #ddd7c9;
    border-radius: 12px;
    resize: vertical;
}

.feedback-form-text:focus {
    outline: 2px solid #8e6a41;
    outline-offset: 1px;
}

.guide-main .feedback-form-note {
    margin: 0;
    font-size: 14px;
    color: #6d665e;
}

.feedback-form-submit {
    align-self: flex-start;
    min-height: 44px;
    padding: 0 28px;
    font: inherit;
    font-weight: 700;
    color: #fffdf8;
    background-color: #8e6a41;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.feedback-form-submit:hover {
    background-color: #7c5c37;
}

.feedback-form-submit:disabled {
    opacity: 0.6;
    cursor: default;
}

.guide-main .feedback-form-status {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.guide-main .feedback-form-status[data-status="failed"] {
    color: #a33a2a;
}
