/**
 * Doyle's Guide Directory.
 *
 * White space carries the layout; pink and black are highlights, never fields.
 * Tier reads through scale, space and position rather than ornament — a
 * Platinum listing should look important because it is given room, not because
 * it has been given a gold border.
 *
 * Scoped under .dgd-* throughout so nothing leaks into the surrounding theme.
 */

.dgd-wrap {
    --dgd-pink:      #9B2D86;
    --dgd-pink-deep: #7D2169;
    --dgd-pink-soft: #C77DB3;
    --dgd-pink-wash: #FAF4F9;
    --dgd-ink:       #171317;
    --dgd-ink-soft:  #4A444C;
    --dgd-ink-mute:  #7A737E;
    --dgd-rule:      #E8E3E9;
    --dgd-ground:    #FFFFFF;

    max-width: 1060px;
    margin: 0 auto;
    padding: 48px 24px 96px;
    color: var(--dgd-ink);
    background: var(--dgd-ground);
    font-size: 16px;
    line-height: 1.6;
}

.dgd-wrap *,
.dgd-wrap *::before,
.dgd-wrap *::after { box-sizing: border-box; }

/* ---------- headings ---------- */

.dgd-head { margin-bottom: 40px; }

.dgd-title {
    font-size: clamp(30px, 4.6vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: 0 0 10px;
    text-wrap: balance;
    color: var(--dgd-ink);
}

.dgd-standfirst {
    font-size: 18px;
    color: var(--dgd-ink-soft);
    max-width: 56ch;
    margin: 0;
}

/* ---------- filters ---------- */

.dgd-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    padding: 22px 24px;
    border: 1px solid var(--dgd-rule);
    border-radius: 8px;
    margin-bottom: 22px;
    background: var(--dgd-ground);
}

/* Inline layout only. In the stacked sidebar form this collapsed each control
   to its content width and pushed it right — three ragged, half-width fields
   that read as broken. Overridden in the stacked block below. */
.dgd-searchbox-inline .dgd-filters,
.dgd-wrap > .dgd-filters { align-items: end; }

.dgd-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.dgd-field label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dgd-ink-mute);
}

.dgd-field select {
    width: 100%;
    padding: 9px 11px;
    font-size: 15px;
    font-family: inherit;
    color: var(--dgd-ink);
    background: #fff;
    border: 1px solid var(--dgd-rule);
    border-radius: 5px;
    line-height: 1.3;
}

.dgd-field select:focus-visible,
.dgd-wrap a:focus-visible,
.dgd-btn:focus-visible {
    outline: 2px solid var(--dgd-pink);
    outline-offset: 2px;
}

.dgd-field-actions { flex-direction: row; align-items: center; gap: 14px; }

