<?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_b35c9357-286a-4f9a-85b8-1416fa468d82">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-10</startDate>
            <endDate>2026-07-10</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="C_b35c9357-286a-4f9a-85b8-1416fa468d82"
      id="F_ce043cc2-a145-44d2-8383-e9993e1adfce">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b35c9357-286a-4f9a-85b8-1416fa468d82"
      id="F_e7e956d9-0a1f-4c45-86bf-02260ff206c4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_b35c9357-286a-4f9a-85b8-1416fa468d82"
      id="F_dd174bff-6c2e-40ce-b0b5-6a4e79023675">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_b35c9357-286a-4f9a-85b8-1416fa468d82"
      id="F_2b8088ca-8b9d-4ed5-9bbe-3495fc88a24a">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_b35c9357-286a-4f9a-85b8-1416fa468d82"
      id="F_ab5d83e6-4ebe-4722-8980-dda20ca1a5bb">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_b35c9357-286a-4f9a-85b8-1416fa468d82"
      id="F_57ac93f5-cd83-40e9-8440-d92035d18362">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_b35c9357-286a-4f9a-85b8-1416fa468d82"
      id="F_95cce98c-0531-4f53-8e02-670092fe0252">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b35c9357-286a-4f9a-85b8-1416fa468d82"
      id="F_3692086e-0345-4c31-9184-ee5ea3bc1134">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b35c9357-286a-4f9a-85b8-1416fa468d82"
      id="F_96391f20-6de3-4bbe-9828-c1725770c1ef">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_b35c9357-286a-4f9a-85b8-1416fa468d82"
      id="F_28bc1cda-e651-4e5e-8115-de5977a19ee8">&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;1,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_b35c9357-286a-4f9a-85b8-1416fa468d82"
      decimals="-6"
      id="F_cac4d968-3691-4711-8bbf-b2079da6b117"
      unitRef="U_USD">1000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
