<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_0b137ff7-1349-4ee1-9951-556cf63dd5d5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-04-24</startDate>
            <endDate>2026-04-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_0b137ff7-1349-4ee1-9951-556cf63dd5d5"
      id="F_de04f745-3e09-46ba-a5d6-d3ce1fef2631">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_0b137ff7-1349-4ee1-9951-556cf63dd5d5"
      id="F_05c26bc3-0ac2-4a17-aeca-ba294060bc1a">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_0b137ff7-1349-4ee1-9951-556cf63dd5d5"
      id="F_f5209123-2cc6-4530-8170-1a9ff4eb0506">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_0b137ff7-1349-4ee1-9951-556cf63dd5d5"
      id="F_1b9997d7-f170-45e5-a724-2aa3f4dc20b3">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_0b137ff7-1349-4ee1-9951-556cf63dd5d5"
      id="F_26536245-0cf2-4aa4-9669-f608c3976274">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0b137ff7-1349-4ee1-9951-556cf63dd5d5"
      id="F_7f76fd18-67ae-48c7-8e21-c16a77ae810d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0b137ff7-1349-4ee1-9951-556cf63dd5d5"
      id="F_31d46ced-7d44-4156-a22b-e5b4edc0f838">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0b137ff7-1349-4ee1-9951-556cf63dd5d5"
      id="F_4d20ea56-7ff9-4989-a08b-d3ee7af2abd2">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_0b137ff7-1349-4ee1-9951-556cf63dd5d5"
      id="F_9abf604f-6221-465b-ba51-b9b367e51932">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_0b137ff7-1349-4ee1-9951-556cf63dd5d5"
      id="F_ece0c480-fef0-4b2e-9567-a191c9c1dd26">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;270,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_0b137ff7-1349-4ee1-9951-556cf63dd5d5"
      decimals="0"
      id="F_ca0cca7e-57c1-431f-a7ee-018dd380d748"
      unitRef="U_USD">270000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>