.dgd-btn {
    display: inline-block;
    padding: 10px 22px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--dgd-pink);
    border: 1px solid var(--dgd-pink);
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease;
}
.dgd-btn:hover { background: var(--dgd-pink-deep); border-color: var(--dgd-pink-deep); color: #fff; }

.dgd-clear { font-size: 14px; color: var(--dgd-ink-mute); text-decoration: underline; }
.dgd-clear:hover { color: var(--dgd-pink); }

.dgd-applied {
    font-size: 14px;
    color: var(--dgd-ink-mute);
    margin: 0 0 26px;
}

/* ---------- results ---------- */

.dgd-results {
    list-style: none;
    margin: 0 0 44px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dgd-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0;
    border-top: 1px solid var(--dgd-rule);
}
.dgd-card:last-child { border-bottom: 1px solid var(--dgd-rule); }

/* Every listing has an image column, so rows stay aligned whether or not a
   photograph was supplied. A paid listing earns a larger one and more room —
   that difference in weight is what the tier actually buys, and it is never
   spelled out to a visitor in words. */
.dgd-card { grid-template-columns: 84px 1fr; }
.dgd-card.is-paid { grid-template-columns: 104px 1fr; }
.dgd-card.is-paid.dgd-card-platinum { grid-template-columns: 148px 1fr; padding: 40px 0; }
.dgd-card.is-paid.dgd-card-firm_premium,
.dgd-card.is-paid.dgd-card-individual_premium { padding: 34px 0; }

.dgd-card-media { min-width: 0; }

.dgd-card-body { min-width: 0; }

.dgd-card-title {
    font-size: 19px;
    line-height: 1.28;
    font-weight: 600;
    margin: 0 0 4px;
    letter-spacing: -0.005em;
}
.dgd-card-platinum .dgd-card-title { font-size: 25px; }
.dgd-card-firm_premium .dgd-card-title,
.dgd-card-individual_premium .dgd-card-title { font-size: 22px; }

.dgd-card-title a { color: var(--dgd-ink); text-decoration: none; }
.dgd-card-title a:hover { color: var(--dgd-pink); text-decoration: underline; text-underline-offset: 3px; }

.dgd-card-place {
    font-size: 14px;
    color: var(--dgd-ink-mute);
    margin: 0 0 10px;
}

.dgd-card-areas,
.dgd-taglist {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
    padding: 0;
}

.dgd-card-areas a,
.dgd-taglist a {
    display: inline-block;
    padding: 3px 10px;
    font-size: 12.5px;
    color: var(--dgd-pink-deep);
    background: var(--dgd-pink-wash);
    border-radius: 3px;
    text-decoration: none;
    line-height: 1.5;
}
.dgd-card-areas a:hover,
.dgd-taglist a:hover { background: var(--dgd-pink); color: #fff; }

.dgd-card-summary {
    font-size: 15px;
    color: var(--dgd-ink-soft);
    margin: 0;
    max-width: 68ch;
}

/* ---------- photographs ---------- */

.dgd-photo { width: 100%; height: auto; border-radius: 6px; display: block; }

/* The placeholder is deliberately quiet: it keeps the row aligned without
   drawing attention to a listing that has no photograph. */
.dgd-photo-placeholder { opacity: .18; }

/* ---------- pagination ---------- */

.dgd-pagination { display: flex; flex-wrap: wrap; gap: 6px; }
.dgd-pagination .page-numbers {
    display: inline-block;
    padding: 7px 13px;
    font-size: 14px;
    color: var(--dgd-ink-soft);
    border: 1px solid var(--dgd-rule);
    border-radius: 4px;
    text-decoration: none;
}
.dgd-pagination .page-numbers:hover { border-color: var(--dgd-pink); color: var(--dgd-pink); }
.dgd-pagination .page-numbers.current {
    background: var(--dgd-pink);
    border-color: var(--dgd-pink);
    color: #fff;
    font-weight: 600;
}

/* ---------- empty ---------- */

.dgd-empty {
    padding: 52px 24px;
    text-align: center;
    border: 1px dashed var(--dgd-rule);
    border-radius: 8px;
    color: var(--dgd-ink-soft);
}
.dgd-empty p { margin: 0 0 12px; }

/* ---------- single listing ---------- */

.dgd-breadcrumb {
    font-size: 13.5px;
    color: var(--dgd-ink-mute);
    margin-bottom: 26px;
}
.dgd-breadcrumb a { color: var(--dgd-ink-mute); text-decoration: none; }
.dgd-breadcrumb a:hover { color: var(--dgd-pink); text-decoration: underline; }
.dgd-breadcrumb span { margin: 0 7px; }

.dgd-single-head {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--dgd-ink);
    margin-bottom: 40px;
}

.dgd-single-media { flex: 0 0 132px; }


.dgd-single-intro { min-width: 0; }

.dgd-single-title {
    font-size: clamp(27px, 3.8vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 600;
    margin: 0 0 8px;
    text-wrap: balance;
}

.dgd-single-meta { font-size: 14.5px; color: var(--dgd-ink-mute); margin: 0; }
.dgd-single-meta span { margin-right: 4px; }

.dgd-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
}

.dgd-prose { font-size: 17px; line-height: 1.65; color: var(--dgd-ink-soft); max-width: 74ch; }
.dgd-prose p { margin: 0 0 16px; }

.dgd-section { margin-top: 40px; }
.dgd-section h2,
.dgd-contact h2 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--dgd-ink-mute);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--dgd-rule);
}

/* ---------- recognition ---------- */

