/* Guides: the section index and the article page.
 *
 * A practical magazine article on the product's light background: one text
 * column (--g-col, 44rem), one gutter (16px on phones), generous type.
 *
 * Alignment system (the whole article follows it):
 *   - Text, headings, the header, every block and the closing block share the
 *     column's two edges. Nothing is wider, nothing is indented.
 *   - Every block is one card (1px rule, --g-radius) whose content sits at
 *     --g-pad from both edges.
 *   - Colour carries meaning: navy is the article, gold (#C9A87A, darker
 *     #8A6A3B for text) is "yours" (the agent's name on the presentation, the
 *     better example, the checklist boxes), the gold wash is EstateDeck's own
 *     voice (the product note), quieter than the article.
 *
 * Blocks: .g-tip, .g-ba (before/after), .g-msg (message to copy), .g-check,
 * .g-story, .g-note (With EstateDeck), .g-fig (presentation picture),
 * .g-download, .g-table, .guide-close (paste pill).
 */

.guides-page {
    --g-col: 44rem;
    --g-pad: 24px;
    --g-radius: 16px;
    --g-gap: 2rem;
    --g-line: var(--border);
    --g-gold: #C9A87A;
    --g-gold-ink: #8A6A3B;
    --g-gold-wash: #F6F1E8;
    --g-slate-wash: #F1F5F9;
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--bg);
}

.guides-page > .footer {
    margin-top: auto;
}

.guides-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.guides-page :focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ------------------------------------------------------------ breadcrumb */

.guide-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.guide-crumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
}

/* the separator belongs to the item before it, so a line never starts with "/" */
.guide-crumbs li:not(:last-child)::after {
    content: "/";
    color: var(--text-lighter);
}

.guide-crumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: var(--text-muted);
    text-decoration: none;
}

.guide-crumbs a:hover {
    color: var(--primary);
}

.guide-crumbs .crumb-current {
    flex: 1 1 0;
}

.guide-crumbs [aria-current] {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 40ch;
    color: var(--text-main);
}

/* ------------------------------------------------------------ article head */

.guide {
    width: min(var(--g-col), 100% - 32px);
    margin: 0 auto;
    padding: 40px 0 24px;
}

.guide-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 1.3rem + 2.6vw, 2.875rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--primary);
    margin: 0;
    text-wrap: balance;
}

.guide-standfirst {
    margin: 20px 0 0;
    font-size: 1.25rem;
    line-height: 1.55;
    color: #475569;
    text-wrap: pretty;
}

.guide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin: 24px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--g-line);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ------------------------------------------------------------ article body */

.guide-body {
    margin-top: 40px;
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-main);
}

.guide-body :where(p) {
    margin: 0 0 1.15em;
}

.guide-body :where(h2) {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.625rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: var(--primary);
    margin: 2.2em 0 0.6em;
    scroll-margin-top: 24px;
    text-wrap: balance;
}

.guide-body :where(h3, h4) {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.3;
    color: var(--primary);
    margin: 1.8em 0 0.4em;
    text-wrap: balance;
}

.guide-body :where(ul, ol) {
    margin: 0 0 1.25em;
    padding-left: 1.25em;
}

.guide-body :where(li) {
    margin: 0 0 0.45em;
    padding-left: 0.25em;
}

.guide-body :where(ul) > li::marker {
    color: var(--g-gold);
}

.guide-body :where(a:not([class])),
.guide-body .g-product-link,
.guide-close-text a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--g-gold);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

.guide-body :where(a):hover {
    text-decoration-color: var(--primary);
}

.guide-body :where(strong, b) {
    font-weight: 700;
    color: var(--primary);
}

.guide-body :where(blockquote) {
    margin: 1.5em 0;
    padding-left: 1.25em;
    border-left: 2px solid var(--g-line);
    color: #475569;
}

.guide-body :where(hr) {
    border: 0;
    border-top: 1px solid var(--g-line);
    margin: 2.5em 0;
}

/* --- one vertical rhythm and one card for every block --- */

.guide-body > :is(.g-tip, .g-ba, .g-msg, .g-check, .g-story, .g-note, .g-fig, .g-download, .g-table) {
    margin: var(--g-gap) 0;
    padding: var(--g-pad);
    border-radius: var(--g-radius);
}

.guide-body > :is(.g-tip, .g-ba, .g-msg, .g-download, .g-table, .g-fig),
.guide-close {
    background: var(--surface);
    border: 1px solid var(--g-line);
}

