<?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_cfc62647-119a-4db6-a2b1-8c7df5c90bf6">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-03-27</startDate>
            <endDate>2026-03-27</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_cfc62647-119a-4db6-a2b1-8c7df5c90bf6"
      id="F_b45788a5-fb77-4153-aba1-a9ecdf9d697c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_cfc62647-119a-4db6-a2b1-8c7df5c90bf6"
      id="F_b9a4c89d-c398-4cc6-95ba-f7fc09de7a58">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_cfc62647-119a-4db6-a2b1-8c7df5c90bf6"
      id="F_62d25c0c-2c9f-4bff-8dfd-db3ac35c6e92">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_cfc62647-119a-4db6-a2b1-8c7df5c90bf6"
      id="F_d0fb63a1-d698-4ab8-8097-814afbdee4f5">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_cfc62647-119a-4db6-a2b1-8c7df5c90bf6"
      id="F_fb0ad545-e01f-44d7-b6de-f8b78a1ad891">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_cfc62647-119a-4db6-a2b1-8c7df5c90bf6"
      id="F_bb2cd642-bca8-45d2-881f-eab9af57456b">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_cfc62647-119a-4db6-a2b1-8c7df5c90bf6"
      id="F_6ab1f7bf-4a5d-41b1-8669-ea417a058ade">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_cfc62647-119a-4db6-a2b1-8c7df5c90bf6"
      id="F_ccf412b0-b7a4-445b-9eb7-e1e629b325d7">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_cfc62647-119a-4db6-a2b1-8c7df5c90bf6"
      id="F_59b38b5b-a584-4428-bdc3-5f37636ae7b1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_cfc62647-119a-4db6-a2b1-8c7df5c90bf6"
      id="F_661089de-1a4a-41fe-a640-3c96ce398ae4">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:0;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;29,756,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_cfc62647-119a-4db6-a2b1-8c7df5c90bf6"
      decimals="0"
      id="F_385ceece-7a36-4dfd-b447-a546f5c9de18"
      unitRef="U_USD">29756000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