.dgd-banners {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.dgd-banners li { text-align: center; }
.dgd-banners img {
    max-width: 150px;
    height: auto;
    display: block;
    border-radius: 4px;
}
.dgd-banner-year {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--dgd-ink-mute);
    font-variant-numeric: tabular-nums;
}

/* ---------- contact panel ---------- */

.dgd-single-aside { position: sticky; top: 24px; }

.dgd-contact {
    padding: 24px;
    border: 1px solid var(--dgd-rule);
    border-radius: 8px;
}
.dgd-contact dl { margin: 0; }
.dgd-contact dt {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dgd-ink-mute);
    margin-top: 16px;
}
.dgd-contact dt:first-of-type { margin-top: 0; }
.dgd-contact dd {
    margin: 3px 0 0;
    font-size: 15px;
    color: var(--dgd-ink-soft);
    word-break: break-word;
}
.dgd-contact a { color: var(--dgd-pink); text-decoration: none; }
.dgd-contact a:hover { text-decoration: underline; text-underline-offset: 2px; }

.dgd-social {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--dgd-rule);
}
.dgd-social a {
    display: inline-block;
    padding: 5px 11px;
    font-size: 13px;
    border: 1px solid var(--dgd-rule);
    border-radius: 4px;
    color: var(--dgd-ink-soft);
}
.dgd-social a:hover { border-color: var(--dgd-pink); color: var(--dgd-pink); text-decoration: none; }

.dgd-cv { margin: 18px 0 0; font-size: 14.5px; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
    .dgd-single-grid { grid-template-columns: 1fr; gap: 36px; }
    .dgd-single-aside { position: static; }
}

@media (max-width: 620px) {
    .dgd-wrap { padding: 32px 18px 64px; }
    .dgd-single-head { flex-direction: column; gap: 18px; }
    .dgd-single-media { flex-basis: auto; max-width: 116px; }
    .dgd-card,
    .dgd-card.is-paid,
    .dgd-card.is-paid.dgd-card-platinum { grid-template-columns: 68px 1fr; gap: 16px; }
    .dgd-card.is-paid.dgd-card-platinum .dgd-card-title { font-size: 21px; }
}

@media (prefers-reduced-motion: reduce) {
    .dgd-wrap * { transition: none !important; animation: none !important; }
}

/* ---------- search shortcode / widget ---------- */

.dgd-searchbox { padding: 0; }
.dgd-searchbox .dgd-filters { margin-bottom: 0; }

.dgd-searchbox-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 14px;
    color: var(--dgd-ink);
}

.dgd-field input[type="search"],
.dgd-field input[type="text"] {
    width: 100%;
    padding: 9px 11px;
    font-size: 15px;
    font-family: inherit;
    color: var(--dgd-ink);
    background: #fff;
    border: 1px solid var(--dgd-rule);
    border-radius: 5px;
    line-height: 1.3;
}
.dgd-field input[type="search"]:focus-visible,
.dgd-field input[type="text"]:focus-visible {
    outline: 2px solid var(--dgd-pink);
    outline-offset: 2px;
}

/* Stacked is for a sidebar, where the horizontal grid has nowhere to go. */
.dgd-searchbox-stacked { padding: 0; max-width: none; }
/* The search panel matches the contact panel above it: same border, same
   padding, same full-sidebar width, so the right column reads as one stack of
   equal blocks rather than a box and a stray form. */
.dgd-searchbox-stacked .dgd-filters {
    display: flex;
    flex-direction: column;
    align-items: stretch;   /* every control fills the sidebar, none align right */
    gap: 12px;
    padding: 22px 20px;
    border: 1px solid var(--dgd-rule);
    border-radius: 8px;
    background: var(--dgd-ground);
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}
.dgd-searchbox-stacked { width: 100%; max-width: none; margin: 0; padding: 0; }
.dgd-searchbox-stacked .dgd-field { width: 100%; align-items: stretch; }
.dgd-searchbox-stacked .dgd-field-actions { flex-direction: column; align-items: stretch; }

/* The theme styles its own selects and inputs; these must win inside the
   widget or the fields size themselves inconsistently. */
