<?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_42c57daa-e289-452d-9fc4-27ba7b38c42b">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-30</startDate>
            <endDate>2026-06-30</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_42c57daa-e289-452d-9fc4-27ba7b38c42b"
      id="F_d59e41d1-4c68-4192-929c-cdb9330ae5e5">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_42c57daa-e289-452d-9fc4-27ba7b38c42b"
      id="F_5312812c-7815-41b7-bc6f-af2a581e701a">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_42c57daa-e289-452d-9fc4-27ba7b38c42b"
      id="F_0452461e-8ad4-45d3-ba19-a388597f446b">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_42c57daa-e289-452d-9fc4-27ba7b38c42b"
      id="F_0d725f26-d0ff-4c66-a4dd-c0554bb5d355">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_42c57daa-e289-452d-9fc4-27ba7b38c42b"
      id="F_2762451d-213b-4eba-9c4a-74814755584f">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_42c57daa-e289-452d-9fc4-27ba7b38c42b"
      id="F_55d723a6-395a-4610-8cdb-e35375f5f08c">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_42c57daa-e289-452d-9fc4-27ba7b38c42b"
      id="F_8c50366f-9582-4add-b2d4-6a926ce31d36">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_42c57daa-e289-452d-9fc4-27ba7b38c42b"
      id="F_6237da25-095f-45c7-9195-31f76677c455">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_42c57daa-e289-452d-9fc4-27ba7b38c42b"
      id="F_8857cab0-6f80-429e-b773-8fcfa2109ed1">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_42c57daa-e289-452d-9fc4-27ba7b38c42b"
      id="F_8d0bbb6d-a6bd-4082-baab-3dc677f5cd05">&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;6,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_42c57daa-e289-452d-9fc4-27ba7b38c42b"
      decimals="-6"
      id="F_7e371a8e-e899-41dc-8dbe-4f1f5ab52d3f"
      unitRef="U_USD">6000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
