/* KOSMOREA Ring Size Guide — isolated styles; mobile first */
.krsg-trigger-wrap { margin: 12px 0 18px; }
.krsg-trigger {
  appearance: none; display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid #bd9c70; border-radius: 3px; background: #fffdf9;
  padding: 10px 15px; color: #5c4630; font-weight: 500; font-size: 13px; line-height: 1.45; font-family: inherit;
  letter-spacing: .025em; cursor: pointer; transition: background .15s,border-color .15s;
  max-width: 100%; text-align: left;
}
.krsg-trigger:hover, .krsg-trigger:focus-visible { background: #f8f1e6; border-color: #927144; }
.krsg-trigger-icon { font-size: 23px; font-weight: 400; line-height: .65; }
.krsg-trigger-arrow { font-size: 13px; margin-left: 2px; }
.krsg-dialog[hidden], .krsg-visual-circumference[hidden], .krsg-visual-diameter[hidden] { display: none !important; }
.krsg-dialog { position: fixed; z-index: 2147482000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; box-sizing: border-box; }
.krsg-dialog *, .krsg-dialog *::before, .krsg-dialog *::after { box-sizing: border-box; }
.krsg-shade { position: absolute; inset: 0; background: rgba(24,21,19,.69); }
.krsg-panel {
  position: relative; width: min(100%, 570px); max-height: min(90dvh, 920px);
  overflow-y: auto; overscroll-behavior: contain; background: #fffefa;
  border-radius: 10px; box-shadow: 0 20px 90px rgba(0,0,0,.28);
  color: #292723; padding: 24px 28px 26px;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  text-align: left; line-height: 1.5;
}
.krsg-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #eae2d5; }
.krsg-brand { color: #3f3124; font-size: 12px; letter-spacing: .17em; font-weight: 650; white-space: nowrap; }
.krsg-brand span { color: #9a7b57; font-weight: 450; }
.krsg-icon-button { border: 0 !important; background: transparent !important; color: #6b645c !important; font: 400 30px/1 Arial,sans-serif !important; width: 36px; height: 36px; padding: 0 !important; cursor: pointer; }
.krsg-heading-row { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; margin: 17px 0 18px; }
.krsg-kicker { font-size: 10px !important; font-weight: 650 !important; color: #9b7f59 !important; letter-spacing: .2em; margin: 0 0 6px !important; }
.krsg-panel h2 { font-size: clamp(21px,4vw,28px) !important; line-height: 1.18 !important; margin: 0 0 8px !important; color: #33291f !important; font-weight: 550 !important; }
.krsg-intro { color: #71695f; font-size: 13px !important; margin: 0 !important; }
.krsg-language { display: flex; flex: 0 0 auto; background: #f4eee5; border-radius: 24px; padding: 3px; }
.krsg-language button { padding: 6px 9px !important; border: 0 !important; border-radius: 20px !important; background: transparent !important; font: 600 11px/1.2 Arial,sans-serif !important; color: #81796f !important; cursor: pointer; }
.krsg-language button[aria-pressed="true"] { background: #fff !important; color: #4e3a27 !important; box-shadow: 0 1px 4px #cabda980; }
.krsg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 14px; }
.krsg-tabs button { color: #66594a !important; background: #fff !important; border: 1px solid #ddd1c2 !important; border-radius: 5px !important; font: 550 12px/1.45 Arial,sans-serif !important; cursor: pointer; padding: 10px 7px !important; min-height: 42px; }
.krsg-tabs button[aria-pressed="true"] { background: #f4ebdd !important; color: #57402c !important; border-color: #b99567 !important; }
.krsg-method-card { background: #f9f6f0; border: 1px solid #efe8dc; border-radius: 7px; display: flex; align-items: center; gap: 12px; padding: 8px 15px; margin-bottom: 16px; }
.krsg-figure { flex: 0 0 132px; text-align: center; }
.krsg-figure svg { display: block; width: 132px; height: 96px; max-width: 100%; margin: auto; }
.krsg-howto { font-size: 13px !important; line-height: 1.6 !important; color: #65584c !important; margin: 0 !important; }
.krsg-input-label { display: block; margin: 0 0 6px; font-size: 13px; color: #45392e; font-weight: 650; }
.krsg-input-line { position: relative; width: 100%; }
.krsg-input-line input { color: #2d2a25 !important; width: 100% !important; height: 46px !important; background: #fff !important; border: 1px solid #c6b39b !important; box-shadow: none !important; border-radius: 5px !important; padding: 10px 53px 10px 13px !important; font: 500 16px/1.2 Arial,sans-serif !important; }
.krsg-input-line input:focus { outline: 2px solid #be9d6c !important; outline-offset: 1px; }
.krsg-unit { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: #897e71; pointer-events: none; }
.krsg-helper { font-size: 11px !important; color: #8b8277 !important; margin: 6px 0 15px !important; }
.krsg-result { display: flex; min-height: 119px; flex-direction: column; align-items: center; justify-content: center; gap: 1px; background: #ede1d0; border: 1px solid #dccab1; border-radius: 7px; text-align: center; padding: 12px 16px; }
.krsg-result-kicker { font-size: 10px; font-weight: 700; letter-spacing: .13em; color: #786145; }
.krsg-result-size { font-size: 39px; font-weight: 500; color: #473625; letter-spacing: -.035em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.krsg-result-note { font-size: 12px; color: #6e5a44; }
.krsg-size-table { border-top: 1px solid #e8ddcf; border-bottom: 1px solid #e8ddcf; margin-top: 16px; padding: 8px 0; }
.krsg-size-table summary { cursor: pointer; font-size: 13px; color: #58442f; font-weight: 600; padding: 5px 0; }
.krsg-size-table table { width: 100%; border-collapse: collapse; margin: 8px 0 3px; font-size: 12px; color: #574d41; }
.krsg-size-table th, .krsg-size-table td { padding: 5px 10px; text-align: left; border-bottom: 1px solid #f0e8dc; background: transparent; }
.krsg-size-table th { background: #f7f1e8; color: #6b553c; font-weight: 650; }
.krsg-caution { font-size: 11px !important; line-height: 1.65 !important; color: #84786b !important; margin: 11px 0 0 !important; }
@media (max-width: 540px) {
  .krsg-dialog { padding: 8px; align-items: center; }
  .krsg-panel { padding: 16px 16px 19px; max-height: 96dvh; }
  .krsg-heading-row { margin-top: 13px; }
  .krsg-method-card { padding: 7px 10px; gap: 5px; }
  .krsg-figure { flex-basis: 94px; }
  .krsg-figure svg { width: 94px; height: 82px; }
  .krsg-howto { font-size: 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .krsg-trigger { transition: none; }
}

/* Full-page mode: the complete guide and table are visible without any popup. */
.krsg-page-guide { width: 100%; max-width: 800px; margin: 24px auto 38px; }
.krsg-page-guide *, .krsg-page-guide *::before, .krsg-page-guide *::after { box-sizing: border-box; }
.krsg-page-guide .krsg-panel {
  width: 100%; max-height: none; overflow: visible; background: #fffefa;
  border: 1px solid #e8ddcd; border-radius: 10px; box-shadow: 0 6px 30px rgba(75,61,40,.06);
  padding: clamp(18px, 4vw, 38px);
}
.krsg-page-guide .krsg-size-table { margin-top: 24px; }
.krsg-page-guide .krsg-size-table summary { font-size: 15px; padding: 7px 0; }
.krsg-page-guide .krsg-size-table table { font-size: 13px; }
.krsg-page-guide .krsg-size-table th, .krsg-page-guide .krsg-size-table td { padding: 9px 12px; }
.krsg-page-guide .krsg-caution { margin-top: 22px !important; }
@media(max-width:540px) { .krsg-page-guide { margin: 14px auto 24px; } }