.dgd-searchbox-stacked .dgd-field select,
.dgd-searchbox-stacked .dgd-field input[type="search"],
.dgd-searchbox-stacked .dgd-field input[type="text"],
.dgd-searchbox-stacked .dgd-btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: block;
}
.dgd-searchbox-stacked .dgd-btn { text-align: center; }

/* ---------- single-listing sidebars ---------- */

/* The contact panel stays the top of the right column whatever else is added:
   it is the reason someone is on the page, and widgets must never push the
   phone number below the fold. */
.dgd-single-aside { display: flex; flex-direction: column; gap: 18px; }

.dgd-side { min-width: 0; font-size: 13.5px; }
/* Theme widgets ship large thumbnails that pull the eye away from the listing.
   Constrained here so a sidebar reads as a sidebar. */
.dgd-side img { max-width: 100%; height: auto; }
.dgd-side-left img { max-width: 120px; }
.dgd-side-left li { display: flex; gap: 10px; align-items: flex-start; }
.dgd-side .widget,
.dgd-side section { margin-bottom: 22px; }
.dgd-side .widget:last-child { margin-bottom: 0; }
.dgd-side .widget-title,
.dgd-side h2,
.dgd-side h3 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--dgd-ink-mute);
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--dgd-rule);
}
.dgd-side ul { list-style: none; margin: 0; padding: 0; }
.dgd-side li { margin-bottom: 8px; line-height: 1.45; }
.dgd-side a { color: var(--dgd-ink-soft); text-decoration: none; }
.dgd-side a:hover { color: var(--dgd-pink); text-decoration: underline; }
.dgd-side img { max-width: 100%; height: auto; }

.dgd-side-left { padding-right: 4px; }
.dgd-side-right { padding-top: 0; }

/* Layouts. The listing itself always keeps the widest column. */
/* The listing is the hero. Sidebars are subordinate columns, never equals:
   the content keeps the majority of the width in every layout, and the page
   widens to make room rather than squeezing it. */
.dgd-layout-none  .dgd-single-grid { grid-template-columns: minmax(0, 1fr) 290px; }
.dgd-layout-right .dgd-single-grid { grid-template-columns: minmax(0, 1fr) 290px; }
.dgd-layout-left  .dgd-single-grid { grid-template-columns: 190px minmax(0, 1fr) 290px; }
.dgd-layout-both  .dgd-single-grid { grid-template-columns: 190px minmax(0, 1fr) 290px; }

/* The layout class is on .dgd-wrap itself, so these must be compound
   selectors — as descendant selectors they silently never matched and the
   three-column layouts squeezed the listing to 53 characters a line. */
.dgd-wrap.dgd-layout-right { max-width: 1180px; }
.dgd-wrap.dgd-layout-left,
.dgd-wrap.dgd-layout-both  { max-width: 1460px; }

@media (max-width: 1100px) {
    /* Below this the three-column layouts lose the left sidebar rather than
       squeezing the listing, which is the content people came for. */
    .dgd-layout-left  .dgd-single-grid,
    .dgd-layout-both  .dgd-single-grid { grid-template-columns: minmax(0, 1fr) 280px; }
    .dgd-side-left { display: none; }
}

@media (max-width: 860px) {
    .dgd-layout-none  .dgd-single-grid,
    .dgd-layout-right .dgd-single-grid,
    .dgd-layout-left  .dgd-single-grid,
    .dgd-layout-both  .dgd-single-grid { grid-template-columns: 1fr; }
    .dgd-side-left { display: block; }
}

/* ---------- full-width area below a listing ---------- */

.dgd-below {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 2px solid var(--dgd-ink);
}
.dgd-below-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--dgd-ink-mute);
    margin: 0 0 18px;
}
.dgd-below-widget { margin-bottom: 40px; }
.dgd-below-widget:last-child { margin-bottom: 0; }

/* Anything placed here gets the whole width, including a search form that would
   be unusable stacked into a 290px column. */
.dgd-below .dgd-filters,
.dgd-below form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    align-items: end;
    max-width: none;
}
.dgd-below select,
.dgd-below input[type="text"],
.dgd-below input[type="search"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--dgd-rule);
    border-radius: 5px;
    background: #fff;
    color: var(--dgd-ink);
}
.dgd-below img { max-width: 100%; height: auto; }

