/* The page container follows Styles > Layout > Content width, kept within a
   range the 12-column wall works in. It is set on body because WordPress
   defines the content size there. */
body {
  --g-page-max: clamp(1080px, var(--wp--style--global--content-size, 1320px), 1600px);
}

/* Structural groups own their spacing, so a padding or margin chosen for the
   Group block in Styles never reaches the page frame. */
.g-wall,
.g-home-top,
.g-home-memorial,
.gorunum-home__columns,
.g-article__body {
  padding: 0;
}

/* Our headings are set by their components; a heading letter spacing in
   Styles would only space out every card title. */
h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: normal;
}

:root[data-theme="dark"] {
  --wp--preset--color--brand-deep: #ff666d;
  --wp--preset--color--ink: #f4f4f1;
  --wp--preset--color--stone: #a8a8a0;
  --wp--preset--color--paper: #181818;
  --wp--preset--color--mist: #202020;
  --wp--preset--color--ground: #101010;
  --wp--preset--color--tile: #1c1c1c;
  --wp--preset--color--line: #333333;
  --wp--preset--color--video-band: #000000;
  --wp--preset--color--video-tile: #1f2226;
  color-scheme: dark;
}

/* Every page sits on the Pano ground; its content stands on tiles. */
body {
  background: var(--wp--preset--color--ground);
}

/* Without a stored choice the reader's system setting decides. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wp--preset--color--brand-deep: #ff666d;
    --wp--preset--color--ink: #f4f4f1;
    --wp--preset--color--stone: #a8a8a0;
    --wp--preset--color--paper: #181818;
    --wp--preset--color--mist: #202020;
    --wp--preset--color--ground: #101010;
    --wp--preset--color--tile: #1c1c1c;
    --wp--preset--color--line: #333333;
    --wp--preset--color--video-band: #000000;
    --wp--preset--color--video-tile: #1f2226;
    color-scheme: dark;
  }
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.gorunum-page {
  padding-inline: 16px;
}

/* The footer stays at the bottom of a short page. */
.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wp-site-blocks > main {
  flex: 1 0 auto;
  box-sizing: border-box;
  width: 100%;
}

/* A reading page is one tile on the ground. */
.gorunum-article {
  /* 660 px of text keeps a line near 78 characters. */
  max-width: 692px;
  margin: 8px auto 32px;
  padding: 16px 16px 24px;
  background: var(--wp--preset--color--tile);
}

.gorunum-article > * {
  margin-block: 0 16px;
}

/* A list page uses the home page's outer spacing and gaps. */
.gorunum-archive {
  max-width: calc(var(--g-page-max) + 32px);
  margin-inline: auto;
  padding: 8px 8px 32px;
}

.gorunum-archive > * {
  margin-block: 0 8px;
}

/* A page title is the wall's slim heading band. */
.g-page-title {
  position: relative;
  padding: 10px 12px 10px 28px;
  background: var(--wp--preset--color--tile);
  font-weight: 800;
  line-height: 1.05;
}

.g-page-title::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 12px;
  width: 6px;
  background: var(--wp--preset--color--brand);
}

.gorunum-article .g-page-title {
  padding: 0 0 0 16px;
  background: none;
}

.gorunum-article .g-page-title::before {
  inset: 0.1em auto 0.1em 0;
}

.gorunum-article h1,
.gorunum-archive h1 {
  line-height: 1.1;
}

.gorunum-article .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gorunum-article .wp-block-breadcrumbs,
.gorunum-article .gorunum-tags {
  color: var(--wp--preset--color--stone);
  font-size: var(--wp--preset--font-size--meta);
  line-height: 1.4;
}

.gorunum-article .wp-block-post-content {
  font-size: calc(var(--wp--preset--font-size--body) * var(--gorunum-text-scale, 1));
  line-height: 1.6;
}

.wp-block-query-pagination {
  gap: 12px;
  margin-top: 24px;
}

.wp-block-query-pagination a,
.wp-block-query-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}

.wp-block-query-pagination .page-numbers.current {
  background: var(--wp--preset--color--brand);
  color: #ffffff;
  font-weight: 700;
}

/* The home page: one wall, its bands closer to the section above them. */
.gorunum-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 8px 8px 0;
}

.gorunum-home > *,
.gorunum-home__columns > * {
  margin-block: 0;
  min-width: 0;
}

.gorunum-home__columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.gorunum-home > .gorunum-ad--band {
  margin-top: -16px;
}

.gorunum-section-title {
  margin: 0 0 12px;
  padding-top: 8px;
  border-top: 3px solid var(--wp--preset--color--brand);
  font-size: var(--wp--preset--font-size--section);
  font-weight: 800;
  line-height: 1.05;
}

.gorunum-section-title a {
  color: inherit;
  text-decoration: none;
}

@media (hover: hover) {
  main a:hover {
    text-decoration: underline;
  }
}

@media (min-width: 768px) {
  .gorunum-article {
    margin-top: 10px;
  }

  .gorunum-archive {
    padding: 10px 16px 40px;
  }

  .gorunum-archive > * {
    margin-block-end: 10px;
  }

  .g-page-title {
    padding: 12px 16px 12px 34px;
  }

  .g-page-title::before {
    inset: 12px auto 12px 16px;
    width: 7px;
  }

  .gorunum-home {
    gap: 34px;
    padding: 10px 16px 0;
  }

  .gorunum-home__columns {
    gap: 34px;
  }

  .gorunum-home > .gorunum-ad--band {
    margin-top: -24px;
  }
}

@media (min-width: 1200px) {
  .gorunum-home {
    max-width: calc(var(--g-page-max) + 32px);
    margin-inline: auto;
  }

  .gorunum-home__columns--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  /* A section with nothing to show renders nothing; the other one takes the row. */
  .gorunum-home__columns--2 > :only-child {
    grid-column: 1 / -1;
  }
}

/* White text means currentColor would draw the focus ring in white, on a light page. */
.wp-block-search .wp-block-search__button:focus-visible,
.gorunum-notices__filter button:focus-visible {
  outline-color: var(--wp--preset--color--ink);
}

/* Official notice tables keep their words. A light line around every cell makes
   rows and columns easy to follow; a wide table scrolls in its own box. */
.single-resmi_ilan .wp-block-post-content .wp-block-table {
  margin-block: 1.25em;
  overflow-x: auto;
}

.single-resmi_ilan .wp-block-post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.45;
}

.single-resmi_ilan .wp-block-post-content td,
.single-resmi_ilan .wp-block-post-content th {
  padding: 8px 10px;
  border: 1px solid var(--wp--preset--color--line);
  /* Words stay whole; only a long address breaks, and a table still too wide scrolls. */
  overflow-wrap: break-word;
  text-align: left;
  vertical-align: top;
}

.single-resmi_ilan .wp-block-post-content th,
.single-resmi_ilan .wp-block-post-content thead td {
  background: var(--wp--preset--color--mist);
  font-weight: 600;
}

.single-resmi_ilan .wp-block-post-content thead {
  border-bottom: 0;
}

.wp-block-search .wp-block-search__button {
  border: 0;
  background: var(--wp--preset--color--brand);
  color: #ffffff;
}
