:root {
  --idr-navy: #082b67;
  --idr-blue: #0b5ec8;
  --idr-blue-2: #1976df;
  --idr-sky: #eaf3ff;
  --idr-border: #dce6f2;
  --idr-text: #16304f;
  --idr-muted: #6b7a90;
  --idr-bg: #f5f8fc;
  --idr-white: #ffffff;
  --idr-shadow: 0 12px 34px rgba(8, 43, 103, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--idr-bg);
  color: var(--idr-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--idr-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.idr-topbar {
  background: linear-gradient(135deg, var(--idr-navy), var(--idr-blue));
  color: #fff;
}
.idr-header {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 22px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.idr-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
}
.idr-brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: #fff; color: var(--idr-blue);
  font-weight: 900; font-size: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,.14);
}
.idr-brand small { display:block; font-size: 11px; opacity: .74; font-weight: 600; letter-spacing: .02em; }
.idr-search { position: relative; }
.idr-search input {
  width: 100%;
  border: 0;
  outline: none;
  border-radius: 13px;
  padding: 13px 48px 13px 16px;
  font-size: 15px;
  box-shadow: 0 10px 25px rgba(3, 28, 69, .18);
}
.idr-search button {
  position: absolute; right: 6px; top: 6px;
  width: 37px; height: 37px; border: 0; border-radius: 10px;
  background: var(--idr-blue); color: #fff; cursor: pointer;
}
.idr-help { color: #fff; font-weight: 700; font-size: 13px; white-space: nowrap; opacity: .96; }

.idr-wrap { max-width: 1240px; margin: 0 auto; padding: 28px 22px 56px; }
.idr-layout { display: grid; grid-template-columns: 270px 1fr; gap: 26px; align-items: start; }
.idr-side {
  background: var(--idr-white);
  border: 1px solid var(--idr-border);
  border-radius: 18px;
  box-shadow: var(--idr-shadow);
  padding: 18px;
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
}
.idr-side h3 { margin: 0 0 12px; font-size: 13px; color: var(--idr-muted); text-transform: uppercase; letter-spacing: .08em; }
.idr-side a { display:block; padding: 9px 10px; border-radius: 10px; color: var(--idr-text); font-size: 13px; }
.idr-side a:hover { background: var(--idr-sky); text-decoration: none; color: var(--idr-blue); }

.idr-content {
  min-width: 0;
  background: var(--idr-white);
  border: 1px solid var(--idr-border);
  border-radius: 20px;
  box-shadow: var(--idr-shadow);
  padding: clamp(22px, 4vw, 42px);
}
.idr-source { max-width: 980px; margin: 0 auto; }
.idr-source header, .idr-source footer, .idr-source nav, .idr-source form.search-form, .idr-source .site-header, .idr-source .site-footer { display: none !important; }
.idr-source .screen-reader-text, .idr-source .skip-link { position: absolute !important; left: -9999px !important; }
.idr-source h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.16; margin: 0 0 15px; color: var(--idr-navy); letter-spacing: -.03em; }
.idr-source h2 { margin-top: 30px; color: var(--idr-navy); line-height: 1.25; }
.idr-source h3 { margin-top: 24px; color: var(--idr-navy); }
.idr-source h4 { color: var(--idr-blue); }
.idr-source p, .idr-source li { color: var(--idr-text); }
.idr-source blockquote { border-left: 4px solid var(--idr-blue-2); margin: 22px 0; padding: 8px 18px; background: var(--idr-sky); border-radius: 0 10px 10px 0; }
.idr-source pre, .idr-source code { font-family: "SFMono-Regular", Consolas, monospace; }
.idr-source pre { background: #0d1e37; color: #eff6ff; border-radius: 12px; padding: 16px; overflow:auto; }
.idr-source table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.idr-source th, .idr-source td { padding: 10px 12px; border: 1px solid var(--idr-border); text-align: left; vertical-align: top; }
.idr-source th { background: var(--idr-sky); }
.idr-source figure { margin: 24px 0; }
.idr-source figcaption { color: var(--idr-muted); font-size: 13px; margin-top: 7px; }
.idr-source img { border-radius: 12px; box-shadow: 0 8px 25px rgba(10, 44, 94, .08); }
.idr-source .wp-block-image img { display:block; margin: 0 auto; }
.idr-source .aligncenter { margin-left:auto !important; margin-right:auto !important; }

/* Home/category cards: preserve source content but modernize generic link lists. */
.idr-source ul { padding-left: 1.25rem; }
.idr-source li + li { margin-top: 5px; }
.idr-source a { color: var(--idr-blue); font-weight: 600; }
.idr-source hr { border: 0; border-top: 1px solid var(--idr-border); margin: 30px 0; }

.idr-footer {
  max-width: 1240px; margin: 0 auto; padding: 0 22px 30px;
  color: var(--idr-muted); font-size: 13px;
}
.idr-footer-inner {
  border-top: 1px solid var(--idr-border);
  padding-top: 18px;
  display:flex; justify-content:space-between; gap: 20px; flex-wrap:wrap;
}

.idr-float {
  position: fixed; right: 20px; bottom: 20px;
  background: var(--idr-blue); color:#fff; border: 0; border-radius: 999px;
  padding: 12px 16px; box-shadow: 0 15px 30px rgba(11,94,200,.28);
  font-weight: 800; cursor:pointer;
}

@media (max-width: 920px) {
  .idr-header { grid-template-columns: 1fr; gap: 14px; }
  .idr-help { display:none; }
  .idr-layout { grid-template-columns: 1fr; }
  .idr-side { position: static; max-height: none; }
}

@media (max-width: 620px) {
  .idr-wrap { padding: 16px 12px 36px; }
  .idr-header { padding: 14px 12px 16px; }
  .idr-content { border-radius: 14px; padding: 20px 16px; }
  .idr-side { border-radius: 14px; }
}