/* Whatever widget sits in the band, its submit control should match the rest
   of the directory rather than inheriting the theme's default button. */
.dgd-below input[type="submit"],
.dgd-below button[type="submit"],
.dgd-below .button {
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--dgd-pink);
    border: 1px solid var(--dgd-pink);
    border-radius: 5px;
    cursor: pointer;
    line-height: 1.3;
    width: auto;
}
.dgd-below input[type="submit"]:hover,
.dgd-below button[type="submit"]:hover,
.dgd-below .button:hover { background: var(--dgd-pink-deep); border-color: var(--dgd-pink-deep); }

.dgd-below label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dgd-ink-mute);
    margin-bottom: 6px;
}

@media (max-width: 640px) {
    .dgd-below .dgd-filters,
    .dgd-below form { grid-template-columns: 1fr; }
}

/* ---------- collapsing the theme's widget chrome in the sidebar ---------- */

/* PenNews wraps every widget title in .penci-block-heading with generous
   margins of its own. Left alone it pushed the search panel a long way below
   its own heading and left a ring of white space around the form. These have
   to out-specify the theme, hence the doubled class. */
.dgd-side .penci-block-heading,
.dgd-side-right .penci-block-heading {
    margin: 0 0 12px;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--dgd-rule);
}
.dgd-side .penci-block-heading .widget-title,
.dgd-side .penci-block-heading h4,
.dgd-side-right .penci-block-heading h4 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--dgd-ink-mute);
    line-height: 1.3;
}
.dgd-side .penci-block-heading h4 span { background: none; padding: 0; }

/* The widget itself must not add its own inset. */
.dgd-side .widget.widget_dgd_search,
.dgd-side .penci-widget-sidebar { margin: 0 0 18px; padding: 0; border: 0; background: none; }
.dgd-side .widget.widget_dgd_search:last-child { margin-bottom: 0; }

/* The form fills the sidebar edge to edge, like the contact panel. */
.dgd-side .dgd-searchbox,
.dgd-side .dgd-searchbox-stacked { width: 100%; max-width: none; margin: 0; padding: 0; }

/* PenNews draws a heavy black rule above widget titles via the block heading
   and its pseudo-elements. In this column it competes with the contact panel
   for attention; a hairline separator is enough. */
.dgd-side .penci-block-heading,
.dgd-side-right .penci-block-heading {
    border-top: 0;
    background: none;
}
.dgd-side .penci-block-heading::before,
.dgd-side .penci-block-heading::after,
.dgd-side .penci-block__title::before,
.dgd-side .penci-block__title::after { display: none; content: none; }

/* ---------- manage / edit ---------- */

.dgd-manage { max-width: 860px; }

.dgd-manage-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 2px solid var(--dgd-ink);
    margin-bottom: 32px;
}
.dgd-manage-head .dgd-title { margin-bottom: 6px; }
.dgd-manage-head .dgd-standfirst { font-size: 15px; }

.dgd-notice {
    padding: 18px 22px;
    border-left: 3px solid var(--dgd-pink);
    background: var(--dgd-pink-wash);
    border-radius: 0 6px 6px 0;
    margin-bottom: 26px;
}
.dgd-notice p { margin: 0 0 8px; }
.dgd-notice p:last-child { margin-bottom: 0; }
.dgd-notice-ok   { border-left-color: #2E7150; background: #E8F2EC; }
.dgd-notice-warn { border-left-color: #9A6100; background: #FAF0DE; }

.dgd-manage-list { list-style: none; margin: 0; padding: 0; }
.dgd-manage-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--dgd-rule);
}
.dgd-manage-item h2 { font-size: 19px; font-weight: 600; margin: 0 0 4px; }
.dgd-manage-meta { font-size: 14px; color: var(--dgd-ink-mute); margin: 0 0 6px; }
.dgd-manage-views { font-size: 14px; color: var(--dgd-ink-soft); margin: 0; }
.dgd-upsell { color: var(--dgd-pink-deep); }
.dgd-manage-item-actions { display: flex; align-items: center; gap: 14px; flex: none; }

/* ---------- forms ---------- */