/* a block right under its heading sits closer to it */
.guide-body > :is(h2, h3) + :is(.g-tip, .g-ba, .g-msg, .g-check, .g-story, .g-note, .g-fig, .g-download, .g-table) {
    margin-top: 1rem;
}

.guide-body > [class] :last-child {
    margin-bottom: 0;
}

/* one small heading style inside blocks */
.g-ba-label,
.g-msg-label,
.g-check-title,
.g-story-lead,
.g-note-head,
.g-table-caption {
    margin: 0 0 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: var(--primary);
}

/* ------------------------------------------------------------ tip */

.guide-body .g-tip {
    border-left: 3px solid var(--g-gold);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.g-tip-lead {
    margin-right: 4px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--g-gold-ink) !important;
}

/* ------------------------------------------------------------ before / after */

.guide-body .g-ba {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    overflow: hidden;
}

.g-ba-side {
    padding: var(--g-pad);
    font-size: 1rem;
    line-height: 1.65;
}

.g-ba-side.is-before {
    background: var(--g-slate-wash);
    color: var(--text-muted);
}

.g-ba-side.is-before .g-ba-label {
    color: var(--text-muted);
}

.g-ba-side.is-after {
    border-left: 1px solid var(--g-line);
}

.g-ba-side.is-after .g-ba-label {
    color: var(--g-gold-ink);
}

.g-ba-side .g-ba-label::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--text-lighter);
    vertical-align: 1px;
}

.g-ba-side.is-after .g-ba-label::before {
    background: var(--g-gold);
}

.g-ba-text {
    overflow-wrap: anywhere;
}

/* ------------------------------------------------------------ message to copy */

.g-msg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
}

.g-msg-head .g-msg-label {
    margin: 0;
}

.g-copy {
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--primary);
    font: 600 0.875rem 'Outfit', sans-serif;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.g-copy[hidden] {
    display: none;
}

.g-copy:hover {
    background: var(--primary);
    color: #fff;
}

.g-copy.is-done {
    border-color: var(--g-gold-ink);
    background: var(--g-gold-wash);
    color: var(--g-gold-ink);
}

/* the message itself, as the buyer will read it: a sent bubble */
.g-msg-text {
    max-width: 34rem;
    padding: 14px 18px;
    border-radius: 18px 18px 4px 18px;
    margin-left: auto;
    background: var(--g-slate-wash);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--primary);
    overflow-wrap: anywhere;
    user-select: all;
}

.g-msg-text p {
    margin: 0 0 0.8em;
}

/* ------------------------------------------------------------ checklist
   No card: a list of gold ticks on the column's edges, under an optional
   small gold title. guides.js makes the items tappable (the ring fills with
   gold); without JS it stays a plain list of ticks. */

.guide-body > .g-check {
    padding: 0;
    border-radius: 0;
}

.g-check .g-check-title {
    margin-bottom: 6px;
    color: var(--g-gold-ink);
}

.g-check-list {
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.g-check-list li {
    position: relative;
    margin: 0;
    padding: 7px 0 7px 38px !important;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--primary);
    transition: color 0.2s ease;
}

/* the ring */
.g-check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(7px + 0.8em - 12px);
    width: 24px;
    height: 24px;
    box-sizing: border-box;
    border: 1.5px solid rgba(201, 168, 122, 0.55);
    border-radius: 50%;
    background: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* the tick inside it */
.g-check-list li::after {
    content: "";
    position: absolute;
    left: 8.5px;
    top: calc(7px + 0.8em - 8px);
    width: 6px;
    height: 11px;
    border-right: 2px solid var(--g-gold);
    border-bottom: 2px solid var(--g-gold);
    transform: rotate(45deg);
    transition: border-color 0.2s ease;
}

.g-check-list li[role="checkbox"] {
    cursor: pointer;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.g-check-list li[role="checkbox"]:focus-visible {
    outline: 2px solid var(--g-gold);
    outline-offset: 2px;
}

.g-check-list li[aria-checked="true"] {
    color: var(--text-muted);
}

.g-check-list li[aria-checked="true"]::before {
    border-color: var(--g-gold);
    background: var(--g-gold);
}

.g-check-list li[aria-checked="true"]::after {
    border-color: #fff;
}

/* ------------------------------------------------------------ from the field */

.guide-body .g-story {
    background: var(--primary);
    color: #E2E8F0;
}

.g-story-lead {
    color: var(--g-gold) !important;
}

.g-story-text {
    font-size: 1.125rem;
    line-height: 1.7;
}

.g-story-text :is(strong, b) {
    color: #fff !important;
}

.g-story-text a {
    color: #fff !important;
}

/* ------------------------------------------------------------ With EstateDeck */

.guide-body .g-note {
    background: var(--g-gold-wash);
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #475569;
}

.g-note-head {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--g-gold-ink);
    margin-bottom: 6px;
}

