/* Editorial details: native underlines (Paco), quiet code/quote/table roles
   (Brian Lovin and Karri Saarinen). Keep the measured page geometry and type scale. */

/* One native line survives wrapping, selection and any surrounding surface. */
.entry-content a{box-shadow:none;text-decoration-skip-ink:auto}
.editor-styles-wrapper a{box-shadow:none;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;text-decoration-color:var(--muted)}
:is(.entry-content,.editor-styles-wrapper) a:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* A missing attachment occupies its original bounds without a white cutout. */
.image-empty{background:var(--surface-tint)}

/* Inline code wraps; a pre block preserves exact whitespace and scrolls locally. */
:is(.entry-content,.editor-styles-wrapper) :is(code,kbd,samp){font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85em;letter-spacing:0}
:is(.entry-content,.editor-styles-wrapper) :is(code,kbd,samp):not(pre *){background:var(--accent-soft);color:var(--ink);border-radius:3px;padding:.08em .25em;box-decoration-break:clone;-webkit-box-decoration-break:clone;overflow-wrap:anywhere}
:is(.entry-content,.editor-styles-wrapper) kbd:not(pre *){border:1px solid var(--border);box-shadow:inset 0 -1px 0 var(--border)}
:is(.entry-content,.editor-styles-wrapper) pre{background:var(--surface-tint);border-color:var(--border);border-radius:6px;tab-size:4;overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:var(--muted) transparent}
:is(.entry-content,.editor-styles-wrapper) pre :is(code,kbd,samp){font:inherit;letter-spacing:inherit;background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;white-space:inherit;overflow-wrap:normal}

/* Citations are metadata, subordinate to the quotation and its existing bracket. */
:is(.entry-content,.editor-styles-wrapper) blockquote :is(cite,footer),
:is(.entry-content,.editor-styles-wrapper) .wp-block-pullquote cite{display:block;color:var(--muted);font:400 var(--type-meta)/1.5 var(--sans);letter-spacing:0}
:is(.entry-content,.editor-styles-wrapper) blockquote :is(cite,footer) a{color:inherit}

/* Data remains a table: quiet headers and local overflow, no mobile card rewrite. */
:is(.entry-content,.editor-styles-wrapper) table{overscroll-behavior-inline:contain;scrollbar-width:thin;scrollbar-color:var(--muted) transparent}
:is(.entry-content,.editor-styles-wrapper) th{background:var(--surface-tint);color:var(--ink);font-weight:650}
:is(.entry-content,.editor-styles-wrapper) :is(th,td){border-color:var(--border);vertical-align:top}
:is(.entry-content,.editor-styles-wrapper) table caption{text-align:start;color:var(--muted);font:400 var(--type-meta)/1.5 var(--sans);letter-spacing:0;padding-block:0 8px}
:is(.entry-content,.editor-styles-wrapper) .wp-block-table figcaption{color:var(--muted);font-size:var(--type-meta);line-height:1.45}

@media(forced-colors:active){
 :is(.entry-content,.editor-styles-wrapper) :is(code,kbd,samp):not(pre *){border:1px solid CanvasText}
 :is(.entry-content,.editor-styles-wrapper) pre{border-color:CanvasText}
 :is(.entry-content,.editor-styles-wrapper) a:focus-visible{outline-color:Highlight}
}

/* Honor authored portrait/form embed heights. Only declared video ratio wrappers
   establish a ratio; a generic iframe is not necessarily a widescreen player. */
:is(.entry-content,.editor-styles-wrapper) .wp-embed-aspect-16-9 iframe{height:auto;aspect-ratio:16/9}
:is(.entry-content,.editor-styles-wrapper) .wp-embed-aspect-4-3 iframe{height:auto;aspect-ratio:4/3}
:is(.entry-content,.editor-styles-wrapper) .wp-embed-aspect-1-1 iframe{height:auto;aspect-ratio:1}
:is(.entry-content,.editor-styles-wrapper) .wp-embed-aspect-9-16 iframe{height:auto;aspect-ratio:9/16}

/* In-article section/footnote destinations clear the existing sticky masthead.
   Scroll margin changes anchor landing only, never document geometry. */
.entry-content [id]{scroll-margin-block-start:110px}
