<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_bf2aca3f-1662-4f40-9768-e698b4f65c4f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-15</startDate>
            <endDate>2026-06-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_bf2aca3f-1662-4f40-9768-e698b4f65c4f"
      id="F_91119900-6d98-4c8c-acaa-7c6410830700">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_bf2aca3f-1662-4f40-9768-e698b4f65c4f"
      id="F_93718a78-c229-4f4f-83a1-cb0ead44ff60">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_bf2aca3f-1662-4f40-9768-e698b4f65c4f"
      id="F_c0ef062a-640a-47f5-834b-219b69625f00">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_bf2aca3f-1662-4f40-9768-e698b4f65c4f"
      id="F_c5d4605b-4629-420e-a070-2f76284057a6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_bf2aca3f-1662-4f40-9768-e698b4f65c4f"
      id="F_da4a4582-8c84-4d97-9439-939fa277a08a">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_bf2aca3f-1662-4f40-9768-e698b4f65c4f"
      id="F_a35d2416-5a81-443a-a094-7e7c4f657f8d">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_bf2aca3f-1662-4f40-9768-e698b4f65c4f"
      id="F_555b5a9f-23a8-47da-93a8-6b5644e8b062">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_bf2aca3f-1662-4f40-9768-e698b4f65c4f"
      id="F_7c1e1968-0657-4549-9c6d-77aff3248d8d">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_bf2aca3f-1662-4f40-9768-e698b4f65c4f"
      id="F_9af374ff-b43a-4b6a-9658-d653f2cc8785">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_bf2aca3f-1662-4f40-9768-e698b4f65c4f"
      id="F_458e01e2-6f7f-4ea6-928c-ac364bef90c0">&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 amended prospectus to which this Exhibit is attached is the final prospectus for the offering of the reopened notes described therein.  The maximum aggregate offering price for the offering of the reopened notes 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;10,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_bf2aca3f-1662-4f40-9768-e698b4f65c4f"
      decimals="-3"
      id="F_c0acf9e9-6e0e-419a-a740-fa5b9c4c9450"
      unitRef="U_USD">10000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
