<?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_d1ad303b-aed5-4c2f-8368-1599c0fc21fa">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-15</startDate>
            <endDate>2026-05-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_d1ad303b-aed5-4c2f-8368-1599c0fc21fa"
      id="F_e7ab6140-4058-4b0d-a9df-fea8d114f1d4">333-284538</ffd:RegnFileNb>
    <ffd:FormTp
      contextRef="C_d1ad303b-aed5-4c2f-8368-1599c0fc21fa"
      id="F_b26f32c2-c45a-478d-992d-c00722facf70">S-3</ffd:FormTp>
    <dei:EntityRegistrantName
      contextRef="C_d1ad303b-aed5-4c2f-8368-1599c0fc21fa"
      id="F_fc2bb8b1-224f-435b-beb5-c24bb07e1f3d">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_d1ad303b-aed5-4c2f-8368-1599c0fc21fa"
      id="F_0202f6c2-6a72-4b97-bb65-1b57e180f3f6">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_d1ad303b-aed5-4c2f-8368-1599c0fc21fa"
      id="F_73abbd6d-da38-4fe0-86b3-d3ef9be03a55">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_d1ad303b-aed5-4c2f-8368-1599c0fc21fa"
      id="F_ebc2dcba-7fd6-4cf3-86aa-d142bfe7f37c">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_d1ad303b-aed5-4c2f-8368-1599c0fc21fa"
      id="F_5bbb5c23-5eb6-4129-be6c-108f61d57964">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d1ad303b-aed5-4c2f-8368-1599c0fc21fa"
      id="F_57417527-2306-4eb3-907d-6e593dbef52b">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d1ad303b-aed5-4c2f-8368-1599c0fc21fa"
      id="F_ec56cc40-42bf-4668-8cef-29b0d39225a8">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d1ad303b-aed5-4c2f-8368-1599c0fc21fa"
      id="F_e5e2d138-d0df-455e-b02f-b42413297b41">&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;251,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_d1ad303b-aed5-4c2f-8368-1599c0fc21fa"
      decimals="0"
      id="F_d78ad132-d7ad-4160-b278-541c04498dd6"
      unitRef="U_USD">251000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
