<?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_7c4a7838-7abd-468b-8156-7c69beafbe4f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-24</startDate>
            <endDate>2026-03-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_7c4a7838-7abd-468b-8156-7c69beafbe4f"
      id="F_02b45d19-afd9-43bb-ba0b-a88846e47813">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7c4a7838-7abd-468b-8156-7c69beafbe4f"
      id="F_2beedef7-2cf8-4d61-b98e-2751bcfe609a">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_7c4a7838-7abd-468b-8156-7c69beafbe4f"
      id="F_db5bbfbf-d773-4f87-ac7a-8c6ab7d67f6e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_7c4a7838-7abd-468b-8156-7c69beafbe4f"
      id="F_c48077be-bd10-4c22-9ebe-3990e1015bb0">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_7c4a7838-7abd-468b-8156-7c69beafbe4f"
      id="F_d43a01a0-a115-4d4b-8cbe-51ab30962fc0">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_7c4a7838-7abd-468b-8156-7c69beafbe4f"
      id="F_24994b43-a0f5-4b10-8a95-ccef08a90c52">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_7c4a7838-7abd-468b-8156-7c69beafbe4f"
      id="F_555cf89d-7c9f-4001-b7d5-696526123044">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_7c4a7838-7abd-468b-8156-7c69beafbe4f"
      id="F_5395943a-d956-4731-8671-a3e407f12c56">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_7c4a7838-7abd-468b-8156-7c69beafbe4f"
      id="F_465bd15a-a6bf-4fa1-8e8c-094a50894aa7">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_7c4a7838-7abd-468b-8156-7c69beafbe4f"
      id="F_e667f162-8a08-437a-a691-652c65bb7b3c">&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,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_7c4a7838-7abd-468b-8156-7c69beafbe4f"
      decimals="0"
      id="F_ebb90e7e-96c8-4219-887d-2568edbcc2ab"
      unitRef="U_USD">10000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
