<?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_3a231a17-e3b8-49e1-b8b5-e01b276e0e0b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_3a231a17-e3b8-49e1-b8b5-e01b276e0e0b"
      id="F_194e8383-3287-4735-bb71-d5f7c324b87a">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_3a231a17-e3b8-49e1-b8b5-e01b276e0e0b"
      id="F_2df09a81-82a9-4d9b-90b5-df80425e34c0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_3a231a17-e3b8-49e1-b8b5-e01b276e0e0b"
      id="F_70f335de-161a-410f-8475-1c95a296d151">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_3a231a17-e3b8-49e1-b8b5-e01b276e0e0b"
      id="F_bd238077-f0d0-4e3c-8105-44a235b18a49">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OffsetTableNa
      contextRef="C_3a231a17-e3b8-49e1-b8b5-e01b276e0e0b"
      id="F_082ebf92-c6bc-4e86-973b-4393aaf7e0c8">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_3a231a17-e3b8-49e1-b8b5-e01b276e0e0b"
      id="F_8f4d14ea-9810-411c-ae25-f1ac6549b45c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <dei:EntityCentralIndexKey
      contextRef="C_3a231a17-e3b8-49e1-b8b5-e01b276e0e0b"
      id="F_b40e00db-7baf-45b4-ba6a-929afd799b66">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_3a231a17-e3b8-49e1-b8b5-e01b276e0e0b"
      id="F_2d0e1e25-9adf-4706-9c2b-231ab3406f0e">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_3a231a17-e3b8-49e1-b8b5-e01b276e0e0b"
      id="F_2efd20c8-3251-431b-a94b-face73c47bcc">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_3a231a17-e3b8-49e1-b8b5-e01b276e0e0b"
      id="F_e6f47ff0-e4c6-4325-9b0e-fba64e0c2b33">&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;500,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_3a231a17-e3b8-49e1-b8b5-e01b276e0e0b"
      decimals="-3"
      id="F_4d3d859f-a2fa-4a2c-a035-98e74788879b"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
