<?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_e8c9511e-6dfe-4792-bc87-6c6bb8ca8eee">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_e8c9511e-6dfe-4792-bc87-6c6bb8ca8eee"
      id="F_f4d96eac-4a8c-4dfc-95a4-69e488402abc">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_e8c9511e-6dfe-4792-bc87-6c6bb8ca8eee"
      id="F_f1b8692c-097f-4aca-a384-b4e83c52835b">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_e8c9511e-6dfe-4792-bc87-6c6bb8ca8eee"
      id="F_aa5fb15b-fc46-4b8f-ba03-194f93e5111f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_e8c9511e-6dfe-4792-bc87-6c6bb8ca8eee"
      id="F_c3b61c87-4ba6-4970-a0e8-8dccd15d077a">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_e8c9511e-6dfe-4792-bc87-6c6bb8ca8eee"
      id="F_d9f11502-0b19-4217-a7d5-48e4d30ff2c1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_e8c9511e-6dfe-4792-bc87-6c6bb8ca8eee"
      id="F_b6e1d47f-05e9-4864-ad51-92007d009200">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_e8c9511e-6dfe-4792-bc87-6c6bb8ca8eee"
      id="F_95d9462a-3785-40f4-a99c-ca595fc2d819">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_e8c9511e-6dfe-4792-bc87-6c6bb8ca8eee"
      id="F_ad8b46ad-b758-4c92-9398-108929f26389">N/A</ffd:OffsetTableNa>
    <ffd:RegnFileNb
      contextRef="C_e8c9511e-6dfe-4792-bc87-6c6bb8ca8eee"
      id="F_ceb8d273-ae08-4f00-9a4a-3edb806b587c">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_e8c9511e-6dfe-4792-bc87-6c6bb8ca8eee"
      id="F_ad4cbc1e-606d-432d-8502-3ad86cff3506">&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;2,655,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_e8c9511e-6dfe-4792-bc87-6c6bb8ca8eee"
      decimals="-3"
      id="F_8fb119d8-34a4-4e8f-a854-59393b6c3c92"
      unitRef="U_USD">2655000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
