<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_54ec040d-660b-4504-8c5a-9307cee7f317">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-04</startDate>
            <endDate>2026-05-04</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_54ec040d-660b-4504-8c5a-9307cee7f317"
      id="F_2f771e43-a28d-4aa9-a956-cf8c81be3815">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_54ec040d-660b-4504-8c5a-9307cee7f317"
      id="F_dab8fbaf-75df-4972-abf6-5e309a5ae5c7">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_54ec040d-660b-4504-8c5a-9307cee7f317"
      id="F_e3be076d-137a-4c94-ad51-35dc70fcf4d6">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_54ec040d-660b-4504-8c5a-9307cee7f317"
      id="F_380c312f-ff4e-4aed-a1ad-1154329428a0">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_54ec040d-660b-4504-8c5a-9307cee7f317"
      id="F_6cd2e3dc-1924-41f0-8ffd-0b3cb0a2dcfa">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_54ec040d-660b-4504-8c5a-9307cee7f317"
      id="F_40435b59-8a06-488d-9b25-40dcb7422c94">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_54ec040d-660b-4504-8c5a-9307cee7f317"
      id="F_05d87bb1-1dee-4e8d-819c-805d7bbcf655">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_54ec040d-660b-4504-8c5a-9307cee7f317"
      id="F_11a1777f-bb31-4f2b-87de-81f9be913da3">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_54ec040d-660b-4504-8c5a-9307cee7f317"
      id="F_58e45869-5dfe-4d02-9a3b-d9fa1415686b">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_54ec040d-660b-4504-8c5a-9307cee7f317"
      id="F_bb79dcfd-e79f-4fd9-a613-d9f1ccd8a561">&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,944,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_54ec040d-660b-4504-8c5a-9307cee7f317"
      decimals="0"
      id="F_130672b1-5dca-46a3-9b23-b465dbfac929"
      unitRef="U_USD">2944000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