.dgd-form { display: flex; flex-direction: column; gap: 22px; }
.dgd-form-narrow { max-width: 420px; }

.dgd-form .dgd-field input[type="text"],
.dgd-form .dgd-field input[type="email"],
.dgd-form .dgd-field input[type="url"],
.dgd-form .dgd-field textarea,
.dgd-form .dgd-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 15px;
    font-family: inherit;
    line-height: 1.45;
    color: var(--dgd-ink);
    background: #fff;
    border: 1px solid var(--dgd-rule);
    border-radius: 5px;
}
.dgd-form textarea { resize: vertical; }
.dgd-form .dgd-btn { align-self: flex-start; }

.dgd-fieldset {
    border: 1px solid var(--dgd-rule);
    border-radius: 8px;
    padding: 22px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.dgd-fieldset legend {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--dgd-ink-mute);
    padding: 0 8px;
}
.dgd-hint { font-size: 13.5px; color: var(--dgd-ink-mute); margin: 0; }

.dgd-checks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px 18px;
}
.dgd-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; line-height: 1.4; }
.dgd-check input { margin-top: 3px; flex: none; }

.dgd-location-row {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 18px;
    align-items: start;
}

@media (max-width: 620px) {
    .dgd-manage-item, .dgd-manage-head { flex-direction: column; gap: 14px; }
    .dgd-location-row { grid-template-columns: 1fr; }
}

.dgd-section-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--dgd-ink-mute);
    margin: 40px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--dgd-rule);
}
.dgd-section-heading:first-of-type { margin-top: 28px; }

/* ---------- the About editor ---------- */

/* WordPress's editor chrome is built for wp-admin; these keep it looking like
   part of the form rather than a panel dropped in from somewhere else. */
.dgd-field-editor .wp-editor-wrap { margin-top: 4px; }
.dgd-field-editor .wp-editor-container {
    border: 1px solid var(--dgd-rule);
    border-radius: 5px;
    overflow: hidden;
}
.dgd-field-editor .mce-panel { border-color: var(--dgd-rule) !important; }
.dgd-field-editor .mce-toolbar-grp {
    background: var(--dgd-surface-sunk, #F7F5F8) !important;
    border-bottom: 1px solid var(--dgd-rule) !important;
    padding: 4px 2px !important;
}
.dgd-field-editor .mce-btn button { padding: 4px 6px !important; }
.dgd-field-editor iframe { background: #fff; }

/* The editor supplies its own status bar; the resize handle is enough. */
.dgd-field-editor .mce-statusbar .mce-path { display: none !important; }

/* ---------- uploads ---------- */

.dgd-upload { display: flex; gap: 20px; align-items: flex-start; }
.dgd-upload-current { flex: none; width: 96px; }
.dgd-upload-current img { width: 100%; height: auto; border-radius: 6px; display: block; border: 1px solid var(--dgd-rule); }
.dgd-upload .dgd-field { flex: 1; min-width: 0; }

.dgd-form input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-size: 14.5px;
    font-family: inherit;
    background: #fff;
    border: 1px dashed var(--dgd-rule-strong, #CFC5D4);
    border-radius: 5px;
    cursor: pointer;
}
.dgd-form input[type="file"]:focus-visible { outline: 2px solid var(--dgd-pink); outline-offset: 2px; }

.dgd-cv-meta {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--dgd-ink-mute);
    background: var(--dgd-pink-wash);
    border-radius: 3px;
}
.dgd-cv-text h3 {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--dgd-ink-mute);
    margin: 18px 0 6px;
}
.dgd-cv-text p { font-size: 14.5px; color: var(--dgd-ink-soft); margin: 0; }

@media (max-width: 520px) {
    .dgd-upload { flex-direction: column; }
}

/* ---------- availability ---------- */

.dgd-availability { max-width: 780px; }
.dgd-avail-price { font-size: 17px; color: var(--dgd-ink-soft); }
.dgd-avail-price .dgd-hint { display: block; margin-top: 4px; }

