<?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_aea5c8c3-3e96-4dcd-90a5-e5b8edce009a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-14</startDate>
            <endDate>2026-09-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_aea5c8c3-3e96-4dcd-90a5-e5b8edce009a"
      id="F_8d8582a0-7ebd-4dd2-bde1-8a7c95d06e87">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_aea5c8c3-3e96-4dcd-90a5-e5b8edce009a"
      id="F_66d6ab4a-b0b2-4170-8946-454c25672b32">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_aea5c8c3-3e96-4dcd-90a5-e5b8edce009a"
      id="F_f68d8733-aca5-4c08-a4ec-69aa9eb7db46">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_aea5c8c3-3e96-4dcd-90a5-e5b8edce009a"
      id="F_a0474f45-4d31-42a0-920b-f338c217f602">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_aea5c8c3-3e96-4dcd-90a5-e5b8edce009a"
      id="F_f8aa9db1-fb8f-4fb0-a8bb-780aacb2c87e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_aea5c8c3-3e96-4dcd-90a5-e5b8edce009a"
      id="F_ba10369c-a32f-4646-9ee1-68d3b8ed01ab">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_aea5c8c3-3e96-4dcd-90a5-e5b8edce009a"
      id="F_6004d7fc-a1bc-4bec-9634-8e204790de02">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_aea5c8c3-3e96-4dcd-90a5-e5b8edce009a"
      id="F_f8667e2a-3950-4682-8344-2c0462246118">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_aea5c8c3-3e96-4dcd-90a5-e5b8edce009a"
      id="F_9de4c060-a91d-40e2-b741-8f564f7884e5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_aea5c8c3-3e96-4dcd-90a5-e5b8edce009a"
      id="F_57145add-a249-405f-a193-4e3032662501">&lt;p style="tab-size:26.66px;font-size:12pt;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;3,000,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_aea5c8c3-3e96-4dcd-90a5-e5b8edce009a"
      decimals="-6"
      id="F_2ab16a28-04ee-4779-9037-a310eae59e94"
      unitRef="U_USD">3000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
