/* Shared defaults for Gutenberg's editing canvas and Cocoon's article. */
:where(.rgde, .editor-styles-wrapper) {
  --rg-paper:#0b0b0b; --rg-ink:#f5f5f5; --rg-soft:#c1bfbb;
  --rg-fill:#1b1b1b; --rg-stroke:#535350; --rg-accent:#f04e23; --rg-anchor:#ff946e;
}
.editor-styles-wrapper {background-color:#0b0b0b;color:#f5f5f5;}
body.rgde #main .article {background:var(--rg-paper);color:var(--rg-ink);margin-top:0;}
.rgde .article-header .entry-title, .editor-styles-wrapper .editor-post-title {
  color:var(--rg-ink);background:none;border:0;border-bottom:2px solid var(--rg-accent);border-radius:0;
  padding:0 0 .38em;margin:0 0 .48em;font-family:inherit;font-size:clamp(27px,3.5vw,51px);
  font-weight:900;line-height:1.32;letter-spacing:-.045em;overflow-wrap:anywhere;text-wrap:pretty;
}
.rgde .article-header .entry-title::before, .editor-styles-wrapper .editor-post-title::before {
  content:"";display:inline-block;position:static;width:.12em;height:.79em;margin-inline:.12em .34em;
  transform:skew(-14deg);background:var(--rg-accent);border:0;box-shadow:.17em 0 0 var(--rg-accent);
}
.rgde .article .entry-content, .editor-styles-wrapper {
  font-family:system-ui,-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;
  font-size:clamp(16px,1.25vw,18px);line-height:1.95;overflow-wrap:break-word;
}
.rgde .article .entry-content {max-width:80ch;margin-inline:auto;}
:is(.rgde .entry-content, .editor-styles-wrapper) p {line-height:1.95;}
:is(.rgde .entry-content, .editor-styles-wrapper) > p {margin-block:0 1.3em;}
:is(.rgde .entry-content, .editor-styles-wrapper) :is(h2,h3):where(.wp-block-heading),
.rgde .article .entry-content > :is(h2,h3) {
  color:var(--rg-ink);font-family:inherit;font-weight:800;line-height:1.48;letter-spacing:-.025em;
  border-radius:0;box-shadow:none;overflow-wrap:anywhere;scroll-margin-top:4rem;
}
:is(.rgde .entry-content, .editor-styles-wrapper) h2.wp-block-heading, .rgde .article .entry-content > h2 {
  margin:2.2em 0 .85em;padding:.55em .78em;background:var(--rg-fill);border:0;
  border-left:5px solid var(--rg-accent);font-size:clamp(22px,2.1vw,30px);
}
:is(.rgde .entry-content, .editor-styles-wrapper) h3.wp-block-heading, .rgde .article .entry-content > h3 {
  margin:1.9em 0 .7em;padding:0 0 0 .6em;background:transparent;border:0;
  border-left:3px solid var(--rg-accent);font-size:clamp(19px,1.7vw,24px);
}
:is(.rgde .entry-content, .editor-styles-wrapper) :is(h2,h3).wp-block-heading::before,
:is(.rgde .entry-content, .editor-styles-wrapper) :is(h2,h3).wp-block-heading::after {content:none;}
:is(.rgde .entry-content, .editor-styles-wrapper) :is(p,li,figcaption,cite,td) a:not(.wp-element-button):not(.btn):not(:where(.yyi-rinker-contents *, .instagram-media *, .wp-embedded-content *)) {
  color:var(--rg-anchor);text-decoration:underline;text-underline-offset:.17em;text-decoration-thickness:1px;
}
:is(.rgde .entry-content, .editor-styles-wrapper) .wp-block-quote, .rgde .entry-content > blockquote:not([class]) {
  position:relative;margin:1.5em 0;padding:1.45em 1.3em 1.2em 3.4em;background:var(--rg-fill);
  border:1px solid var(--rg-stroke);border-left:3px solid var(--rg-accent);border-radius:0;color:var(--rg-ink);
}
:is(.rgde .entry-content, .editor-styles-wrapper) .wp-block-quote::before, .rgde .entry-content > blockquote:not([class])::before {
  content:"“";position:absolute;left:.24em;top:.08em;color:var(--rg-accent);font:bold 3.5em/1 Georgia,serif;background:none;
}
:is(.rgde .entry-content, .editor-styles-wrapper) .wp-block-quote::after, .rgde .entry-content > blockquote:not([class])::after {content:none;}
:is(.rgde .entry-content, .editor-styles-wrapper) :is(.wp-block-quote,blockquote:not([class])) p {margin:0 0 .55em;}
:is(.rgde .entry-content, .editor-styles-wrapper) :is(.wp-block-quote,blockquote:not([class])) cite {display:block;color:var(--rg-soft);font-size:.85em;font-style:normal;}
:is(.rgde .entry-content, .editor-styles-wrapper) :is(.wp-block-list,ul,ol) > li::marker {color:var(--rg-accent);font-weight:800;}
:is(.rgde .entry-content, .editor-styles-wrapper) .wp-block-table {display:block;max-width:100%;overflow-x:auto;margin-inline:0;}
:is(.rgde .entry-content, .editor-styles-wrapper) .wp-block-table table {width:100%;border-collapse:collapse;margin:0;color:var(--rg-ink);background:#111;}
:is(.rgde .entry-content, .editor-styles-wrapper) .wp-block-table :is(td,th) {border:1px solid var(--rg-stroke);padding:.62em .8em;line-height:1.6;word-break:normal;}
:is(.rgde .entry-content, .editor-styles-wrapper) .wp-block-table tr {background:transparent;}
:is(.rgde .entry-content, .editor-styles-wrapper) .wp-block-table th {background:#2a2a29;color:var(--rg-ink);font-weight:750;border-bottom:2px solid var(--rg-accent);}
:is(.rgde .entry-content, .editor-styles-wrapper) .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {background:#202020;}
:is(.rgde .entry-content, .editor-styles-wrapper) .wp-block-button__link:not(.has-background):not(.has-text-color) {
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.55em 1.2em;
  background:var(--rg-accent);color:#100d0a;border:2px solid var(--rg-accent);border-radius:2px;
  font-weight:750;line-height:1.4;text-decoration:none;box-shadow:none;
}
:is(.rgde .entry-content, .editor-styles-wrapper) .is-style-outline > .wp-block-button__link:not(.has-background):not(.has-text-color) {background:var(--rg-paper);color:var(--rg-ink);}
:is(.rgde .entry-content, .editor-styles-wrapper) .wp-block-button__link:not(.has-background):not(.has-text-color):hover {background:#ff936a;color:#111;}
:is(.rgde .entry-content, .editor-styles-wrapper) :focus-visible {outline:3px solid #ffac87;outline-offset:3px;}
:is(.rgde .entry-content, .editor-styles-wrapper) :is(.wp-block-code,.wp-block-preformatted) {
  background:#111;color:#eee;border:1px solid var(--rg-stroke);padding:1em;max-width:100%;overflow:auto;white-space:pre;
  font: .9em/1.6 ui-monospace,Consolas,monospace;
}
:is(.rgde .entry-content, .editor-styles-wrapper) .wp-block-code code {background:transparent;color:inherit;white-space:pre;word-wrap:normal;}
:is(.rgde .entry-content, .editor-styles-wrapper) hr.wp-block-separator {border:0;border-top:2px solid var(--rg-accent);background:none;height:0;opacity:1;margin:2.2em auto;}
:is(.rgde .entry-content, .editor-styles-wrapper) :is(.wp-block-image,.wp-block-embed,.wp-block-audio,.wp-block-video) {max-width:100%;margin-inline:auto;}
:is(.rgde .entry-content, .editor-styles-wrapper) :is(img,video,audio,iframe,.wp-block-column,.wp-block-embed__wrapper) {max-width:100%;min-width:0;}
:is(.rgde .entry-content, .editor-styles-wrapper) img {height:auto;}
:is(.rgde .entry-content, .editor-styles-wrapper) :is(.wp-block-embed-youtube,.wp-block-embed-vimeo) .wp-block-embed__wrapper {position:relative;aspect-ratio:16/9;}
:is(.rgde .entry-content, .editor-styles-wrapper) :is(.wp-block-embed-youtube,.wp-block-embed-vimeo) .wp-block-embed__wrapper::before {display:none;}
:is(.rgde .entry-content, .editor-styles-wrapper) :is(.wp-block-embed-youtube,.wp-block-embed-vimeo) iframe {position:absolute;inset:0;width:100%;height:100%;border:0;}
:is(.rgde .entry-content, .editor-styles-wrapper) figcaption {color:var(--rg-soft);font-size:.84em;line-height:1.65;text-align:left;}
.rgde .article .eye-catch {border-radius:0;overflow:hidden;}
.rgde .article .eye-catch img {display:block;width:100%;height:auto;}
.rgde .article .toc {color:var(--rg-ink);background:#191919;border:1px solid var(--rg-stroke);max-width:100%;}
.rgde .article .toc :is(a,.toc-title) {color:var(--rg-ink);}
.rgde .article .toc a:hover {color:var(--rg-anchor);}
.rgde .article .kakomi-tab2 {color:#242424;}
@media (max-width:640px) {
  .rgde .article-header .entry-title {font-size:clamp(25px,6.8vw,33px);}
  :is(.rgde .entry-content, .editor-styles-wrapper) .wp-block-quote {padding:1.2em 1em 1em 2.55em;}
  :is(.rgde .entry-content, .editor-styles-wrapper) .wp-block-quote::before {font-size:2.7em;}
}
:is(.rgde .entry-content, .editor-styles-wrapper) :is(.wp-block-quote,blockquote:not([class])) p:first-of-type::before {content:none;}
:is(.rgde .entry-content, .editor-styles-wrapper) .wp-block-quote {opacity:1;}
.rgde .article .toc ol.toc-list > li::before {background:var(--rg-accent);color:#100d0a;}
.rgde .article .toc .toc-list a {color:var(--rg-ink);}
.rgde .article .toc .toc-list a:hover {color:var(--rg-anchor);}
@media (max-width:640px) {
  :is(.rgde .entry-content, .editor-styles-wrapper) .wp-block-table table:has(tr > :nth-child(3)) {min-width:28rem;}
}

/* Rinker and legacy tab boxes supply their own light background. */
.rgde .article .yyi-rinker-contents, .rgde .article .yyi-rinker-title a {color:#242424;}
.rgde .entry-content .kakomi-tab2 a {color:#8c321c;}
