/* Spec Notes — the article side of Specifiction. The colours, fonts and the bar come from the directory's own stylesheet
   (through /wp-chrome/); this file only lays out articles and listings. WordPress sets no box-sizing of its own, so it is set here. */
.spf-notes, .spf-notes *, .spf-notes *::before, .spf-notes *::after { box-sizing: border-box; }
.spf-notes { background: var(--paper); color: var(--ink); font: 400 16.5px/1.6 var(--text); margin: 0; }
.spf-notes img { max-width: 100%; height: auto; }
.spf-notes .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spf-notes .sr:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 99; background: var(--ink); color: var(--paper); padding: 8px 12px; }
.spf-adslot { margin: 0; padding: 0; }

.notes-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; padding-top: 10px; }
@media (max-width: 1000px) { .notes-page { grid-template-columns: 1fr; } }
.notes-col { min-width: 0; }
.notes-paper { padding: 28px 32px 32px; }
@media (max-width: 640px) { .notes-paper { padding: 18px; } }
.notes-head h1 { font-family: var(--display); font-weight: 800; font-stretch: 108%; line-height: 1.08; font-size: clamp(28px, 4.2vw, 46px); margin: 10px 0 12px; }
.notes-by { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.notes-by a { color: inherit; }
.notes-pic { margin: 18px 0 22px; }
.notes-pic img { width: 100%; border: 1px solid var(--rule); border-radius: var(--r); }
.notes-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 0; }
.notes-sponsor { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); }

/* the article body: the ads and affiliate modules run inside this box, so it keeps a plain, readable column */
.entry-content { font-size: 17.5px; line-height: 1.72; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font-family: var(--display); font-weight: 780; font-stretch: 104%; font-size: clamp(22px, 2.6vw, 30px); margin: 1.6em 0 .5em; }
.entry-content h3 { font-family: var(--display); font-weight: 720; font-size: 20px; margin: 1.4em 0 .4em; }
.entry-content p { margin: 0 0 1.05em; }
.entry-content a { color: var(--cyan-ink); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.entry-content li { margin: 0 0 .45em; }
.entry-content blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 3px solid var(--cyan); background: var(--cyan-wash); }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 1.2em 0; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--rule); padding: 10px; text-align: left; }
.entry-content th { font: 800 11.5px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); }
.entry-content pre { overflow-x: auto; padding: 14px; background: var(--well); border-radius: var(--r); }
.entry-content img { border-radius: var(--r); }

/* the rail beside an article */
.notes-rail { position: sticky; top: calc(var(--ym-p3-top-offset, 80px)); display: grid; gap: 12px; align-content: start; }
.rail-h { font: 800 11.5px/1 var(--display); font-stretch: 125%; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink); margin: 0 0 4px; }
.rail-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.rail-list li { border-bottom: 1px solid var(--rule); }
.rail-list a { display: grid; gap: 3px; padding: 11px 0; text-decoration: none; color: inherit; }
.rail-t { font-weight: 650; line-height: 1.3; font-size: 15px; }
.rail-d { color: var(--muted); font-size: 12.5px; }
.notes-rail .widget { margin-bottom: 14px; }
@media (max-width: 1000px) { .notes-rail { position: static; } }

/* listings */
.notes-arch { padding: 6px 0 22px; border-bottom: 1px solid var(--ink); margin-bottom: 22px; }
.notes-arch h1 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; margin: 8px 0 0; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.note-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; }
.note-card:hover { border-color: var(--ink); }
.nc-pic { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--well); }
.nc-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nc-body { display: grid; gap: 8px; padding: 14px 16px 16px; justify-items: start; }
.nc-body strong { font: 750 17.5px/1.25 var(--display); }

.notes-hop { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.notes-hop a { padding: 14px 16px; text-decoration: none; color: inherit; display: grid; gap: 4px; }
.notes-hop .nx { text-align: right; }
@media (max-width: 560px) { .notes-hop { grid-template-columns: 1fr; } .notes-hop .nx { text-align: left; } }
.notes-more { margin: 26px 0; }
.notes-trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.notes-trio a { display: grid; gap: 8px; padding: 0 0 14px; overflow: hidden; text-decoration: none; color: inherit; }
.trio-pic { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--well); border-bottom: 1px solid var(--rule); }
.trio-pic img { width: 100%; height: 100%; object-fit: cover; }
.notes-trio strong, .notes-trio .read { padding: 0 14px; }
.notes-trio strong { font: 700 16px/1.25 var(--display); }

.notes-comments { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--rule); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 20px; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.comment-form label { display: block; font-weight: 650; margin-bottom: 6px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: var(--r); background: var(--sheet); color: var(--ink); font: inherit; margin-bottom: 12px; }
.notes-lost { padding: 60px var(--gut) 40px; }
.notes-find { display: flex; gap: 8px; max-width: 520px; margin: 18px 0; }
.notes-lost-links { display: flex; flex-wrap: wrap; gap: 10px; }
/* a widget the old theme left in a sidebar keeps working inside the rail */
.notes-rail .widget-title { font: 800 11.5px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink); margin: 0 0 8px; }