.g-wordmark {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
    color: var(--primary);
}

.g-wordmark-gold {
    color: var(--g-gold-ink);
}

.guide-body .g-note a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--g-gold);
    text-underline-offset: 3px;
    white-space: nowrap;
}

/* ------------------------------------------------------------ presentation picture */

.guide-body .g-fig {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    align-items: center;
    gap: var(--g-pad) 28px;
    background: var(--g-gold-wash);
    border-color: transparent;
}

/* the presentation in miniature: a white page, the agent strip in gold */
.g-pres {
    overflow: hidden;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 28px -12px rgba(15, 23, 42, 0.28);
    font-size: 0.8125rem;
    line-height: 1.35;
}

.g-pres-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.g-pres-body {
    padding: 12px 14px 0;
}

.g-pres-title {
    margin: 0 !important;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.25;
    color: var(--primary);
}

.g-pres-facts {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin: 4px 0 12px !important;
    color: var(--text-muted);
}

.g-pres-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--primary);
    white-space: nowrap;
}

.g-pres-agent {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 -14px;
    padding: 10px 14px 12px;
    border-top: 2px solid var(--g-gold);
    background: #FBF8F2;
}

.g-pres-avatar {
    flex: none;
    width: 36px;
    height: 36px;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--g-gold);
}

.g-pres-who {
    display: grid;
    min-width: 0;
}

.g-pres-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--g-gold-ink);
}

.g-pres-contact {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.g-fig-caption {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-main);
}

.g-fig-caption p {
    margin: 0 0 0.8em;
}

.g-fig-more {
    margin: 0 !important;
    font-size: 0.9375rem;
}

.guide-body .g-fig-link {
    font-weight: 600;
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--g-gold);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

/* ------------------------------------------------------------ download */

.g-download-btns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 12rem));
    gap: 10px;
}

.g-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 10px;
    border: 1px solid var(--primary);
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.g-btn-primary {
    background: var(--primary);
    color: #fff;
}

.g-btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.g-btn-outline {
    background: var(--surface);
    color: var(--primary);
}

.g-btn-outline:hover {
    background: var(--bg-subtle);
}

.g-download-note {
    margin: 12px 0 0 !important;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ------------------------------------------------------------ table */

.guide-body .g-table {
    padding: var(--g-pad) 0 8px;
}

.g-table-caption {
    padding: 0 var(--g-pad);
}

.g-table-scroll {
    overflow-x: auto;
}

.g-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    line-height: 1.5;
}

.g-table :is(th, td) {
    padding: 10px 8px;
    border-top: 1px solid var(--g-line);
    text-align: left;
    vertical-align: top;
}

.g-table :is(th, td):first-child {
    padding-left: var(--g-pad);
}

.g-table :is(th, td):last-child {
    padding-right: var(--g-pad);
}

.g-table thead th {
    border-top: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.g-table th {
    font-weight: 600;
    color: var(--primary);
}

/* ------------------------------------------------------------ closing paste block */

.guide-close {
    margin: 3rem 0 0;
    padding: 22px var(--g-pad) var(--g-pad);
    border-radius: var(--g-radius);
}

.guide-close-text {
    max-width: 40ch;
    margin: 0 0 16px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    font-size: 1.375rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--primary);
}

.guide-paste-row {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--g-line);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.guide-paste-row:focus-within {
    border-color: var(--primary);
}

.guide-paste-input {
    flex: 1;
    min-width: 0;
    padding: 0 16px;
    font: inherit;
    font-size: 0.9375rem;
    border: 0;
    background: transparent;
    color: var(--primary);
}

.guide-paste-input:focus {
    outline: none;
}

.guide-cta-short {
    display: none;
}

