<?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_0b64f6cd-ef37-4ab5-b128-279858c7185f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-09</startDate>
            <endDate>2026-06-09</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_0b64f6cd-ef37-4ab5-b128-279858c7185f"
      id="F_3d76f258-f028-41cd-a351-cf969d226dc0">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_0b64f6cd-ef37-4ab5-b128-279858c7185f"
      id="F_897f6cb6-3d8f-490f-abb5-1c7c81c95631">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_0b64f6cd-ef37-4ab5-b128-279858c7185f"
      id="F_5e7bab20-262f-40a9-8525-8c21432ad5b4">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_0b64f6cd-ef37-4ab5-b128-279858c7185f"
      id="F_0fd4c621-ec9c-4ff0-919e-1646413bac9e">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_0b64f6cd-ef37-4ab5-b128-279858c7185f"
      id="F_c062ec6c-8bf1-4feb-a6f7-0cfa4d7db648">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_0b64f6cd-ef37-4ab5-b128-279858c7185f"
      id="F_73391a87-1490-4797-838f-e4d9af6cae67">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_0b64f6cd-ef37-4ab5-b128-279858c7185f"
      id="F_12d640dc-57d6-4b4c-b951-ce7cb65fff1a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_0b64f6cd-ef37-4ab5-b128-279858c7185f"
      id="F_107e2f6e-79f7-428b-9a56-eafaa15df555">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_0b64f6cd-ef37-4ab5-b128-279858c7185f"
      id="F_815cb817-3c63-4714-ba75-bf0b8605f898">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_0b64f6cd-ef37-4ab5-b128-279858c7185f"
      id="F_0a96fd30-b461-4fff-bfba-0c1129fa071b">&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;10,684,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_0b64f6cd-ef37-4ab5-b128-279858c7185f"
      decimals="-3"
      id="F_34fa81ff-44d5-48f9-8f0c-3c446ae13edb"
      unitRef="U_USD">10684000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
