<?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_23373c29-cf6b-44a6-b523-b51ade58649f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-09-02</startDate>
            <endDate>2026-09-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_23373c29-cf6b-44a6-b523-b51ade58649f"
      id="F_89d055ad-dc4a-4331-9c91-9d12484a15f4">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_23373c29-cf6b-44a6-b523-b51ade58649f"
      id="F_535996a6-6bd2-45e8-83dc-dfee03f966ff">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_23373c29-cf6b-44a6-b523-b51ade58649f"
      id="F_68cf5587-c4d8-486c-ae3c-9a5d3726da7b">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_23373c29-cf6b-44a6-b523-b51ade58649f"
      id="F_d13d66c2-cb8d-4123-986d-372840dc4a4c">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_23373c29-cf6b-44a6-b523-b51ade58649f"
      id="F_b09c3807-03c4-4fb9-8c03-c34f4388162b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_23373c29-cf6b-44a6-b523-b51ade58649f"
      id="F_ea77281a-f1c2-4a7a-b012-7bb6e405e57b">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_23373c29-cf6b-44a6-b523-b51ade58649f"
      id="F_10b25efc-4184-443c-bac1-7d2704740c0c">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_23373c29-cf6b-44a6-b523-b51ade58649f"
      id="F_5c32df88-04dc-4845-9cb5-9fd8aa59488e">424B2</ffd:SubmissnTp>
    <ffd:FeeExhibitTp
      contextRef="C_23373c29-cf6b-44a6-b523-b51ade58649f"
      id="F_0c371705-f857-444b-b768-626e24fd0337">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_23373c29-cf6b-44a6-b523-b51ade58649f"
      id="F_031cd744-84ee-4e89-844f-8b03ad41a8d7">&lt;p style="tab-size:26.66px;font-size:12pt;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;495,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_23373c29-cf6b-44a6-b523-b51ade58649f"
      decimals="-3"
      id="F_59e77e2b-157d-4d21-a24d-d9510e6b3c43"
      unitRef="U_USD">495000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