.dgd-alt-list { list-style: none; margin: 0 0 32px; padding: 0; }
.dgd-alt {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--dgd-rule);
}
.dgd-alt:first-child { border-top: 1px solid var(--dgd-rule); }
.dgd-alt h3 { font-size: 17px; font-weight: 600; margin: 0 0 3px; }
.dgd-alt-why { font-size: 14px; color: var(--dgd-ink-mute); margin: 0; }
.dgd-alt-price { flex: none; text-align: right; }
.dgd-alt-price strong { display: block; font-size: 17px; color: var(--dgd-pink-deep); }
.dgd-alt-price span { font-size: 13px; color: var(--dgd-ink-mute); }

.dgd-avail-contact { font-size: 15px; color: var(--dgd-ink-soft); }

@media (max-width: 520px) {
    .dgd-alt { flex-direction: column; gap: 6px; }
    .dgd-alt-price { text-align: left; }
}

/* ---------- lapsed listings ---------- */

/* Shown only to the owner, so it explains rather than embarrasses. */
.dgd-lapsed-notice {
    padding: 20px 22px;
    border: 1px solid var(--dgd-rule);
    border-left: 3px solid var(--dgd-pink);
    border-radius: 0 8px 8px 0;
    background: var(--dgd-pink-wash);
}
.dgd-lapsed-notice p { margin: 0 0 10px; font-size: 14.5px; color: var(--dgd-ink-soft); }
.dgd-lapsed-notice p:last-child { margin-bottom: 0; }
.dgd-lapsed-notice strong { color: var(--dgd-ink); }

.dgd-manage-flag { font-size: 14px; margin: 6px 0 0; }
.dgd-lapsed-flag { color: var(--dgd-pink-deep); }

/* ---------- recognition banners ---------- */

.dgd-banner-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
    margin: 0 0 20px;
    padding: 0;
}
.dgd-banner-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--dgd-rule);
    border-radius: 6px;
    font-size: 13px;
}
.dgd-banner-item img { width: 100%; height: auto; display: block; border-radius: 3px; }

/* Kept but above the plan's limit — visible to the owner so they know it is
   safe, and that upgrading brings it back. */
.dgd-banner-item.is-hidden { opacity: .55; border-style: dashed; }
.dgd-banner-note { font-size: 12px; color: var(--dgd-ink-mute); font-style: italic; }
.dgd-banner-item .dgd-banner-year { font-weight: 600; color: var(--dgd-ink-soft); }
.dgd-banner-remove { font-size: 13px; color: var(--dgd-ink-mute); display: flex; gap: 6px; align-items: center; }

/* The honeypot: present for a script, invisible and unreachable for a person. */
.dgd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- buying ---------- */

.dgd-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.dgd-tier-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--dgd-rule, #e4e0e6);
    border-radius: 6px;
}

.dgd-tier-name {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.25;
}

.dgd-tier-price {
    margin: 0 0 14px;
    line-height: 1.3;
}

.dgd-tier-price strong {
    display: block;
    font-size: 27px;
    font-variant-numeric: tabular-nums;
    color: var(--dgd-primary, #9b2d86);
}

.dgd-tier-price span {
    font-size: 13px;
    color: var(--dgd-muted, #6d6572);
}

.dgd-tier-blurb {
    margin: 0 0 14px;
    font-size: 14.5px;
    color: var(--dgd-muted, #6d6572);
}

.dgd-tier-points {
    margin: 0 0 16px;
    padding-left: 18px;
    font-size: 14.5px;
    line-height: 1.55;
}

.dgd-tier-points li { margin-bottom: 5px; }

/* Pushes the button to the bottom so cards of unequal length still line up. */
.dgd-tier-card .dgd-btn { margin-top: auto; text-align: center; }

.dgd-tier-scarce {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--dgd-muted, #6d6572);
}

.dgd-buy-form { max-width: 540px; }

.dgd-price-table {
    width: 100%;
    margin: 26px 0 22px;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.dgd-price-table th,
.dgd-price-table td {
    padding: 11px 0;
    text-align: left;
    font-weight: 400;
    border-bottom: 1px solid var(--dgd-rule, #e4e0e6);
}

.dgd-price-table td { text-align: right; white-space: nowrap; }

.dgd-price-total th,
.dgd-price-total td {
    font-weight: 600;
    font-size: 17px;
    border-bottom: 2px solid var(--dgd-ink, #1d1a1f);
}
