<?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_5fdff456-d648-49b1-9d0f-1de40815b52f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_5fdff456-d648-49b1-9d0f-1de40815b52f"
      id="F_15c32167-dcb8-4c59-b31d-2577ac7e0652">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_5fdff456-d648-49b1-9d0f-1de40815b52f"
      id="F_bfefd838-f562-4231-b7a4-c0abbd88d9a8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_5fdff456-d648-49b1-9d0f-1de40815b52f"
      id="F_fec2c8fc-52e7-46c5-a5b4-67ce65cce33c">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_5fdff456-d648-49b1-9d0f-1de40815b52f"
      id="F_fdc64748-e473-4d24-9aad-1a68e9f4d591">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_5fdff456-d648-49b1-9d0f-1de40815b52f"
      id="F_ba400e0a-605e-4c2b-8627-5a3eb48ef2b4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:SubmissnTp
      contextRef="C_5fdff456-d648-49b1-9d0f-1de40815b52f"
      id="F_39fcdf56-1808-4b8a-a47b-774033b2e3b3">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_5fdff456-d648-49b1-9d0f-1de40815b52f"
      id="F_4f672c28-2c73-42d7-85b0-8acc1ea33b96">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_5fdff456-d648-49b1-9d0f-1de40815b52f"
      id="F_1bbcd3b9-2f6a-4926-899a-289bc9fcbb3d">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_5fdff456-d648-49b1-9d0f-1de40815b52f"
      id="F_f9b76828-67f9-40b5-991a-b5dbd59e37ba">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_5fdff456-d648-49b1-9d0f-1de40815b52f"
      id="F_fe9a00a1-10f0-4446-a35b-1ea86367841c">&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;1,039,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_5fdff456-d648-49b1-9d0f-1de40815b52f"
      decimals="-3"
      id="F_320adde7-fd37-484b-ab31-560bb6789dd2"
      unitRef="U_USD">1039000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
