<?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_12591ac4-a63d-461e-82c4-2e13e35afc76">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:FormTp
      contextRef="C_12591ac4-a63d-461e-82c4-2e13e35afc76"
      id="F_6ca26ad4-85bb-49df-9c7d-b28e2a72de16">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_12591ac4-a63d-461e-82c4-2e13e35afc76"
      id="F_3c87b072-b476-477d-8ae7-87de00f8cd0b">333-284538</ffd:RegnFileNb>
    <ffd:CombinedProspectusTableNa
      contextRef="C_12591ac4-a63d-461e-82c4-2e13e35afc76"
      id="F_dce94e56-8860-4c76-ba08-04ae3f82881c">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_12591ac4-a63d-461e-82c4-2e13e35afc76"
      id="F_6ab69ea2-b5fa-4d37-8c05-0ea6a93bacae">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_12591ac4-a63d-461e-82c4-2e13e35afc76"
      id="F_d7e17c71-1795-47a8-9e49-ff5dbead056a">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_12591ac4-a63d-461e-82c4-2e13e35afc76"
      id="F_d804d3b8-daa5-4f9b-a3a5-8309118ed409">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_12591ac4-a63d-461e-82c4-2e13e35afc76"
      id="F_7bec5de1-9f7d-4e75-bdeb-06152f865e06">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityRegistrantName
      contextRef="C_12591ac4-a63d-461e-82c4-2e13e35afc76"
      id="F_b84c5e1d-322c-4e80-9b97-7e82d78e6469">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_12591ac4-a63d-461e-82c4-2e13e35afc76"
      id="F_92f73490-abce-4a38-b64f-6a978c452c25">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_12591ac4-a63d-461e-82c4-2e13e35afc76"
      id="F_56c1a8f1-99d5-43c4-b397-65c120fcc13a">&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,616,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_12591ac4-a63d-461e-82c4-2e13e35afc76"
      decimals="-3"
      id="F_cb43bf36-2184-4e26-8847-74048911d238"
      unitRef="U_USD">1616000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
