<?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_d3722fa3-f58a-4767-ae11-6a57c582727c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-24</startDate>
            <endDate>2026-07-24</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FeeExhibitTp
      contextRef="C_d3722fa3-f58a-4767-ae11-6a57c582727c"
      id="F_25b008d0-c48f-40b9-a8cc-13a36cabe94a">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_d3722fa3-f58a-4767-ae11-6a57c582727c"
      id="F_a96a5634-8dd5-4d18-be51-7ddb3361cff3">424B2</ffd:SubmissnTp>
    <dei:EntityCentralIndexKey
      contextRef="C_d3722fa3-f58a-4767-ae11-6a57c582727c"
      id="F_75d4ef24-a2c7-4b05-aebb-cc8f0fbd824e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_d3722fa3-f58a-4767-ae11-6a57c582727c"
      id="F_64172678-301b-4ccb-a37a-b1992dfd5948">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_d3722fa3-f58a-4767-ae11-6a57c582727c"
      id="F_72770810-16f6-43c2-8d1b-508532bb9421">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d3722fa3-f58a-4767-ae11-6a57c582727c"
      id="F_b834a569-449e-4a2b-b9b5-2d8d135d5d81">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_d3722fa3-f58a-4767-ae11-6a57c582727c"
      id="F_ecacd70d-46ad-4de0-ad88-8f71c67ddc90">S-3</ffd:FormTp>
    <ffd:OffsetTableNa
      contextRef="C_d3722fa3-f58a-4767-ae11-6a57c582727c"
      id="F_675407a4-87b6-4951-8b68-711d2362185c">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_d3722fa3-f58a-4767-ae11-6a57c582727c"
      id="F_92fc22e2-302e-4648-8692-e7d9f86ac7c5">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d3722fa3-f58a-4767-ae11-6a57c582727c"
      id="F_2c7a349e-4f68-44c9-bceb-8107845b6131">&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,416,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_d3722fa3-f58a-4767-ae11-6a57c582727c"
      decimals="-3"
      id="F_f1bc7ee2-15b9-4dfb-a730-4672c406197c"
      unitRef="U_USD">1416000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
