<?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_c08bbe5f-4908-408b-8105-807fd6fe74d3">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-25</startDate>
            <endDate>2026-06-25</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_c08bbe5f-4908-408b-8105-807fd6fe74d3"
      id="F_11631d22-b6e7-4dad-8b1e-185139b7e5eb">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_c08bbe5f-4908-408b-8105-807fd6fe74d3"
      id="F_78a52d7d-28f0-4c07-b7fb-2140b41b3e0f">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_c08bbe5f-4908-408b-8105-807fd6fe74d3"
      id="F_27cf5908-4944-4cf1-896f-3181187af24a">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c08bbe5f-4908-408b-8105-807fd6fe74d3"
      id="F_5f51aaa9-c1c5-450f-80e4-25dbdc5878b8">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_c08bbe5f-4908-408b-8105-807fd6fe74d3"
      id="F_c7b36cfc-e64b-4f3c-a1ad-bac5e92a8439">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_c08bbe5f-4908-408b-8105-807fd6fe74d3"
      id="F_ff7a4128-958c-4543-b328-699e60983a02">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_c08bbe5f-4908-408b-8105-807fd6fe74d3"
      id="F_2adfd18c-8fa8-422a-a606-6e28888961df">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_c08bbe5f-4908-408b-8105-807fd6fe74d3"
      id="F_61ce1d26-4cc8-43d5-bbb8-b7b8ecf80d78">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c08bbe5f-4908-408b-8105-807fd6fe74d3"
      id="F_66f5847a-ac33-41d1-ac8b-49934deb7b8a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_c08bbe5f-4908-408b-8105-807fd6fe74d3"
      id="F_d2222391-702d-4c1c-85fd-8a22b112d6bc">&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;905,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_c08bbe5f-4908-408b-8105-807fd6fe74d3"
      decimals="-3"
      id="F_9511cf96-bf4d-41a7-b5de-6f2c41c4d702"
      unitRef="U_USD">905000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
