<?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_c170bb77-c677-44a4-9b82-7075b89dedd8">
        <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:FeeExhibitTp
      contextRef="C_c170bb77-c677-44a4-9b82-7075b89dedd8"
      id="F_fece208c-2664-40b9-b204-ed7ca66341ef">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_c170bb77-c677-44a4-9b82-7075b89dedd8"
      id="F_a184de8a-3900-4966-9f87-9f48bea853a6">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_c170bb77-c677-44a4-9b82-7075b89dedd8"
      id="F_029ba702-1975-4bf6-a505-996ec924074f">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_c170bb77-c677-44a4-9b82-7075b89dedd8"
      id="F_d4ae9407-c077-451b-acf3-9591c4e182dc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_c170bb77-c677-44a4-9b82-7075b89dedd8"
      id="F_d09702e5-c6ae-4e47-8941-73bdda24099f">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_c170bb77-c677-44a4-9b82-7075b89dedd8"
      id="F_0d689d98-883c-4891-877e-6213b553c5a7">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_c170bb77-c677-44a4-9b82-7075b89dedd8"
      id="F_6be2a313-b863-433d-a47b-55428f4eaaab">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_c170bb77-c677-44a4-9b82-7075b89dedd8"
      id="F_7e5c2e9b-22fd-445d-ac95-29520956672e">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_c170bb77-c677-44a4-9b82-7075b89dedd8"
      id="F_86bb0888-0d96-4b83-9a88-a52171db0caa">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_c170bb77-c677-44a4-9b82-7075b89dedd8"
      id="F_a02fd6e4-64d5-4878-bb99-b7efe5174eff">&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;600,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_c170bb77-c677-44a4-9b82-7075b89dedd8"
      decimals="-3"
      id="F_919027cd-77f2-49d5-b037-8084ad330091"
      unitRef="U_USD">600000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