.guide-paste-btn {
    flex: none;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* ------------------------------------------------------------ sources (optional)
   A collapsed line at the end of the article: small, grey, no card (the
   global `details` style of the forms is undone here). */

.guide .g-sources {
    margin: 2.5rem 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.guide .g-sources-summary {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-height: 44px;
    margin: 0;
    list-style: none;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
}

.g-sources-summary:hover {
    color: var(--primary);
}

.g-sources-summary::-webkit-details-marker {
    display: none;
}

.g-sources-summary::after {
    content: "";
    width: 5px;
    height: 5px;
    margin-left: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.g-sources[open] .g-sources-summary::after {
    transform: translateY(1px) rotate(-135deg);
}

.guide .g-sources-list {
    margin: 0 0 8px;
    padding-left: 1.3em;
    color: var(--text-muted);
    line-height: 1.55;
}

.g-sources-list li + li {
    margin-top: 4px;
}

.g-sources-list a {
    color: inherit;
    text-decoration-color: var(--g-line);
    overflow-wrap: anywhere;
}

.g-sources-list a:hover {
    color: var(--primary);
}

/* ------------------------------------------------------------ guide lists */

.guides-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gl-item {
    border-top: 1px solid var(--g-line);
}

.gl-link {
    display: grid;
    gap: 8px;
    padding: 26px 0 28px;
    text-decoration: none;
    color: inherit;
}

.gl-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.375rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: text-decoration-color var(--transition-fast);
    text-wrap: balance;
}

.gl-link:hover .gl-title,
.gl-link:focus-visible .gl-title {
    text-decoration-color: var(--g-gold);
}

.gl-desc {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

.gl-time {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* other guides, at the foot of an article */
.guide-more {
    width: min(var(--g-col), 100% - 32px);
    margin: 0 auto;
    padding: 32px 0 80px;
}

.guide-more-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.guide-more-title {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--primary);
}

.guide-more-all {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--g-gold);
    text-underline-offset: 3px;
}

.guides-list.is-compact .gl-link {
    padding: 18px 0 20px;
    gap: 4px;
}

.guides-list.is-compact .gl-title {
    font-size: 1.125rem;
}

.guides-list.is-compact .gl-desc {
    font-size: 0.9375rem;
}

/* ------------------------------------------------------------ index */

.guides-index {
    width: min(64rem, 100% - 32px);
    margin: 0 auto;
    padding: 40px 0 96px;
}

.guides-index-head {
    max-width: var(--g-col);
    margin-bottom: 40px;
}

.guides-index-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: clamp(2.125rem, 1.3rem + 3.2vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--primary);
    margin: 0 0 18px;
    text-wrap: balance;
}

.guides-index-intro {
    margin: 0;
    font-size: 1.1875rem;
    line-height: 1.6;
    color: #475569;
}

@media (min-width: 860px) {
    .guides-index .guides-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 48px;
    }

    .guides-index .gl-link {
        height: 100%;
        align-content: start;
    }
}

/* ------------------------------------------------------------ phones */

@media (max-width: 600px) {
    .guides-page {
        --g-gap: 1.75rem;
        --g-pad: 18px;
    }

    .guide {
        padding-top: 16px;
    }

    /* articles: just a back link to the section */
    .guide-crumbs.is-article .crumb-home,
    .guide-crumbs.is-article .crumb-current {
        display: none;
    }

    .guide-crumbs.is-article .crumb-section::after {
        content: none;
    }

    .guide-crumbs.is-article .crumb-section a::before {
        content: "";
        width: 7px;
        height: 7px;
        margin-right: 8px;
        border-left: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
    }

    .guide-crumbs ol {
        font-size: 0.9375rem;
        margin-bottom: 8px;
    }

    .guide-standfirst {
        font-size: 1.125rem;
    }

    .guide-body {
        margin-top: 32px;
        font-size: 1.0625rem;
    }

    .guide-body :where(h2) {
        font-size: 1.4375rem;
    }

    .guide-body .g-ba {
        grid-template-columns: minmax(0, 1fr);
    }

    .g-ba-side.is-after {
        border-left: 0;
        border-top: 1px solid var(--g-line);
    }

    .guide-body .g-fig {
        grid-template-columns: minmax(0, 1fr);
    }

    .g-pres {
        max-width: 18rem;
    }

    .g-msg-text {
        margin-left: 0;
    }

    .guide-close {
        padding: 18px var(--g-pad) var(--g-pad);
    }

    .guide-close-text {
        font-size: 1.25rem;
    }

    .g-download-btns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* One pill on phones too: input and button side by side, short button label */
    .guide-paste-input {
        height: 44px;
        padding: 0 8px 0 14px;
        font-size: 16px;
        text-overflow: ellipsis;
    }

    .guide-paste-input::placeholder {
        font-size: 15px;
    }

    .guide-paste-btn {
        padding-left: 18px;
        padding-right: 18px;
    }

    .guide-paste-btn .guide-cta-long {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .guide-paste-btn .guide-cta-short {
        display: inline;
    }

    .gl-link {
        padding: 20px 0 22px;
    }

    .gl-title {
        font-size: 1.1875rem;
    }
}

@media (max-width: 380px) {
    .g-download-btns {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .guides-page * {
        transition: none !important;
    }
}
