/* The Scope archive: "Reading view". Everything is scoped to html.archive-modern; classic view ignores this file. */
#respond{display:none!important}
#footer{height:auto!important;overflow:visible}  /* room for the comic strip */
#archive-comic{padding:10px 0 4px}
.archive-modern #footer,.archive-modern #footer .container_16,.archive-modern #footer .grid_16{background:none!important;border:0!important;box-shadow:none!important}  /* no grey band under the comic */
#centercol>.post.box:not(:has(*)){display:none}  /* empty leftover boxes */
.archive-likes{font-size:11px;color:#999}
#comments:not(:has(li)){display:none}  /* empty comments box under posts nobody commented on */  /* leftover "log in / sign up / Have Your Say" comment form, both views */
.archive-view-toggle::after{content:"Reading view"}
.archive-modern .archive-view-toggle::after{content:"Classic view"}

html.archive-modern,.archive-modern body{min-width:0!important;overflow-x:clip;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.archive-modern #background,.archive-modern #page,.archive-modern #header,.archive-modern #footer,.archive-modern .container_16{width:auto!important;min-width:0!important}
.archive-modern .container_16{max-width:1120px;margin:0 auto!important;padding:0 16px;box-sizing:border-box}
.archive-modern [class*="grid_"]{float:none!important;width:auto!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box}

/* top bar (both views) */
#thescope-archive-note{position:sticky;top:0;z-index:100;background:#1b1b1b;color:#fff;font:13px/20px -apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;padding:5px 20px;text-align:left}
#thescope-archive-note .in{max-width:1088px;margin:0 auto;white-space:nowrap;overflow-x:auto;scrollbar-width:none}
#thescope-archive-note .in::-webkit-scrollbar{display:none}
#thescope-archive-note b{font-weight:600}
#thescope-archive-note a{color:#fff;text-decoration:underline;text-decoration-color:rgba(255,255,255,.35);text-underline-offset:2px}
#thescope-archive-note a:hover{text-decoration-color:#fff}
#thescope-archive-note .short{display:none}
@media (max-width:700px){#thescope-archive-note{font-size:12px;padding:5px 12px}#thescope-archive-note .long{display:none}#thescope-archive-note .short{display:inline}}

/* page order: header, menu, article, then everything else (home page's left column drops below the article) */
.archive-modern #page{display:flex;flex-direction:column}
.archive-modern #page>*{order:3;min-width:0}
.archive-modern #page>#header{order:0}
.archive-modern #page>#topmenu{order:1}
.archive-modern #page>#centercol{order:2}

/* top links + header + search */
.archive-modern #top .grid_4{display:none!important}  /* dead "Subscribe: Posts | Comments" feed links */
.archive-modern #top ul,.archive-modern #nav{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap;scrollbar-width:none;height:auto!important}
.archive-modern #top ul::-webkit-scrollbar,.archive-modern #nav::-webkit-scrollbar{display:none}
.archive-modern #top li,.archive-modern #nav>li{float:none!important;flex:0 0 auto}
.archive-modern #nav ul{display:none!important}
.archive-modern #topmenu{height:auto!important}
.archive-modern #rss{display:none!important}
.archive-modern #title img,.archive-modern #header img{max-width:100%;height:auto}
.archive-modern .archive-search{width:100%;max-width:480px;margin:6px 0 10px}
.archive-modern .archive-search input{font-size:16px}  /* 16px stops iPhones zooming in on tap */

/* article column: bigger, airier type */
.archive-modern .entry{font:18px/1.65 Georgia,"Times New Roman",serif!important;overflow-wrap:break-word}
.archive-modern .entry p,.archive-modern .entry li{font:inherit!important}
.archive-modern .entry p{margin:0 0 1em}
/* listing pages: "Category | Link | Read more" is wayfinding, so small sans on one line; the blurb keeps reading size */
.archive-modern .entry:has(>a[rel="category tag"]){font:12px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif!important;color:#999}
.archive-modern .entry:has(>a[rel="category tag"])>p{font:17px/1.6 Georgia,"Times New Roman",serif!important;color:#222;margin:0 0 .6em}
.archive-modern h1,.archive-modern h2.singleh2,.archive-modern .post h2{line-height:1.25!important;overflow-wrap:break-word}
.archive-modern .entry blockquote{margin:1em 0;padding-left:1em}
.archive-modern img,.archive-modern video,.archive-modern audio{max-width:100%}
.archive-modern img{height:auto}
.archive-modern .comicstrip img{max-width:none}
.archive-modern img.ar-wide{width:100%!important;height:auto!important}
.archive-modern .wp-caption:has(img.ar-wide){width:auto!important}
.archive-modern #centercol.i-saw-you>a[href="/isawyou/"],.archive-modern #centercol.overheard>a[href="/overheard/"]{display:block;margin:0 0 6px!important}  /* title picture lines up with the frame below */  /* comic strips keep full size and scroll sideways */
.archive-modern audio{width:100%}
.archive-modern iframe,.archive-modern embed,.archive-modern object{max-width:100%!important}
.archive-modern iframe[src*="youtube"],.archive-modern iframe[src*="vimeo"],.archive-modern iframe[src*="nfb.ca"]{width:100%!important;height:auto!important;aspect-ratio:16/9}
.archive-modern iframe[src*="maps.google"],.archive-modern iframe[src*="bandcamp.com"]{width:100%!important}
.archive-modern .wp-caption,.archive-modern .entry div[style*="width"]{max-width:100%!important;box-sizing:border-box}
.archive-modern .entry .alignleft,.archive-modern .entry .alignright{max-width:50%}
.archive-modern table{display:block;max-width:100%;overflow-x:auto}
.archive-modern pre{white-space:pre-wrap}

/* end of post: quieter share row and author box; drop dead "Leave a comment" and e-mail links */
p.fr:has(a[href$="#respond"]){display:none}  /* "Permalink | Leave a comment": comments are closed (both views) */
.archive-modern .sharedaddy h3.sd-title{font:600 12px/1.2 Arial,sans-serif!important;text-transform:uppercase;letter-spacing:.06em;color:#888}
.archive-modern .author_info{background:none!important;border:0!important;border-top:1px solid #e5e5e5!important;padding:14px 0 0!important;margin:20px 0 0!important;clear:both}
.archive-modern .author_info h3{font:600 12px/1.4 Arial,sans-serif!important;text-transform:uppercase;letter-spacing:.06em;color:#888!important;background:none!important;border:0!important;padding:0!important;margin:0 0 6px!important}
.archive-modern .author_info p:has(>a[href^="mailto:"]){font-size:0!important}
.archive-modern .author_info p:has(>a[href^="mailto:"]) a{font:17px/1.5 Georgia,serif}
.archive-modern .author_info a[href^="mailto:"]{display:none}
.archive-modern .author_info ul{margin:0;padding:0;list-style:none}
.archive-modern .author_info li{padding:4px 0;font-size:15px}

.archive-modern .sharedaddy,.archive-modern .sharedaddy li,.archive-modern .sharedaddy a{font:12px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif!important}
.archive-modern .date-comments p{font:13px/1.5 Georgia,serif!important}
.archive-modern #archive-random img.ar-big.ar-fill{width:100%;max-height:none}
/* random posts as the main view: one card per post, like the front page listing */
.archive-modern #archive-random .ar-headbox{padding-top:12px!important;padding-bottom:12px!important}
.archive-modern #archive-random .ar-headbox h2{margin:0!important}
.archive-modern #archive-random .ar-card{display:flow-root}
.archive-modern #archive-random .ar-card>h2{font:24px/1.25 Georgia,"Times New Roman",serif!important;margin:0 0 8px!important}
.archive-modern #archive-random .ar-card .ar-big{display:block;max-width:100%!important;height:auto;max-height:none;margin:0 auto 14px}
.archive-modern #archive-random .ar-card .ar-big.ar-fill{width:100%!important}  /* fills the card width if it's at least 300px wide (small icons stay small) */
.archive-modern #archive-random .ar-cpic{float:left;width:36%;max-width:260px;margin:4px 22px 8px 0}
.archive-modern #archive-random .ar-cpic img{display:block;width:100%;height:auto;max-height:260px;object-fit:cover}
.archive-modern #archive-random .ar-card .ar-ex{font:18px/1.6 Georgia,"Times New Roman",serif!important;color:#222;margin:0 0 12px!important}
.archive-modern #archive-random .ar-meta{font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;color:#999;margin:0}
.archive-modern #archive-random .ar-quote .ar-votes{float:right;margin:0 0 6px 18px;text-align:center;font:12px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;color:#999}
.archive-modern #archive-random .ar-quote .ar-votes b{display:block;font:26px/1.1 Georgia,serif;color:#e0218a}
.archive-modern #archive-random .ar-qt{font:19px/1.5 Georgia,"Times New Roman",serif!important;margin:0 0 8px!important}
.archive-modern #archive-random .ar-browse{text-align:center;margin:6px 0 26px;font:15px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif}
@media (max-width:600px){.archive-modern #archive-random .ar-cpic{width:34%;margin-right:14px}.archive-modern #archive-random .ar-card>h2{font-size:20px!important}.archive-modern #archive-random .ar-card .ar-ex{font-size:16px!important}}
/* random box cards: same-size thumbnails, compact title / date / excerpt */
.archive-modern #archive-random .ar-item{gap:16px;padding:14px 0;align-items:flex-start}
.archive-modern #archive-random .ar-thumb{flex:0 0 96px;width:96px!important;height:72px!important;object-fit:cover;max-width:none}
.archive-modern #archive-random .ar-title{font:17px/1.3 Georgia,"Times New Roman",serif!important;margin:0 0 3px!important}
.archive-modern #archive-random .ar-feature .ar-title{font-size:24px!important;margin:4px 0 4px!important}
.archive-modern #archive-random .ar-info{font:12px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif!important;color:#888;margin:0 0 5px!important}
.archive-modern #archive-random .ar-ex{font:15px/1.5 Georgia,"Times New Roman",serif!important;color:#444;margin:0!important}
/* clickable image maps (Local, I Saw You map) must keep their real size or the click areas drift */
.archive-modern img[usemap]{max-width:none!important;width:auto!important}
.archive-modern :has(>img[usemap]){overflow-x:auto}

/* comments */
.archive-modern .commentlist li,.archive-modern #comments li{font-size:15px;line-height:1.5}

/* sidebar: one column under the article on phones, beside it on wide screens */
.archive-modern #sidebar .alpha,.archive-modern #sidebar .omega{padding:0!important}
.archive-modern #sidebar img{max-width:100%;height:auto}
.archive-modern #sidebar iframe,.archive-modern #sidebar object,.archive-modern #sidebar embed{display:none}
@media (min-width:960px){
  .archive-modern #page{flex-flow:row wrap;align-items:flex-start}
  .archive-modern #page>*{flex:0 0 100%}
  .archive-modern #header{display:flex;align-items:center;justify-content:space-between}
  .archive-modern #header .spacer{flex:0 0 300px}
  .archive-modern #page>#centercol,.archive-modern #page>.grid_3,.archive-modern #page>#sidebar{order:2}
  .archive-modern #page>#centercol{flex:1 1 400px}  /* a 0 basis would squeeze onto the menu row */
  .archive-modern #page>.grid_3{flex:0 0 220px;margin-right:24px!important}
  .archive-modern #page>#sidebar{flex:0 0 340px;margin-left:30px!important}
  /* sidebar keeps its original two narrow columns (calendar beside Scope Info) */
  .archive-modern #sidebar>.grid_3{float:left!important;width:160px!important}
  .archive-modern #sidebar>.alpha{margin-right:20px!important}
  /* I Saw You: posts use all the room beside the Most Liked / Local menu */
  .archive-modern #i-saw-you-list,.archive-modern #overheard-list{float:none!important;width:auto!important;overflow:hidden}
  /* Scoff: restaurant table uses all the room beside "Filter by type" */
  .archive-modern #scoff-categories-list{float:left!important;width:210px!important;margin-right:20px!important;box-sizing:border-box}
  .archive-modern .scoff_comparison_table{float:none!important;width:auto!important;margin-left:0!important;overflow:hidden}
  .archive-modern .scoff_comparison_table table{width:100%!important}
}
/* wide screens: comic strips (Cat', Bottom Line) run edge to edge across the window, scaled down only if still too wide.
   Where a strip has a title row (random box, footer comic), the title, "More comics" and the line above go with it.
   In-page strips only on pages without a sidebar, where they'd otherwise cover it. */
@media (min-width:1200px){
  .archive-modern #page:not(:has(#sidebar)) .post:has(.comicstrip){overflow:visible!important}
  .archive-modern #page:not(:has(#sidebar)) .post>.comicstrip,
  .archive-modern #page:not(:has(#sidebar)) #archive-random .ar-strip,
  .archive-modern #archive-comic{position:relative;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 64px)!important;box-sizing:border-box}
  .archive-modern #page:not(:has(#sidebar)) .post>.comicstrip,.archive-modern #archive-comic .comicstrip,.archive-modern #archive-random .ar-strip .comicstrip{overflow:visible}
  .archive-modern .comicstrip img{max-width:100%!important;height:auto!important}
  /* the strips are wider than the boxes, so comic posts drop the box: smaller centred title, strip, centred share row */
  .archive-modern #page:not(:has(#sidebar)) .post.box:has(>.comicstrip),
  .archive-modern #page:not(:has(#sidebar)) #archive-random .post.box:has(.ar-strip){background:none!important;border-color:transparent!important;box-shadow:none!important}
  .archive-modern #page:not(:has(#sidebar)) .post.box:has(>.comicstrip)>h2{font-size:19px!important;text-align:center;margin-bottom:8px!important}
  .archive-modern #page:not(:has(#sidebar)) #archive-random .ar-strip{border-top:0!important}
  .archive-modern #page:not(:has(#sidebar)) #archive-random .ar-strip .ar-title{text-align:center}
  .archive-modern #page:not(:has(#sidebar)) .post.box:has(>.comicstrip) .sd-sharing{justify-content:center}
  .archive-modern #page:not(:has(#sidebar)) .post.box:has(>.comicstrip) .sd-sharing .sd-content{flex:0 0 auto!important;width:auto!important}
  .archive-modern #page:not(:has(#sidebar)) .post.box:has(>.comicstrip) .sd-sharing .sd-content ul{display:flex;flex-wrap:wrap;justify-content:center}
  .archive-modern #page:not(:has(#sidebar)) .post.box:has(>.comicstrip)>.navigation,.archive-modern #page:not(:has(#sidebar)) .post.box:has(>.comicstrip) .entry{text-align:center}
}
@media (max-width:959px){
  /* the grey lines behind the menu are a background picture at a fixed height; draw them on the menu instead */
  .archive-modern body,.archive-modern #background{background-image:none!important}
  .archive-modern #topmenu{border-top:1px solid #ddd;border-bottom:1px solid #ddd;margin-bottom:16px!important}
  .archive-modern #header,.archive-modern #title{height:auto!important}
  .archive-modern #header::after{content:"";display:block;clear:both}
  .archive-modern #sidebar{margin-top:24px;column-count:2;column-gap:10px}  /* sidebar boxes in two newspaper columns */
  .archive-modern #sidebar>.grid_3,.archive-modern #sidebar>.clear{display:contents}
  .archive-modern #sidebar .widget,.archive-modern #sidebar .box2{break-inside:avoid;display:inline-block;width:100%;box-sizing:border-box;margin:0 0 10px!important;font-size:12px}
  .archive-modern #sidebar .widget h3{font-size:13px!important}
  .archive-modern .comicstrip img{height:60px!important;width:auto!important;max-width:none!important}  /* smaller strips on phones; the rest scrolls sideways */
  .archive-modern #wp-calendar table{display:table!important;width:100%;font-size:15px}
  .archive-modern #wp-calendar td,.archive-modern #wp-calendar th{text-align:center;padding:5px 0}
  .archive-modern .entry .alignleft,.archive-modern .entry .alignright{float:none!important;display:block;max-width:100%;margin:0 0 1em!important}
  /* I Saw You: the list first, its "Most Liked / Local" menu after */
  .archive-modern #centercol.i-saw-you,.archive-modern #centercol.overheard{display:flex;flex-direction:column}
  .archive-modern #i-saw-you-list,.archive-modern #i-saw-you-sidebar,.archive-modern #overheard-list,.archive-modern #overheard-sidebar{float:none!important;width:auto!important;margin-left:0!important;margin-right:0!important}
  .archive-modern #i-saw-you-sidebar,.archive-modern #overheard-sidebar{order:2;margin-top:20px!important}
  .archive-modern #centercol:has(#scoff-categories-list){display:flex;flex-direction:column}
  .archive-modern #scoff-categories-list,.archive-modern .scoff_comparison_table{float:none!important;width:auto!important;margin-left:0!important;margin-right:0!important}
  .archive-modern #scoff-categories-list{order:2;margin-top:20px!important}
}
